[ https://issues.apache.org/jira/browse/HUDI-4079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jin Xing resolved HUDI-4079. ---------------------------- > 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 > Priority: Minor > Labels: pull-request-available > > 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)