Copilot commented on code in PR #3536:
URL: https://github.com/apache/doris-website/pull/3536#discussion_r3068025421
##########
i18n/zh-CN/docusaurus-plugin-content-docs/version-3.x/table-design/data-partitioning/auto-partitioning.md:
##########
@@ -243,7 +243,7 @@ auto partition by range (date_trunc(k0, 'year'))
)
DISTRIBUTED BY HASH(`k0`) BUCKETS 2
properties(
- "dynamic_partition.enable" = "false",
+ "dynamic_partition.enable" = "true",
"dynamic_partition.prefix" = "p",
"dynamic_partition.start" = "-50",
"dynamic_partition.end" = "0", --- Dynamic Partition 不创建分区
Review Comment:
这一段文字说明是“关闭 Dynamic Partition 的创建功能”,但示例里现在设置了 `dynamic_partition.enable =
"true"` 且 `dynamic_partition.end = "0"`。在 3.x
的动态分区参数说明中,`dynamic_partition.end` 被描述为正数;如果 `0` 不被支持,那么启用后这段建表 SQL
可能不可执行。建议:要么把示例改成受支持的 `end` 值并同步修正文案/注释,要么在文档中明确说明 `end = 0`
是一个特殊用法(例如仅不预创建分区)并澄清它与完全禁用 Dynamic Partition 的区别。
##########
versioned_docs/version-3.x/table-design/data-partitioning/auto-partitioning.md:
##########
@@ -246,7 +246,7 @@ auto partition by range (date_trunc(k0, 'year'))
)
DISTRIBUTED BY HASH(`k0`) BUCKETS 2
properties(
- "dynamic_partition.enable" = "false",
+ "dynamic_partition.enable" = "true",
"dynamic_partition.prefix" = "p",
"dynamic_partition.start" = "-50",
"dynamic_partition.end" = "0", --- Dynamic Partition No Partition Creation
Review Comment:
The surrounding text says to "disable the creation of Dynamic Partition"
while keeping it for lifecycle management, but this example now sets
`dynamic_partition.enable = "true"` and uses `dynamic_partition.end = "0"`. In
the Dynamic Partition docs for 3.x, `dynamic_partition.end` is described as a
positive number; if `0` is not supported, this SQL will be invalid once
enabled. Please either (1) adjust the example to a supported `end` value and
update the explanation/comment accordingly, or (2) explicitly document that
`end = 0` is a special case meaning “don’t pre-create partitions” (and clarify
how that differs from disabling Dynamic Partition entirely).
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]