You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/11/20 14:27:34 UTC
[GitHub] [arrow-datafusion] alamb commented on a change in pull request #1344: fix: make nulls-order consistent with postgres
alamb commented on a change in pull request #1344:
URL: https://github.com/apache/arrow-datafusion/pull/1344#discussion_r753680307
##########
File path: datafusion/tests/sql.rs
##########
@@ -5999,3 +5999,75 @@ async fn test_expect_distinct() -> Result<()> {
assert_batches_eq!(expected, &actual);
Ok(())
}
+
+#[tokio::test]
+async fn test_nulls_first_asc() -> Result<()> {
+ let mut ctx = ExecutionContext::new();
+ let sql = "SELECT * FROM (VALUES (1, 'one'), (2, 'two'), (null, 'three')) AS t (num,letter) ORDER BY num";
Review comment:
yeah it is so handy
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org