Skip to content
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

[BUG] NULL Columns passed as VARCHAR to Calcite, ResultSetMetadata for queries reports NULL columns as VARCHAR #498

Open
birschick-bq opened this issue Jan 31, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@birschick-bq
Copy link
Contributor

Environment

  • DocumentDB JDBC driver version: 1.4.4
  • DocumentDB server version: n/a
  • OS: [e.g. MacOS Big Sur 11.5.1, Windows 10 64-bit]: n/a
  • BI Tool or client name: n/a
  • BI Tool or client version: n/a
  • Java version (if known): n/a

Problem Description

  1. Steps to reproduce:
    • For SELECT fieldNull where DatabaseMetaData would report fieldNull as NULL, ResultSetMetadata is reporting the same field as VARCHAR when used in a query.
  2. Expected behaviour:
    • column metadata should report NULL
  3. Actual behaviour:
    • column metadata should report VARCHAR
  4. Error message/stack trace:
  5. Any other details that can be helpful:
  • Test that changing the mapping here does not break existing tests.
  • Test possible effects on cached query results in BI Tools (mainly target Tableau) if we add this fix.
  • Confirm that NULL over VARCHAR is the right behaviour for this case.

Screenshots

  • If applicable, add screenshots to help explain your problem.

JDBC log

  • Add related JDBC log entries here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant