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

ASF GitHub Bot updated HUDI-3198:
---------------------------------
    Labels: pull-request-available  (was: )

> Spark SQL create table should check partition fields
> ----------------------------------------------------
>
>                 Key: HUDI-3198
>                 URL: https://issues.apache.org/jira/browse/HUDI-3198
>             Project: Apache Hudi
>          Issue Type: Improvement
>          Components: Spark Integration
>            Reporter: Raymond Xu
>            Assignee: Yann Byron
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.11.0
>
>
> {code:sql}
> create table hudi_cow_pt_tbl (
>   id bigint,
>   name string,
>   ts bigint,
>   dt string,
>   hh string
> ) using hudi
> tblproperties (
>   type = 'cow',
>   primaryKey = 'id',
>   preCombineField = 'ts'
>  )
> partitioned by (dt, hh)
> location '/tmp/hudi/hudi_cow_pt_tbl';{code}
>  
> The following sql should throw exception about invalid partition `name` 
> {code:sql}
> create table hudi_cow_existing_tbl2 using hudi 
> partitioned by (dt, name) 
> location 'file:///tmp/hudi/hudi_cow_pt_tbl';
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to