[ 
https://issues.apache.org/jira/browse/CALCITE-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14544837#comment-14544837
 ] 

Xavier FH Leong commented on CALCITE-708:
-----------------------------------------

There's a missing part in the propose solution, not all the information is 
completed without getting the info from the adapter which implements the 
RelDataType. And also it can be that not all "default" type is supported by the 
underlying adapter.

To support the complete type, I have to query the underlying schema to get the 
complete data type info, and union with SqlTypeName to get the rest, with some 
default value.

My work in progress branch can be found at:

https://github.com/xhoong/incubator-calcite/commit/83e63a087cac2e9c5e1c73f76a8eb084a4e598ad


> Avatica and Calcite to support DatabaseMetaData getTypeInfo
> -----------------------------------------------------------
>
>                 Key: CALCITE-708
>                 URL: https://issues.apache.org/jira/browse/CALCITE-708
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Xavier FH Leong
>            Assignee: Julian Hyde
>            Priority: Minor
>              Labels: avatica, metadata
>             Fix For: next
>
>
> http://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#getTypeInfo()
>  
> Avatica to call underlying connection database metadata for getTypeInfo to 
> show the database supported type and meta info.
> Calcite to provide the info for the underlying adapter thru SqlTypeName and 
> RelDataType



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

Reply via email to