dengziming opened a new pull request, #51686:
URL: https://github.com/apache/spark/pull/51686

   ### What changes were proposed in this pull request?
   When pushing down join SQL, we generated aliases for duplicated names, but 
the aliases are too long to read.
   
   ```
   SELECT 
"ID_bf822dc6_e06d_492c_a489_1e92a6fe84a0","AMOUNT_c9f3fc67_62f8_4ec6_9c3f_b7ee7bafcb5a","ADDRESS_d937a313_3e09_4b97_b91f_b2a47ef5e31d","ID","AMOUNT","ADDRESS"
 FROM xxxx     
   
   RelationV2[ID_bf822dc6_e06d_492c_a489_1e92a6fe84a0#18, 
AMOUNT_c9f3fc67_62f8_4ec6_9c3f_b7ee7bafcb5a#19, 
ADDRESS_d937a313_3e09_4b97_b91f_b2a47ef5e31d#20, ID#21, AMOUNT#22, ADDRESS#23] 
join_pushdown_catalog.JOIN_SCHEMA.JOIN_TABLE_1
   ```
   
   
   ```
   SELECT "ID_0","AMOUNT_1","ADDRESS_2","ID","AMOUNT","ADDRESS" FROM xxx   
   
   RelationV2[ID_0#18, AMOUNT_1#19, ADDRESS_2#20, ID#21, AMOUNT#22, ADDRESS#23] 
join_pushdown_catalog.JOIN_SCHEMA.JOIN_TABLE_1
   ```
   
   
   ### Why are the changes needed?
   Make code-generated JDBC SQL clearer
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Existing tests can ensure no side effects are introduced. 
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   Generated-by: Trae.
   


-- 
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: reviews-unsubscr...@spark.apache.org

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


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

Reply via email to