-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
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!