Skip to content

Commit

Permalink
Update single table use way in FAQ doc (#29141)
Browse files Browse the repository at this point in the history
  • Loading branch information
strongduanmu authored Nov 23, 2023
1 parent 459c705 commit 095a9d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/document/content/faq/_index.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`?

Expand Down
2 changes: 1 addition & 1 deletion docs/document/content/faq/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down

0 comments on commit 095a9d4

Please sign in to comment.