datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

Handle alias when parsing sql(parse_sql_expr)

Open Eason0729 opened this issue 1 year ago • 0 comments

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_expr call sql_expr_to_logical_expr, then parse_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.

Are these changes tested?

Are there any user-facing changes?

Eason0729 avatar Oct 15 '24 12:10 Eason0729