You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Ethan Guo (Jira)" <ji...@apache.org> on 2022/06/03 05:24:00 UTC

[jira] [Updated] (HUDI-4079) Supports showing table comment for hudi with spark3

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

Ethan Guo updated HUDI-4079:
----------------------------
    Fix Version/s:     (was: 0.12.0)

> Supports showing table comment for hudi with spark3
> ---------------------------------------------------
>
>                 Key: HUDI-4079
>                 URL: https://issues.apache.org/jira/browse/HUDI-4079
>             Project: Apache Hudi
>          Issue Type: Improvement
>            Reporter: Jin Xing
>            Assignee: Jin Xing
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.11.1
>
>
> When creating table like below with a 'comment' and check by "show create table", the comment is not shown
>  
> {code:java}
> create table test(
>   id int,
>   name string,
>   price double,
>   ts long
>  ) using hudi
>  comment "This is a simple hudi table"
>  tblproperties (
>    primaryKey = 'id',
>    preCombineField = 'ts'
>  ){code}
>  
> The cause is as below:
>  # Current hudi & spark3 invokes ShowCreateTableExec when "show create ..."
>  # ShowCreateTableExec checks table property of 'comment' for result
>  # Spark HiveClientImpl hides property of 'comment', but set it to Catalog#comment when returning a CatalogTable (https://github.com/apache/spark/blob/master/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala#L487)
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)