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

Sean Hsuan-Yi Chu commented on CALCITE-1219:
--------------------------------------------

1. Not really; 
Drill's default behavior (not correct though) is to treat {color:red} Decimal 
Literal{color} as Double [1]. When type-inference is taking place, Drill's 
inferencer needs to know if an operand is decimal literal.

So it is more Drill specific issue.  

2. I see. I am enhancing it.

[1] This is because of some ongoing work for decimal types in execution.

> Add a method to SqlOperatorBinding to help determine if an operand is Literal 
> or not
> ------------------------------------------------------------------------------------
>
>                 Key: CALCITE-1219
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1219
>             Project: Calcite
>          Issue Type: New Feature
>          Components: core
>            Reporter: Sean Hsuan-Yi Chu
>            Assignee: Julian Hyde
>
> When Drill is doing type inference, a decimal {color:red} literal {color} can 
> be treated as double in some cases. 
> However, SqlOperatorBinding has not had a method to tell the caller if an 
> operand is literal or not. This JIRA proposes adding such a helper method. 



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

Reply via email to