Apache DataFusion SQL Query Engine
ARROW-8225: [Rust] Rust Arrow IPC reader must respect continuation markers.
Max Burke20e7ac427284
diff --git a/rust/datafusion/src/logicalplan.rs b/rust/datafusion/src/logicalplan.rsindex fd23ff15de..584165b9c4 100644--- a/rust/datafusion/src/logicalplan.rs+++ b/rust/datafusion/src/logicalplan.rs@@ -841,8 +841,8 @@ mod tests {.build()?;let expected = "Projection: #0, #1 AS total_salary\- \n Aggregate: groupBy=[[#0]], aggr=[[SUM(#1)]]\- \n TableScan: employee.csv projection=Some([3, 4])";+ \n Aggregate: groupBy=[[#0]], aggr=[[SUM(#1)]]\+ \n TableScan: employee.csv projection=Some([3, 4])";assert_eq!(expected, format!("{:?}", plan));diff --git a/rust/datafusion/src/sql/planner.rs b/rust/datafusion/src/sql/planner.rsindex 54a5895744..709bd08e41 100644--- a/rust/datafusion/src/sql/planner.rs+++ b/rust/datafusion/src/sql/planner.rs@@ -272,9 +272,10 @@ impl<S: SchemaProvider> SqlToRel<S> {Ok(Expr::Literal(ScalarValue::Utf8(s.clone())))}- ASTNode::SQLAliasedExpr(ref expr, ref alias) => {- Ok(Alias(Arc::new(self.sql_to_rex(&expr, schema)?), alias.to_owned()))- }+ ASTNode::SQLAliasedExpr(ref expr, ref alias) => Ok(Alias(+ Arc::new(self.sql_to_rex(&expr, schema)?),+ alias.to_owned(),+ )),ASTNode::SQLIdentifier(ref id) => {match schema.fields().iter().position(|c| c.name().eq(id)) {@@ -610,7 +611,7 @@ mod tests {fn select_aliased_scalar_func() {let sql = "SELECT sqrt(age) AS square_people FROM person";let expected = "Projection: sqrt(CAST(#3 AS Float64)) AS square_people\- \n TableScan: person projection=None";+ \n TableScan: person projection=None";quick_test(sql, expected);}