TEOTEO520 opened a new pull request, #7789:
URL: https://github.com/apache/gravitino/pull/7789

   ### What changes were proposed in this pull request?
   
     1. Added a merge function when collecting columns from catalog table
     2. Added a merge function when collecting columns from table entity
   
   ### Why are the changes needed?
   
     When loading tables from external catalogs (e.g., Hive), duplicate columns 
can cause IllegalStateException: Duplicate key crashes. This commonly occurs 
when:
   
     - HiveTableConverter.getColumns() includes a partition field (e.g., 
log_date) from table.getSd().getCols()
     - The same field also exists in table.getPartitionKeys()
     - This results in duplicate columns in the final table schema
     
   Fix: [#(issue)](https://github.com/apache/gravitino/issues/7788)
   
   ### Does this PR introduce _any_ user-facing change?
   
   No
   
   ### How was this patch tested?
   
   Test added
   


-- 
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]

Reply via email to