d125q opened a new issue, #9542:
URL: https://github.com/apache/iceberg/issues/9542

   ### Apache Iceberg version
   
   1.4.3 (latest release)
   
   ### Query engine
   
   Spark
   
   ### Please describe the bug 🐞
   
   Assume `glue_catalog` is configured to use GlueCatalog.  Now, execute 
something along the lines of:
   ```python
   df = spark.createDataFrame(
       [
           ("foo", 23),
           ("bar", 41),
           ("baz", 27),
       ],
       "name: string, age: int"
   )
   df = df.select(
       F.col("name").alias("name", metadata={"comment": "Name column comment"}),
       F.col("age").alias("age", metadata={"comment": "Age column comment"})
   )
   (
       df
       .writeTo("glue_catalog.glue_database.glue_table")
       .tableProperty("comment", "Table comment")
       .createOrReplace()
   )
   ```
   The column comments are indeed added to the Glue table, but the table 
comment itself is not.  (Glue calls it a table _description_, but anyway.)
   
   Looking at 
[IcebergToGlueConverter](https://github.com/apache/iceberg/blob/e32df0ce08086758c44e9174c582638068244073/aws/src/main/java/org/apache/iceberg/aws/glue/IcebergToGlueConverter.java#L53),
 I see the [code responsible for adding the column 
comments](https://github.com/apache/iceberg/blob/e32df0ce08086758c44e9174c582638068244073/aws/src/main/java/org/apache/iceberg/aws/glue/IcebergToGlueConverter.java#L320),
 but I see nothing of the like for table comments.


-- 
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: issues-unsubscr...@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to