rangareddy commented on issue #11922:
URL: https://github.com/apache/hudi/issues/11922#issuecomment-2577605489
**Hive Table Create Statement:**
```sql
+----------------------------------------------------+
| createtab_stmt |
+----------------------------------------------------+
| CREATE EXTERNAL TABLE `hive_table_with_comments`( |
| `id` string COMMENT 'Unique identifier', |
| `name` string COMMENT 'Name of the person', |
| `age` int COMMENT 'Age of the person', |
| `date` string COMMENT 'Partition field, date of entry') |
| ROW FORMAT SERDE |
| 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe' |
| WITH SERDEPROPERTIES ( |
| 'path'='s3a://warehouse/hive_table_with_comments') |
| STORED AS INPUTFORMAT |
| 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat' |
| OUTPUTFORMAT |
| 'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat' |
| LOCATION |
| 's3a://warehouse/hive_table_with_comments' |
| TBLPROPERTIES ( |
| 'TRANSLATED_TO_EXTERNAL'='TRUE', |
| 'external.table.purge'='TRUE', |
| 'spark.sql.create.version'='3.5.3', |
| 'spark.sql.sources.provider'='parquet', |
|
'spark.sql.sources.schema'='{"type":"struct","fields":[{"name":"id","type":"string","nullable":true,"metadata":{"comment":"Unique
identifier"}},{"name":"name","type":"string","nullable":true,"metadata":{"comment":"Name
of the
person"}},{"name":"age","type":"integer","nullable":true,"metadata":{"comment":"Age
of the
person"}},{"name":"date","type":"string","nullable":true,"metadata":{"comment":"Partition
field, date of entry"}}]}', |
| 'transient_lastDdlTime'='1736340771') |
+----------------------------------------------------+
22 rows selected (0.208 seconds)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]