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 2022/05/29 23:04:17 UTC

[GitHub] [arrow-ballista] tustvold commented on a diff in pull request #48: Update to apache/arrow-datafusion#2578

tustvold commented on code in PR #48:
URL: https://github.com/apache/arrow-ballista/pull/48#discussion_r884335936


##########
ballista/rust/core/src/serde/logical_plan/mod.rs:
##########
@@ -1415,7 +1416,11 @@ mod roundtrip_tests {
         let schema = test_schema();
         let ctx = SessionContext::new();
         let options = CsvReadOptions::new().schema(&schema);
-        let df = ctx.read_csv(table_name, options).await?;
+
+        let uri = format!("file:///{}.csv", table_name);
+        ctx.register_csv(table_name, &uri, options).await?;

Review Comment:
   Changing to using this method is necessary as otherwise it infers the `?table?` as the table name, which seems to result in an additional projection appearing, not entirely sure why though...



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