Skip to content

feat: Add Db2 binary types to supported types#1679

Open
nj1973 wants to merge 13 commits intodevelopfrom
1354-db2-add-support-for-binary-data-types
Open

feat: Add Db2 binary types to supported types#1679
nj1973 wants to merge 13 commits intodevelopfrom
1354-db2-add-support-for-binary-data-types

Conversation

@nj1973
Copy link
Collaborator

@nj1973 nj1973 commented Feb 23, 2026

Description of changes

Adds support for binary data types as below:

  • Row validation of BINARY/VARBINARY via to_hex operation matching other engines
  • Random row validation on binary PKs now supported using to/from hex matching other engines
  • Column validation supported for BINARY/VARBINARY
  • BLOB columns are skipped for row validation due to being incompatible with concatenation and hex. This has been documented as a limitation.
  • This PR does not add BINARY/VARBINARY columns to the dvt_db2_types test table because the Db2 test instance is not versioned and adding the columns for this PR would break tests on other branches. This is because the mere presence of the columns fails during initial load of the table schema in Ibis.
  • Once this has been merged we can add BINARY/VARBINARY columns to dvt_db2_types as part of a future Db2 change (there are plenty in the pipeline).
  • I've excluded FOR BIT DATA data types from the PR because they are a whole adventure in themselves and I didn't want to make this change take too long.

Issues to be closed

Closes #1354

Checklist

  • I have followed the CONTRIBUTING Guide.
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated any relevant documentation to reflect my changes, if applicable
  • I have added unit and/or integration tests relevant to my change as needed
  • I have already checked locally that all unit tests and linting are passing (use the tests/local_check.sh script)
  • I have manually executed end-to-end testing (E2E) with the affected databases/engines

@nj1973 nj1973 linked an issue Feb 23, 2026 that may be closed by this pull request
@pull-request-size pull-request-size bot added size/M and removed size/L labels Feb 24, 2026
@pull-request-size pull-request-size bot added size/L and removed size/M labels Feb 24, 2026
@nj1973 nj1973 marked this pull request as ready for review February 25, 2026 13:20
@nj1973
Copy link
Collaborator Author

nj1973 commented Feb 25, 2026

/gcbrun

1 similar comment
@nj1973
Copy link
Collaborator Author

nj1973 commented Feb 25, 2026

/gcbrun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Db2] Add support for binary data types

1 participant