You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/12/09 05:01:43 UTC

[GitHub] [shardingsphere] userkdg opened a new issue #14010: encrypt rewrite sql bug

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


   ### Which version of ShardingSphere did you use?
   the lastest master
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy
   
   ### Expected behavior
   (no) subquery order by or group by
   
   ``` sql
   preview select a.address from ec_oms_order a group by a.address desc;
   > select a.address_cipher as address from ec_oms_order a group by a.address_cipher desc;
   
   preview select a.address from ec_oms_order a order by a.address desc;
   > select a.address_cipher as address from ec_oms_order a order by a.address_cipher desc;
   
   preview select count(1) as cnt from (select a.address from ec_oms_order a order by a.address desc ) as tmp;
   > select count(1) as cnt from (select a.address_cipher as address from ec_oms_order a group by a.address_cipher desc ) as tmp;
   
   preview select count(1) as cnt from (select a.address from ec_oms_order a order by a.address desc ) as tmp;
   > select count(1) as cnt from (select a.address_cipher as address from ec_oms_order a order by a.address_cipher desc ) as tmp;
   
   ```
   
   To remak : order by / group by can`t use xx_cipher as xx , so only rewrite to xx_cipher 
   
   ### Actual behavior
   
   (no) subquery order by or group by
   
   ``` sql
   preview select a.address from ec_oms_order a group by a.address desc;
   > select a.address_cipher as address from ec_oms_order a group by a.address desc;
   
   preview select a.address from ec_oms_order a order by a.address desc;
   > select a.address_cipher as address from ec_oms_order a order by a.address desc;
   
   preview select count(1) as cnt from (select a.address from ec_oms_order a order by a.address desc ) as tmp;
   > select count(1) as cnt from (select a.address_cipher as address from ec_oms_order a group by a.address desc ) as tmp;
   
   preview select count(1) as cnt from (select a.address from ec_oms_order a order by a.address desc ) as tmp;
   > select count(1) as cnt from (select a.address_cipher as address from ec_oms_order a order by a.address desc ) as tmp;
   
   ```
   
   ### Reason analyze (If you can)
   
   no implement rewrite order/group by encrypt columns .
   
   ### REMAK
   can`t push this issue to 5.0.1-GA Milestone ?i think This is the basis for ensuring that encryption is available
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] userkdg removed a comment on issue #14010: encrypt rewrite sql bug

Posted by GitBox <gi...@apache.org>.
userkdg removed a comment on issue #14010:
URL: https://github.com/apache/shardingsphere/issues/14010#issuecomment-989522985


   你好,很高兴收到您的邮件,谢谢。


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] strongduanmu commented on issue #14010: encrypt rewrite sql bug

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #14010:
URL: https://github.com/apache/shardingsphere/issues/14010#issuecomment-989522789


   @userkdg Thank you for your feedback, We will support this case later.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] userkdg commented on issue #14010: encrypt rewrite sql bug

Posted by GitBox <gi...@apache.org>.
userkdg commented on issue #14010:
URL: https://github.com/apache/shardingsphere/issues/14010#issuecomment-989522985


   你好,很高兴收到您的邮件,谢谢。


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] terrymanu closed issue #14010: encrypt rewrite sql bug

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #14010:
URL: https://github.com/apache/shardingsphere/issues/14010


   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] userkdg commented on issue #14010: encrypt rewrite sql bug

Posted by GitBox <gi...@apache.org>.
userkdg commented on issue #14010:
URL: https://github.com/apache/shardingsphere/issues/14010#issuecomment-989518265


   @cheese8 the issue samilar to [#13972 ], maybe repair all


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] cheese8 commented on issue #14010: encrypt rewrite sql bug

Posted by GitBox <gi...@apache.org>.
cheese8 commented on issue #14010:
URL: https://github.com/apache/shardingsphere/issues/14010#issuecomment-989942122


   it's not the same, please assign it to me, thanks. @strongduanmu 


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] cheese8 commented on issue #14010: encrypt rewrite sql bug

Posted by GitBox <gi...@apache.org>.
cheese8 commented on issue #14010:
URL: https://github.com/apache/shardingsphere/issues/14010#issuecomment-990070513


   it seems that AfterColumnDefinitionSegment was not supported in AlterDefinitionSegment yet. @tuichenchuxin @strongduanmu 


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org