alamb commented on a change in pull request #7959:
URL: https://github.com/apache/arrow/pull/7959#discussion_r470813982



##########
File path: rust/datafusion/tests/sql.rs
##########
@@ -432,6 +432,40 @@ fn csv_query_count_one() {
     assert_eq!(expected, actual);
 }
 
+#[test]
+fn csv_explain() {
+    let mut ctx = ExecutionContext::new();
+    register_aggregate_csv_by_sql(&mut ctx);
+    let sql = "EXPLAIN SELECT c1 FROM aggregate_test_100 where c2 > 10";
+    let actual = execute(&mut ctx, sql).join("\n");
+    let expected = "\"logical_plan\"\t\"Projection: #c1\\n  Selection: #c2 Gt 
Int64(10)\\n    TableScan: aggregate_test_100 projection=None\"".to_string();
+    assert_eq!(expected, actual);
+
+    // Also, expect same result with case explain

Review comment:
       fixed in 
https://github.com/apache/arrow/pull/7959/commits/639db5f109c5861c7fb646152a48b156afde4ac3




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to