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

masterclock commented on CALCITE-2996:
--------------------------------------

yes, I think I'm wrong. It's not a good method. 

So, should we change the apache-calcite-go library to use column label as 
column name.

I noticed that mysql/postgresql java jdbc driver get column value with similar 
approch.

> using column label as column name
> ---------------------------------
>
>                 Key: CALCITE-2996
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2996
>             Project: Calcite
>          Issue Type: Wish
>          Components: avatica
>    Affects Versions: avatica-1.13.0
>            Reporter: masterclock
>            Priority: Major
>             Fix For: next
>
>
> [https://github.com/apache/calcite-avatica/blob/master/core/src/main/java/org/apache/calcite/avatica/ColumnMetaData.java#L122]
> according to the above line, column label is used only when column name is 
> missing, this behavior makes the the go driver lost column alias name in sql 
> expression. I'd hope swap the column name and label in the code, can we?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to