You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
schema_force_view_type configuration not working for CREATE EXTERNAL TABLE #14909
datafusion.execution.parquet.schema_force_view_types | true | (reading) If true, parquet reader will read columns of Utf8/Utf8Large with Utf8View, and Binary/BinaryLarge with BinaryView.
Activity
zhuqi-lucas commentedon Feb 27, 2025
take
zhuqi-lucas commentedon Mar 3, 2025
Submitted the PR for review.
cc @2010YOUY01 @alamb @xudong963
alamb commentedon Mar 5, 2025
Thank you @zhuqi-lucas
If you change the example slightly (so the column names are not explicitly listed) then the type is correctly set to Utf8View
I think what is happening is that the SQL type
VARCHARis mapped toUtf8datafusion/datafusion/sql/src/planner.rs
Line 561 in c0d53ad
So when the table is created with an explicit type it is set to Utf8
However, when the types are read directly from Parquet the types is inferred as Utf8View
alamb commentedon Mar 8, 2025
Huge kudos to @zhuqi-lucas for trying to fix this in
After some research, I think we have concluded the real reason this isn't working is
VARCHARfromUtf8toUtf8View#15096If we need a shorter term workaround for this problem, I suggest we start with a config settings:
VARCHARfromUtf8toUtf8View#15096 (comment)