zhangshenghang opened a new pull request, #12092:
URL: https://github.com/apache/seatunnel/pull/12092

   ## What does this PR do?
   
   Fixes #11969.
   
   For a JDBC source query whose result-set metadata identifies one physical 
table, the source now reloads that table metadata and merges it with the query 
schema. This preserves table and column comments while retaining the 
query-selected column order.
   
   Queries without a reliable physical table identity keep the existing 
metadata-only behavior.
   
   ## How was this tested?
   
   - Added unit coverage for comment preservation and query-column ordering.
   - Added unit coverage for the unknown-table fallback.
   - `./mvnw -pl seatunnel-connectors-v2/connector-jdbc 
-Dtest=JdbcCatalogUtilsTest test`
   - `./mvnw -q -DskipTests verify`


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