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

Tanner Clary edited comment on CALCITE-6213 at 1/19/24 4:04 PM:
----------------------------------------------------------------

Hi [~eveywu] the fix for this is probably ~1 line change and a test or two. Let 
me know if you need help with review and thanks for filing this issue.

The [{{PrestoSqlDialect}} 
class|https://github.com/apache/calcite/blob/main/core/src/main/java/org/apache/calcite/sql/dialect/PrestoSqlDialect.java]
 is probably a good place to start.


was (Author: JIRAUSER298151):
Hi [~eveywu] the fix for this is probably ~1 line change and a test or two. Let 
me know if you need help with review and thanks for filing this issue.

> The default behavior of NullCollation in Presto is LAST
> -------------------------------------------------------
>
>                 Key: CALCITE-6213
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6213
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: EveyWu
>            Priority: Major
>         Attachments: image-2024-01-19-23-54-26-383.png, 
> image-2024-01-19-23-57-00-252.png
>
>
> [https://prestodb.io/docs/0.285/sql/select.html]
> Presto default null ordering is NULLS LAST
> !image-2024-01-19-23-54-26-383.png|width=511,height=168!
>  
> Demo:select by presto with nulls last 
> {code:java}
> select * from product order by brand_name; {code}
> !image-2024-01-19-23-57-00-252.png|width=517,height=83!



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

Reply via email to