Open wey-gu opened 1 year ago
BTW, PostgreSQL could special the behavior ( null first or null last)
SELECT select_list
FROM table_expression
ORDER BY sort_expression1 [ASC | DESC] [NULLS { FIRST | LAST }]
[, sort_expression2 [ASC | DESC] [NULLS { FIRST | LAST }] ...]
BTW, PostgreSQL could special the behavior ( null first or null last)
SELECT select_list FROM table_expression ORDER BY sort_expression1 [ASC | DESC] [NULLS { FIRST | LAST }] [, sort_expression2 [ASC | DESC] [NULLS { FIRST | LAST }] ...]
Thanks! Exposing options is way more elegant!
OK, now we know we are not wrong, just one flavor of all approaches :) Thanks!
@son2408 it seems current behavior is one of the approaches that PostgreSQL/Oracle also behaves by default
@son2408 it seems current behavior is one of the approaches that PostgreSQL/Oracle also behaves by default
Yes, we are not wrong but it should have a extra option NULL fisrt or last :)
Please check the FAQ documentation before raising an issue
As title, we treated NULL differently from other DB, which is counterintuitive to user.
Describe the bug (required)
Your Environments (required)
uname -a
g++ --version
orclang++ --version
lscpu
a3ffc7d8
)Expected behavior
NULL should be at the end when DESC.
Additional context
ref: https://github.com/vesoft-inc/nebula/issues/4810