strongduanmu commented on issue #26028: URL: https://github.com/apache/shardingsphere/issues/26028#issuecomment-1574742325
When subquery contains encrypt column, and not config subquery alias, it will throw exception. ``` [INFO ] 2023-06-03 15:18:19.429 [Connection-1-ThreadExecutor] ShardingSphere-SQL - Logic SQL: SELECT * FROM (SELECT id, user_id, order_id, (SELECT user_name FROM t_user LIMIT 1) FROM t_encrypt) temp [INFO ] 2023-06-03 15:18:19.430 [Connection-1-ThreadExecutor] ShardingSphere-SQL - Actual SQL: ds_0 ::: SELECT temp.`id`, temp.`user_cipher` AS `user_id`, temp.`order_cipher` AS `order_id`, (SELECT user_name FROM t_user LIMIT 1) AS `(SELECT user_name FROM t_user LIMIT 1)` FROM (SELECT id, user_cipher, user_plain, order_cipher, (SELECT user_name_cipher AS user_name FROM t_user LIMIT 1) FROM t_encrypt) temp ``` -- 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]
