You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Zhaojing Yu (Jira)" <ji...@apache.org> on 2022/10/01 12:16:00 UTC

[jira] [Updated] (HUDI-4244) Support common Spark transformations w/in Spark SQL "partitioned by" clause

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

Zhaojing Yu updated HUDI-4244:
------------------------------
    Fix Version/s: 0.13.0
                       (was: 0.12.1)

> Support common Spark transformations w/in Spark SQL "partitioned by" clause
> ---------------------------------------------------------------------------
>
>                 Key: HUDI-4244
>                 URL: https://issues.apache.org/jira/browse/HUDI-4244
>             Project: Apache Hudi
>          Issue Type: Improvement
>            Reporter: Alexey Kudinkin
>            Priority: Major
>             Fix For: 0.13.0
>
>
> Currently if you create a Hudi table from Spark SQL:
> {code:java}
> CREATE TABLE test_create(
>     f1 STRING,
>     f2 STRING,
>     f3 STRING,
>     ts timestamp
> )using hudi
>  partitioned by ( hours(ts))
>  options (
>   type = 'mor'
>  )
>  tblproperties (
>   primaryKey = 'f1',
>   preCombineField = 'ts'
> );
>  {code}
> You'll be getting
> {code:java}
> java.util.concurrent.ExecutionException: java.lang.RuntimeException: org.apache.spark.sql.AnalysisException: Transforms cannot be converted to partition columns: hours(ts){code}
>  
> Original reported task:
> [https://github.com/apache/hudi/issues/5810]
>  



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