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

Sagar Sumit updated HUDI-7903:
------------------------------
    Sprint: 2024/06/17-30

> Partition Stats Index not getting created with SQL
> --------------------------------------------------
>
>                 Key: HUDI-7903
>                 URL: https://issues.apache.org/jira/browse/HUDI-7903
>             Project: Apache Hudi
>          Issue Type: Bug
>            Reporter: Sagar Sumit
>            Assignee: Sagar Sumit
>            Priority: Blocker
>             Fix For: 1.0.0-beta2, 1.0.0
>
>
> {code:java}
> spark.sql(
>   s"""
>      | create table $tableName using hudi
>      | partitioned by (dt)
>      | tblproperties(
>      |    primaryKey = 'id',
>      |    preCombineField = 'ts',
>      |    'hoodie.metadata.index.partition.stats.enable' = 'true'
>      | )
>      | location '$tablePath'
>      | AS
>      | select 1 as id, 'a1' as name, 10 as price, 1000 as ts, 
> cast('2021-05-06' as date) as dt
>    """.stripMargin
> ) {code}
> Even when partition stats is enabled, index is not created with SQL. Works 
> for datasource.



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

Reply via email to