Open 794086163 opened 1 year ago
Hi @794086163, does this sql contains sharding table?
Hi @794086163, does this sql contains sharding table? Does not contain
You can try the latest 5.3.2 version, we have fix this exception.
You can try the latest 5.3.2 version, we have fix this exception.
ok,i try it
5.3.2 Can be fixed
You can try the latest 5.3.2 version, we have fix this exception.
select cast( id as text) ,cast(id as text) from test
Bug Report
Which version of ShardingSphere did you use?
5.2.1
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
Expected behavior
can get the function alias field
Actual behavior
Error attempting to get column 'statisticsDate' from result set. Cause: java.sql.SQLFeatureNotSupportedException: Can not get index from column label
statisticsDate
.\n; Can not get index from column labelstatisticsDate
.; nested exception is java.sql.SQLFeatureNotSupportedException: Can not get index from column labelstatisticsDate
."Reason analyze (If you can)
SQL parsing exception![image](https://user-images.githubusercontent.com/37607959/228998448-a75b7004-0dd3-455c-bb37-67c9b6e1060b.png)
Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
SELECT * FROM ( SELECT '2023-03' AS "statisticsDate" ) A LEFT JOIN ( SELECT id AS "data_net_type" , to_char( date_trunc( 'month', '2023-03-03' :: DATE ), 'YYYY-MM' ) AS "date"