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

duan xiong commented on CALCITE-4661:
-------------------------------------

Ok. If we let's keep it simple, This MODE function becomes a normal function. 
Some SQL like

```

select mode(columnName) from table.

```

return the common value in the column. If no other mistakes, I will do it this 
way.

> Add MODE aggregate functions
> ----------------------------
>
>                 Key: CALCITE-4661
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4661
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: duan xiong
>            Assignee: duan xiong
>            Priority: Major
>
> Add MODE functions in the operator table which returns the most frequent 
> input value (arbitrarily choosing the first one if there are multiple 
> equally-frequent results)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to