Skip to content

Question about the map_varchar_to_utf8view config #16277

@xudong963

Description

@xudong963
DataFusion CLI v48.0.0
> create table t1(a varchar, b char);
0 row(s) fetched. 
Elapsed 0.009 seconds.

> show columns from t1;
+---------------+--------------+------------+-------------+-----------+-------------+
| table_catalog | table_schema | table_name | column_name | data_type | is_nullable |
+---------------+--------------+------------+-------------+-----------+-------------+
| datafusion    | public       | t1         | a           | Utf8View  | YES         |
| datafusion    | public       | t1         | b           | Utf8      | YES         |
+---------------+--------------+------------+-------------+-----------+-------------+
2 row(s) fetched. 
Elapsed 0.012 seconds.

Currently, map_varchar_to_utf8view is enabled by default, I noticed char will be mapped to Utf8 in nature, so if map_varchar_to_utf8view is true, should we also map char to Utf8View

FYI: I found the issue while upgrading DF48 for mv repo: https://github.com/datafusion-contrib/datafusion-materialized-views/pull/61/files#r2131717796

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions