apache / datafusion

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

Support Utf8View in the Unparser expr_to_sql method #13461

Closed phillipleblanc closed 6 days ago

phillipleblanc commented 1 week ago

Describe the bug

As part of our DataFusion v43 upgrade, DataFusion is returning the Uft8View Arrow data type in several places. Running that through the unparser will currently panic in the expr_to_sql method because support wasn't explicitly added.

To Reproduce

Write an expression that compares against a Scalar UTF8View literal.

Expected behavior

The unparser uses the existing UTF8 type for unparsing.

Additional context

No response