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/02/02 12:09:19 UTC

[GitHub] [shardingsphere] lmhmhl opened a new pull request #9280: Update mix.cn.md

lmhmhl opened a new pull request #9280:
URL: https://github.com/apache/shardingsphere/pull/9280


   Fixes #ISSUSE_ID.
   
   Changes proposed in this pull request:
   -
   -
   -
   


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

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



[GitHub] [shardingsphere] AI1186780944 commented on a change in pull request #9280: Update mix.cn.md

Posted by GitBox <gi...@apache.org>.
AI1186780944 commented on a change in pull request #9280:
URL: https://github.com/apache/shardingsphere/pull/9280#discussion_r570053061



##########
File path: docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/mix.cn.md
##########
@@ -3,4 +3,66 @@ title = "混合规则"
 weight = 6
 +++
 
-TODO
+* 配置项说明
+
+## 配置项说明
+```yml
+rules:
+  - !SHARDING
+    tables:
+      t_order_item_calcite_sharding:
+        actualDataNodes: calcite_ds.t_order_item_calcite_sharding_${0..1}
+        tableStrategy:
+          standard:
+            shardingColumn: item_id
+            shardingAlgorithmName: table_inline_item_id
+      t_user_encrypt_calcite_sharding:
+        actualDataNodes: calcite_ds.t_user_encrypt_calcite_sharding_${0..1}
+        tableStrategy:
+          standard:
+            shardingColumn: user_id
+            shardingAlgorithmName: table_inline_user_id
+    shardingAlgorithms:
+      table_inline_item_id:
+        type: INLINE
+        props:
+          algorithm-expression: t_order_item_calcite_sharding_${item_id % 2}
+      table_inline_user_id:
+        type: INLINE
+        props:
+          algorithm-expression: t_user_encrypt_calcite_sharding_${user_id % 2}
+  - !ENCRYPT
+    encryptors:
+      encryptor_aes:

Review comment:
       In the process of using it, I found that "_" can't be used here, "-" should be used instead. Otherwise, this value will not be recognized, resulting in an error. I configured it in properties format. I don't know if yaml format will have this problem.The version is 5.0.0-alpha




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

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



[GitHub] [shardingsphere] AI1186780944 commented on a change in pull request #9280: Update mix.cn.md

Posted by GitBox <gi...@apache.org>.
AI1186780944 commented on a change in pull request #9280:
URL: https://github.com/apache/shardingsphere/pull/9280#discussion_r570053061



##########
File path: docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/mix.cn.md
##########
@@ -3,4 +3,66 @@ title = "混合规则"
 weight = 6
 +++
 
-TODO
+* 配置项说明
+
+## 配置项说明
+```yml
+rules:
+  - !SHARDING
+    tables:
+      t_order_item_calcite_sharding:
+        actualDataNodes: calcite_ds.t_order_item_calcite_sharding_${0..1}
+        tableStrategy:
+          standard:
+            shardingColumn: item_id
+            shardingAlgorithmName: table_inline_item_id
+      t_user_encrypt_calcite_sharding:
+        actualDataNodes: calcite_ds.t_user_encrypt_calcite_sharding_${0..1}
+        tableStrategy:
+          standard:
+            shardingColumn: user_id
+            shardingAlgorithmName: table_inline_user_id
+    shardingAlgorithms:
+      table_inline_item_id:
+        type: INLINE
+        props:
+          algorithm-expression: t_order_item_calcite_sharding_${item_id % 2}
+      table_inline_user_id:
+        type: INLINE
+        props:
+          algorithm-expression: t_user_encrypt_calcite_sharding_${user_id % 2}
+  - !ENCRYPT
+    encryptors:
+      encryptor_aes:

Review comment:
       In the process of using it, I found that "_" can't be used here, "-" should be used instead. Otherwise, this value will not be recognized, resulting in an error. I configured it in properties format. I don't know if yaml format will have this problem.

##########
File path: docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/mix.cn.md
##########
@@ -3,4 +3,66 @@ title = "混合规则"
 weight = 6
 +++
 
-TODO
+* 配置项说明
+
+## 配置项说明
+```yml
+rules:
+  - !SHARDING
+    tables:
+      t_order_item_calcite_sharding:
+        actualDataNodes: calcite_ds.t_order_item_calcite_sharding_${0..1}
+        tableStrategy:
+          standard:
+            shardingColumn: item_id
+            shardingAlgorithmName: table_inline_item_id
+      t_user_encrypt_calcite_sharding:
+        actualDataNodes: calcite_ds.t_user_encrypt_calcite_sharding_${0..1}
+        tableStrategy:
+          standard:
+            shardingColumn: user_id
+            shardingAlgorithmName: table_inline_user_id
+    shardingAlgorithms:
+      table_inline_item_id:
+        type: INLINE
+        props:
+          algorithm-expression: t_order_item_calcite_sharding_${item_id % 2}
+      table_inline_user_id:
+        type: INLINE
+        props:
+          algorithm-expression: t_user_encrypt_calcite_sharding_${user_id % 2}
+  - !ENCRYPT
+    encryptors:
+      encryptor_aes:

Review comment:
       In the process of using it, I found that "_" can't be used here, "-" should be used instead. Otherwise, this value will not be recognized, resulting in an error. I configured it in properties format. I don't know if yaml format will have this problem.The version is 5.0.0-alpha




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

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



[GitHub] [shardingsphere] terrymanu merged pull request #9280: Update mix.cn.md

Posted by GitBox <gi...@apache.org>.
terrymanu merged pull request #9280:
URL: https://github.com/apache/shardingsphere/pull/9280


   


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

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



[GitHub] [shardingsphere] AI1186780944 commented on a change in pull request #9280: Update mix.cn.md

Posted by GitBox <gi...@apache.org>.
AI1186780944 commented on a change in pull request #9280:
URL: https://github.com/apache/shardingsphere/pull/9280#discussion_r570053061



##########
File path: docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/mix.cn.md
##########
@@ -3,4 +3,66 @@ title = "混合规则"
 weight = 6
 +++
 
-TODO
+* 配置项说明
+
+## 配置项说明
+```yml
+rules:
+  - !SHARDING
+    tables:
+      t_order_item_calcite_sharding:
+        actualDataNodes: calcite_ds.t_order_item_calcite_sharding_${0..1}
+        tableStrategy:
+          standard:
+            shardingColumn: item_id
+            shardingAlgorithmName: table_inline_item_id
+      t_user_encrypt_calcite_sharding:
+        actualDataNodes: calcite_ds.t_user_encrypt_calcite_sharding_${0..1}
+        tableStrategy:
+          standard:
+            shardingColumn: user_id
+            shardingAlgorithmName: table_inline_user_id
+    shardingAlgorithms:
+      table_inline_item_id:
+        type: INLINE
+        props:
+          algorithm-expression: t_order_item_calcite_sharding_${item_id % 2}
+      table_inline_user_id:
+        type: INLINE
+        props:
+          algorithm-expression: t_user_encrypt_calcite_sharding_${user_id % 2}
+  - !ENCRYPT
+    encryptors:
+      encryptor_aes:

Review comment:
       In the process of using it, I found that "_" can't be used here, "-" should be used instead. Otherwise, this value will not be recognized, resulting in an error. I configured it in properties format. I don't know if yaml format will have this problem.




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

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