Skip to content

fix: Add raw datatype support for Db2 custom queries#1707

Draft
nj1973 wants to merge 10 commits intodevelopfrom
1691-db2-raw-data-types-custom-query-validations
Draft

fix: Add raw datatype support for Db2 custom queries#1707
nj1973 wants to merge 10 commits intodevelopfrom
1691-db2-raw-data-types-custom-query-validations

Conversation

@nj1973
Copy link
Collaborator

@nj1973 nj1973 commented Mar 19, 2026

Description of changes

This PR solves an issue in our Db2 implementation where we couldn't get the raw data types for custom queries.

Describing the cursor did not reveal the actual data type, only the superset, e.g. string.

We solve the problem in the same way do on Redshift, by creating a view. If a view cannot be created then a warning is output and we fall back to the previous behaviour.

Issues to be closed

Closes #1691

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

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 raw data types are not detected for custom-query validations

1 participant