Closed ssheikin closed 1 year ago
@bhvkshah @Brooke-white @iggarish @hyandell Could you please take a look on this PR?
@ssheikin Thanks for submitting this PR, we will review this and get back to you as soon as we have an update.
@bhvkshah @Brooke-white Have you got a chance to take a look on this pr?
Thank you!
... where column is a CASE numeric with null
If we have a late binding view defined as example view test_view, the JDBC driver will fail to obtain its schema through the standard JDBC method
DatabaseMetaData.getColumns
, with the following error:ERROR: invalid input syntax for integer: ""
Testcase:
Initial issue is described in https://github.com/aws/amazon-redshift-jdbc-driver/issues/45 Some specific field types in late-binding views cause the Redshift JDBC driver to throw an error on the
getColumns
call when fetching field metadata, but2.1.0.5 Fix Github issue 45 4c24b47c5de633e8fd9bb1a2c1d414f740eb9909 seems fix some of these cases, but not all. Specifically, a case statement that produces a mix of numeric and null values still results in an error.
maybe issue was reintroduced with 2.1.0.8 Fix numeric scale issue with Numeric data type of an external table e080dd6591e0ebca4e62c8c2767ac1de29b4fef2
Description
Do not parse not existing precision (as i other parts of existing code)
Motivation and Context
https://github.com/aws/amazon-redshift-jdbc-driver/issues/45 was not fixed completely.
Testing
Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsThis section is not appropriate for this project.
License