You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Vallari Rastogi (Jira)" <ji...@apache.org> on 2024/02/14 10:37:00 UTC

[jira] [Updated] (FLINK-32596) The partition key will be wrong when use Flink dialect to create Hive table

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

Vallari Rastogi updated FLINK-32596:
------------------------------------
    Attachment: image-2024-02-14-16-06-13-126.png

> 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
>
>
> 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)