apache / datafusion

Apache DataFusion SQL Query Engine
https://datafusion.apache.org/
Apache License 2.0
6.33k stars 1.2k forks source link

Fix duckdb & sqlite character_length scalar unparsing #13428

Closed Sevenannn closed 5 days ago

Sevenannn commented 1 week ago

Which issue does this PR close?

N/A

Rationale for this change

When unparsing CharacterLengthFunc scalar function to DuckDB & SQLite syntax SQL query, the CharacterLengthFunc scalar function need to be unparsed to length, since length is the equivalence of CharacterLengthFunc in DuckDB & SQLite.

DuckDB length() SQLite length()

What changes are included in this PR?

Are these changes tested?

Yes

Are there any user-facing changes?

No

alamb commented 5 days ago

🚀