Skip to content

Spark case-sensitive option mode #4000

@jinchengchenghh

Description

@jinchengchenghh

Description

Presto only supports case-sensitive mode, but spark has configuration spark.sql.caseSensitive with default value false which describes as Whether the query analyzer should be case sensitive or not. Default to case insensitive. It is highly discouraged to turn on case sensitive mode.

Can we support case-insensitive mode in velox?

As spark implementation, it will convert parquet read column name to lowercase and convert operator column name to lowercase.

Velox can add a new config named case_sensitive in HiveConfig, and set it in QueryContext, The default value will be true matches velox original logical. If set it to false, we will convert the column name to lowercase when converting parquet schema to velox schema RowType.
If user uses case-insensitive mode, user should use lower case column name to create PlanNode, or we can add a function to convert original PlanNode to case-insensitive PlanNode.

What do you think? @mbasmanova

Kindly look forward to your reply!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions