Skip to content

Conversation

@kangkaisen
Copy link
Contributor

Currently, when select * from table order by a,b,c desc, the NULL value will be first. In real application, the users maybe want to the NULL value always be last or first. So,we should support NULLS LAST and NULLS FIRST grammar like Impala and Oracle.

In fact, Doris BE has supported NULLS LAST and NULLS FIRST, we only need to make Doris FE support NULLS LAST and NULLS FIRST.

@kangkaisen
Copy link
Contributor Author

Update this commit

Copy link
Contributor

@imay imay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you modify your commit message? You can find recommended format here

@kangkaisen
Copy link
Contributor Author

I have updated the commit message, please review, thanks.

Allow User specify the null ordering

NULLS FIRST: specifies that NULL values should be returned before
non-NULL values.
NULLS LAST: specifies that NULL values should be returned after
non-NULL values.
@kangkaisen kangkaisen changed the title Doris support NULLS LAST and NULLS FIRST Support NULLS LAST and NULLS FIRST syntax Nov 5, 2018
Copy link
Contributor

@imay imay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job

@imay imay merged commit 8b665a4 into apache:master Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants