Skip to content

Commit

Permalink
fix parse_sql_expr example(remove alias)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eason0729 committed Nov 23, 2024
1 parent c7836c3 commit f69781c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion-examples/examples/parse_sql_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async fn query_parquet_demo() -> Result<()> {
.filter(df.parse_sql_expr("int_col < 5 OR double_col = 8.0")?)?
.aggregate(
vec![df.parse_sql_expr("double_col")?],
vec![df.parse_sql_expr("SUM(int_col) as sum_int_col")?],
vec![df.parse_sql_expr("SUM(int_col)")?],
)?
// Directly parsing the SQL text into a sort expression is not supported yet, so
// construct it programmatically
Expand Down

0 comments on commit f69781c

Please sign in to comment.