tuichenchuxin opened a new issue #14987:
URL: https://github.com/apache/shardingsphere/issues/14987


   ## Background
   Currently, if we create a encrypt table like this
   ```
   mysql> PREVIEW CREATE TABLE `t_encrypt` (`id` int(11) DEFAULT NULL, 
`user_id` varchar(100) DEFAULT NULL, `order_id` varchar(100) DEFAULT NULL) 
ENGINE=InnoDB;
   
+------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   | data_source_name | sql                                                     
                                                                                
                                                |
   
+------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   | ds_0             | CREATE TABLE `t_encrypt` (`id` int(11) DEFAULT NULL, 
user_cipher varchar(100) DEFAULT NULL, user_plain varchar(100) DEFAULT NULL, 
order_cipher varchar(100) DEFAULT NULL) ENGINE=InnoDB |
   
+------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   ```
   The cipher column's data type and length is same with the logic column.
   But encrypt column will have some difference with logic column.
   So, we think we need to add config for this.
   ## Task
   - [ ] Mete Data load encrypt table with config logic column data type
   - [ ] EncryptCreateTableTokenGenerator、EncryptAlterTableTokenGenerator 
support create token by config
   - [ ] DistSQL support creating encrypt rule with config


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