datafusion
datafusion copied to clipboard
Handle alias when parsing sql(parse_sql_expr)
Which issue does this PR close?
Close #12518
Also, we need to wait for next sqlparser release, so this PR is expected to be draft for a while.
Rationale for this change
What changes are included in this PR?
In #12518 ,
parse_sql_exprcallsql_expr_to_logical_expr, thenparse_sql_into_dialect.
add sql_expr_to_logical_expr_with_alias and parse_sql_into_dialect_with_alias function, whose returns contain alias if there is alias.