From 095a9d424a9019e5e662f37bdb783a3f3f5c363e Mon Sep 17 00:00:00 2001 From: Zhengqiang Duan Date: Thu, 23 Nov 2023 19:12:02 +0800 Subject: [PATCH] Update single table use way in FAQ doc (#29141) --- docs/document/content/faq/_index.cn.md | 2 +- docs/document/content/faq/_index.en.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/document/content/faq/_index.cn.md b/docs/document/content/faq/_index.cn.md index 24e87b55f8d94..2f95de0d67cd8 100644 --- a/docs/document/content/faq/_index.cn.md +++ b/docs/document/content/faq/_index.cn.md @@ -135,7 +135,7 @@ Java的整数相除结果是整数,但是对于 inline 表达式中的 Groovy 回答: -不需要,ShardingSphere 会自动识别。 +不分库分表的表在 ShardingSphere 中叫做单表,可以使用 [LOAD 语句](https://shardingsphere.apache.org/document/current/cn/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/single-table/load-single-table/)或者 [SINGLE 规则](https://shardingsphere.apache.org/document/current/cn/user-manual/shardingsphere-jdbc/yaml-config/rules/single/)配置需要加载的单表。 ### [分片] 指定了泛型为 Long 的 `SingleKeyTableShardingAlgorithm`,遇到 `ClassCastException: Integer can not cast to Long`? diff --git a/docs/document/content/faq/_index.en.md b/docs/document/content/faq/_index.en.md index ab269dd36fe5f..72cb596b7159c 100644 --- a/docs/document/content/faq/_index.en.md +++ b/docs/document/content/faq/_index.en.md @@ -144,7 +144,7 @@ To obtain integer division result, A/B needs to be modified as A.intdiv(B). Answer: -No, ShardingSphere will recognize it automatically. +A table that does not use sharding is called single table in ShardingSphere, and you can use [LOAD statements](https://shardingsphere.apache.org/document/current/cn/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/single-table/load-single-table/) or [SINGLE rule](https://shardingsphere.apache.org/document/current/en/user-manual/shardingsphere-jdbc/yaml-config/rules/single/) to configure the single table that needs to be loaded. ### [Sharding] When generic Long type `SingleKeyTableShardingAlgorithm` is used, why does the `ClassCastException: Integer can not cast to Long` exception appear?