-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class type for Boolean #218
Comments
@ThePrez - any insights here? |
@davecharron might have the best insights so deferring to him |
I did a quick test of a journal entry for a table with a boolean column. CAST(cast(substring(JOESD, nnn, 1) as char(1) for bit data) as BOOLEAN) as bool_val More info: |
@davecharron - I confirmed this as well. I'm working with a data integration vendor to add Boolean support in debezium, specially this file: https://github.com/debezium/debezium-connector-ibmi/blob/v3.0.2.Final/journal-parsing/src/main/java/io/debezium/ibmi/db2/journal/retrieve/JdbcFileDecoder.java The vendor cited trying the following: It even works when generating a snapshot. And the length parameter is correctly set to 1. It throws an ArrayOutOfBoudsException down in the pipeline when it's parsing the jornal and trying to reconstruct the before and after objects (required for cdc) in this code:
This is a low-level code I was talking about. The offset parameter is typically off by tens of bytes when there is a boolean column. We spent enough time on this trying to figure out. We did try to adjust the offset based on the actual size of the byte array: it is causing an exception in a different place. We also tried to cast boolean to other supported types: All causing exception in various places. |
@davecharron - was wondering if you were able to look into this anymore. Thanks! |
Hello,
I'm working with a vendor who is trying to get the debezium for as400 connector working for booleans. They have cited that it is not working properly because there is a class object for Boolean. Most data types in the connector are using a class object for the data type. For example, a char data type is using AS400Text. We've tried to utilize that for booleans but runs into issues parsing the value from the journal correctly.
Any advice here on either a direct to get a named AS400Boolean or how to proceed with the boolean type parsing from the journal in debezium?
Thanks,
Ryan
The text was updated successfully, but these errors were encountered: