794086163 opened a new issue, #24917:
URL: https://github.com/apache/shardingsphere/issues/24917
## 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
Cannot get function alias field!
### Reason analyze (If you can)
SQL parsing exception

### 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"
FROM
test
ORDER BY
"date"
) b ON A."statisticsDate" = b."date"
--
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]