You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Laurent Goujon (JIRA)" <ji...@apache.org> on 2016/10/04 01:07:20 UTC

[jira] [Created] (CALCITE-1410) MetaImpl.MetaColumn doesn't follow JDBC spec

Laurent Goujon created CALCITE-1410:
---------------------------------------

             Summary: MetaImpl.MetaColumn doesn't follow JDBC spec
                 Key: CALCITE-1410
                 URL: https://issues.apache.org/jira/browse/CALCITE-1410
             Project: Calcite
          Issue Type: Bug
          Components: avatica
            Reporter: Laurent Goujon


{{MetaImpl.MetaColumn}} which is used as a record for {{DatabaseMetadata#getColumns}} doesn't follow JDBC spec:

several fields have incorrect types:
- bufferLength should be an int (based on name, but not clarified in spec)
- sqlDataType should be an int
- sqlDatetimeSub should be an int
- sourceDataType should be a short

some fields also have incorrect nullability:
- columnSize, charOctetLength and numPrecRadix can be null when they don't apply to their specific types
- isNullable, isAutoincrement and isGeneratedcolumn should be a nullable fields (although they are not primitive fields), with value set to the empty string if undefined.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)