Vishal Satish created CALCITE-7444:
--------------------------------------

             Summary: AssertionError in AbstractCursor for unhandled 
DATE/TIME/TIMESTAMP representations
                 Key: CALCITE-7444
                 URL: https://issues.apache.org/jira/browse/CALCITE-7444
             Project: Calcite
          Issue Type: Bug
          Components: avatica
            Reporter: Vishal Satish


AbstractCursor.createAccessor() throws AssertionError for certain combinations 
of JDBC types and their representations that aren't handled.

Code at line 155:

throw new AssertionError("bad " + columnMetaData.type.rep);

This affects DATE, TIME, and TIMESTAMP cases when an unexpected Rep is 
encountered.
This issue was found using

Fix: Replace assertions with proper error handling (throw 
IllegalArgumentException or similar).

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to