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/12/09 01:29:38 UTC

[GitHub] [arrow-datafusion] hntd187 commented on a change in pull request #1419: Ordering by index in select expression

hntd187 commented on a change in pull request #1419:
URL: https://github.com/apache/arrow-datafusion/pull/1419#discussion_r765367408



##########
File path: datafusion/src/sql/planner.rs
##########
@@ -2959,6 +2990,36 @@ mod tests {
         quick_test(sql, expected);
     }
 
+    #[test]
+    fn select_order_by_index() {
+        let sql = "SELECT id FROM person ORDER BY 1";
+        let expected = "Sort: #person.id ASC NULLS LAST\
+                        \n  Projection: #person.id\

Review comment:
       Sure I can add more




-- 
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