Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-6490

BigDecimal fails when queue memory size limit is in place

XMLWordPrintable

      In order to make your issue reports as actionable as possible, please provide the following information, depending on the issue type.

      Bug report

      Snapshot of "public.test_table" failed with below error log.

      Failure during snapshotting data: class java.math.BigDecimal cannot be cast to class [B (java.math.BigDecimal and [B are in module java.base of loader 'bootstrap')

      Table DDL statement:

      CREATE TABLE public.test_table (
          commandid bigint,
          createuserid bigint,
          pid character varying(64) NOT NULL,
          version integer,
          retired bigint NOT NULL,
          createtime timestamp without time zone NOT NULL,
          valuetype integer NOT NULL,
          agglimitcalc integer NOT NULL,
          policyid bigint NOT NULL,
          updateuserid bigint,
          amount numeric(18,2) NOT NULL,
          comments character varying(255),
          limittype integer NOT NULL,
          updatetime timestamp without time zone NOT NULL,
          id bigint NOT NULL,
          valid boolean NOT NULL
      );

      ALTER TABLE ONLY public.test_table
          ADD CONSTRAINT test_table_pk PRIMARY KEY (id);

      What Debezium connector do you use and what version?

      2.0.0

      What is the connector configuration?

      N/A

      What is the captured database version and mode of depoyment?

      RDS postgresql 10.21

      What behaviour do you expect?

      Expected snapshot of the table is successful.

      What behaviour do you see?

      Snapshot failed

      Do you see the same behaviour using the latest relesead Debezium version?

      (Ideally, also verify with latest Alpha/Beta/CR version)

      <Your answer>

      Do you have the connector logs, ideally from start till finish?

      (You might be asked later to provide DEBUG/TRACE level log)

      Failure log:{}

      Failure during snapshotting data: class java.math.BigDecimal cannot be cast to class [B (java.math.BigDecimal and [B are in module java.base of loader 'bootstrap')

      {{}}

      Table sql from log:

      {{}}
      For table 'public.test_table' using select statement: 'SELECT "commandid", "createuserid", "pid", "version", "retired", "createtime", "valuetype", "agglimitcalc", "policyid", "updateuserid", "amount", "comments", "limittype", "updatetime", "id", "valid" FROM "public"."test_table"'
      {{}}

      How to reproduce the issue using our tutorial deployment?

      <Your answer>

      Feature request or enhancement

      For feature requests or enhancements, provide this information, please:

      Which use case/requirement will be addressed by the proposed feature?

      <Your answer>

      Implementation ideas (optional)

      <Your answer>

            Unassigned Unassigned
            dasarianil1505 Anil Dasari
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: