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

Null instead of toast placeholder written for binary types when "hex" mode configured

XMLWordPrintable

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

      Bug report

      For bug reports, provide this information, please:

       

      What Debezium connector do you use and what version?

      2.6

      What is the connector configuration?

      connector.class=io.debezium.connector.postgresql.PostgresConnector
      plugin.name=pgoutput
      binary.handling.mode=hex

      What is the captured database version and mode of depoyment?

      On-premises postgres

      What behaviour do you expect?

      When row with toasted bytea column is updated then "__debezium_unavailable_value" should be written.

      What behaviour do you see?

      Null value is written in kafka record.

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

      Yes

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

      2024-03-04 23:00:43,968 WARN   Postgres|test_server|0|streaming|postgres  Unexpected JDBC BINARY value for field bytea_ with schema Schema{STRING}: class=class java.lang.Object, value=java.lang.Object@5a761c72   [io.debezium.connector.postgresql.PostgresValueConverter]

      How to reproduce the issue using our tutorial deployment?

      I've impemented a test - RecordsStreamProducerIT#shouldHandleToastedByteaColumnInHexMode

      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)

      I've made PR

            Unassigned Unassigned
            __nick@inbox.ru Nick Golubev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: