loudongfeng opened a new issue, #6926:
URL: https://github.com/apache/incubator-gluten/issues/6926

   ### Backend
   
   CH (ClickHouse)
   
   ### Bug description
   
   This example will fail:
   ``` sql
   create table left_table(id int, name string) using orc;
   create table right_tabl(id int, book string) using orc;
   insert into left_table values (1,'a'),(2,'b'),(3,'c'),(4,'d');
   insert into right_tabl values (1,'a'),(1,'b'),(2,'c'),(2,'d');
   select p1.id, p1.name, p2.book from left_table p1 left join (select id, id, 
book from right_tabl where id <= 2) p2 on p1.id=p2.id;
   ```
   exception:
   ```
   org.apache.gluten.exception.GlutenException: Cannot add column id#12: column 
with this name already exists
   ```
   
   Spark supports this case
   
   ### Spark version
   
   None
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   _No response_


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to