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

Julian Hyde commented on CALCITE-708:
-------------------------------------

If you ask any type its precision, it will tell you. But for certain types such 
as INTEGER and BOOLEAN, they always have the same precision so we don't bother 
to print it. If SqlTypeName has sufficient information for you to know that you 
should print "INTEGER" rather than "INTEGER(10)".

And similarly that you should print "TIMESTAMP" rather than "TIMESTAMP(3)" 
because 3 is TIMESTAMP's default precision.

> 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