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

Nishant Bangarwa commented on CALCITE-2319:
-------------------------------------------

I tried merging to master, but not able to push to the master branch, looks 
like I may not have the push access yet, [~julianhyde] do you know whom to 
contact for push access ? or any steps that i need to follow to commit my 
changes to apache. 

> Druid Expressions - Output Type of Boolean expressions should be set to LONG.
> -----------------------------------------------------------------------------
>
>                 Key: CALCITE-2319
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2319
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Nishant Bangarwa
>            Assignee: Nishant Bangarwa
>            Priority: Major
>
> Sample Query - 
> {code} 
> SELECT \"product_id\" > 1000 as pid_category, COUNT(\"store_sales\") FROM 
> FOODMART_TABLE GROUP BY \"product_id\" > 1000";
> {code}
> For the above query output type of virtual column is set to string whereas it 
> should be set to float as druid expression return type is float. 
> {code}
> "{"queryType":"groupBy","dataSource":"foodmart","granularity":"all","dimensions":[{"type":"default","dimension":"vc","outputName":"vc","outputType":"STRING"}],"virtualColumns":[{"type":"expression","name":"vc","expression":"(CAST(\"product_id\",
>  'LONG') > 
> 1000)","outputType":"FLOAT"}],"limitSpec":{"type":"default"},"aggregations":[{"type":"filtered","filter":{"type":"not","field":{"type":"selector","dimension":"store_sales","value":null}},"aggregator":{"type":"count","name":"EXPR$1","fieldName":"store_sales"}}],"intervals":["1900-01-09T00:00:00.000Z/2992-01-10T00:00:00.000Z"]}"
> {code} 



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

Reply via email to