You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Aditya Goenka (Jira)" <ji...@apache.org> on 2024/12/05 13:00:00 UTC
[jira] [Updated] (HUDI-8172) Make primaryKey and other column configs case insensitive
[ https://issues.apache.org/jira/browse/HUDI-8172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aditya Goenka updated HUDI-8172:
--------------------------------
Priority: Critical (was: Major)
> Make primaryKey and other column configs case insensitive
> ---------------------------------------------------------
>
> Key: HUDI-8172
> URL: https://issues.apache.org/jira/browse/HUDI-8172
> Project: Apache Hudi
> Issue Type: Improvement
> Components: spark-sql
> Reporter: Aditya Goenka
> Priority: Critical
> Fix For: 1.1.0
>
>
> The primaryKey and other configs should be case insensitive.
>
> Test case to reproduce -
> test("Test primary key case sensitive") {
> withTempDir { tmp =>val tableName = generateTableName // Create a partitioned table spark.sql( s""" |create table $tableName ( | id int, | name string, | price double, | ts long, | dt string |) using hudi | tblproperties (primaryKey = 'ID' | ) | partitioned by (dt) | location '${tmp.getCanonicalPath}'""".stripMargin)
> spark.sql( s""" | insert into $tableName | select 1 as id, 'a1' as name, 10 as price, 1000 as ts, '2021-01-05' as dt""".stripMargin)
> checkAnswer(s"select id, name, price, ts, dt from $tableName")( Seq(1, "a1", 10.0, 1000 , "2021-01-05")
> )
> }
> }
--
This message was sent by Atlassian Jira
(v8.20.10#820010)