This is an automated email from the ASF dual-hosted git repository.
chengzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 095a9d424a9 Update single table use way in FAQ doc (#29141)
095a9d424a9 is described below
commit 095a9d424a9019e5e662f37bdb783a3f3f5c363e
Author: Zhengqiang Duan <[email protected]>
AuthorDate: Thu Nov 23 19:12:02 2023 +0800
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 24e87b55f8d..2f95de0d67c 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 ab269dd36fe..72cb596b715 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?