zxk1111 commented on issue #24207:
URL: 
https://github.com/apache/shardingsphere/issues/24207#issuecomment-2185428616

   i has the same error,like select t.*  from (select s.field_1,if(s.field_2 is 
null,1,2) as field_2 from sub s)t  will display this error because of t.*,
   if like select t.field_1,t.field_2 will success,
   
   error msg:
   java.sql.SQLFeatureNotSupportedException: can't get index from 
columnLabel[field_2]
   
   related version:
   <dependency>
               <groupId>org.apache.shardingsphere</groupId>
               
<artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
               <version>5.1.1</version>
   </dependency>
   <dependency>
               <groupId>com.alibaba</groupId>
               <artifactId>druid-spring-boot-starter</artifactId>
               <version>1.2.20</version>
   </dependency>


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