[ 
https://issues.apache.org/jira/browse/FLINK-32596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17823009#comment-17823009
 ] 

luoyuxia commented on FLINK-32596:
----------------------------------

[~walls.flink.m] Thanks. Feel free to open a pr for ducumentation. I can help 
review.

> The partition key will be wrong when use Flink dialect to create Hive table
> ---------------------------------------------------------------------------
>
>                 Key: FLINK-32596
>                 URL: https://issues.apache.org/jira/browse/FLINK-32596
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / Hive
>    Affects Versions: 1.15.0, 1.16.0, 1.17.0
>            Reporter: luoyuxia
>            Assignee: Vallari Rastogi
>            Priority: Major
>         Attachments: image-2024-02-14-16-06-13-126.png, 
> image-2024-02-15-03-05-22-541.png, image-2024-02-15-03-06-28-175.png, 
> image-2024-02-15-03-08-50-029.png
>
>
> Can be reproduced by the following SQL:
>  
> {code:java}
> tableEnv.getConfig().setSqlDialect(SqlDialect.DEFAULT);
> tableEnv.executeSql(
>         "create table t1(`date` string, `geo_altitude` FLOAT) partitioned by 
> (`date`)"
>                 + " with ('connector' = 'hive', 
> 'sink.partition-commit.delay'='1 s',  
> 'sink.partition-commit.policy.kind'='metastore,success-file')");
> CatalogTable catalogTable =
>         (CatalogTable) 
> hiveCatalog.getTable(ObjectPath.fromString("default.t1"));
> // the following assertion will fail
> assertThat(catalogTable.getPartitionKeys().toString()).isEqualTo("[date]");{code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to