userkdg opened a new issue #13940:
URL: https://github.com/apache/shardingsphere/issues/13940


   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   5.0.0-GA
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy
   
   ### Expected behavior
   
   select count(0) as cnt from ( select address_cipher as address from 
ec_oms_order ) as tmp;
   
   ### Actual behavior
   
   select count(0) as cnt from ( select address from ec_oms_order ) as tmp;
   
   ### Reason analyze (If you can)
   
   sql parser failed , not supported subquery select on encrypt tables
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   ```
   MySQL [ec_order_db]> preview select count(0) as cnt from ( select address 
from ec_oms_order ) as tmp;
   
+------------------+-------------------------------------------------------------------------+
   | data_source_name | sql                                                     
                |
   
+------------------+-------------------------------------------------------------------------+
   | ec_order_ds      | select count(0) as cnt from ( select address from 
ec_oms_order ) as tmp |
   
+------------------+-------------------------------------------------------------------------+
   ```


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