[ 
https://issues.apache.org/jira/browse/HUDI-8172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vova Kolmakov reassigned HUDI-8172:
-----------------------------------

    Assignee: Vova Kolmakov

> 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
>            Assignee: Vova Kolmakov
>            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)

Reply via email to