[jira] [Created] (FLINK-13950) should report an error if hive table partition keys are not in the last schema fields

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-13950) should report an error if hive table partition keys are not in the last schema fields

Shang Yuanchun (Jira)
Hongtao Zhang created FLINK-13950:
-------------------------------------

             Summary: should report an error if hive table partition keys are not in the last schema fields
                 Key: FLINK-13950
                 URL: https://issues.apache.org/jira/browse/FLINK-13950
             Project: Flink
          Issue Type: Improvement
          Components: Connectors / Hive
    Affects Versions: 1.9.0, 1.10.0
            Reporter: Hongtao Zhang


when creating a hive table via hive catalog API, we will build the table schema first and then optionally we can choose one or more fields as the partition keys when user want to create partition table. 

 

according to hive partition rule, the partition keys should be  last fields of the table. but now hive catalog create table API didn't report an error when user specify the first / middle fields of the table schema.

 

we should report an error for this scenario



--
This message was sent by Atlassian Jira
(v8.3.2#803003)