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

ASF subversion and git services commented on KYLIN-5279:
--------------------------------------------------------

Commit 1fa73daee7fff8e912bcff9aaf859b66f5ebf94a in kylin's branch 
refs/heads/kylin5 from zznlime
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=1fa73daee7 ]

KYLIN-5279 Add default null collation configuration with 
CalciteExtrasProperties for Kylin5.0  (#2001)

* KYLIN-5279 Default null collation for Kylin5.0 sqls should be null-last for 
ASC order and null-first for DESC order.

* KYLIN-5279 add a config for default null collation for Kylin5.0.

* reuse KylinConfigBase#getCalciteExtrasProperties for get default null 
collation.

> Default null collation for Kylin5.0 sqls should be null-last for ASC order 
> and null-first for DESC order.
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: KYLIN-5279
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5279
>             Project: Kylin
>          Issue Type: Bug
>          Components: Query Engine
>            Reporter: Zhenning Zhang
>            Assignee: Zhenning Zhang
>            Priority: Major
>             Fix For: 5.0-alpha
>
>         Attachments: image-2022-10-20-15-12-12-967.png
>
>
> according to pgsql: 
> [https://www.postgresql.org/docs/current/queries-order.html]
> "By default, null values sort as if larger than any non-null value; that is, 
> {{NULLS FIRST}} is the default for {{DESC}} order, and {{NULLS LAST}} 
> otherwise."
> currently, the result is:
> !image-2022-10-20-15-12-12-967.png|width=1320,height=743!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to