Remove the XTDB_GENERATE_SERIES_END_EXCLUSIVE escape hatch
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- databases
Hướng nghiên cứu
Start with core/src/main/clojure/xtdb/sql.clj and src/test/clojure/xtdb/sql/generate_series_test.clj to trace the environment variable read and its effect on visitGenerateSeries; then review the v2.2 changelog in docs/src/content/docs/reference/main/stdlib/table.md. The issue identifies the removal and test cleanup, but the target release and whether startup should warn or fail are unresolved; done means the setting is removed, tests reflect the fixed semantics, and the removing release explains migration to RANGE.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
v2.2.0 made GENERATE_SERIES end-inclusive and kept end-exclusive behaviour under RANGE (47660d6fbd, #5382). To cover the upgrade, that commit also added a node-level escape hatch, XTDB_GENERATE_SERIES_END_EXCLUSIVE=true, which reverts GENERATE_SERIES to its pre-2.2 semantics. The commit was explicit that this is "migration cover, not a long-lived setting": anyone who wants end-exclusive for good should be on RANGE. Nothing tracks taking it out, so this card does.
Current state
xtdb.sql/*generate-series-end-exclusive?*(core/src/main/clojure/xtdb/sql.clj) reads the env var at namespace load.visitGenerateSeriesANDs it intoinclusive?, so with the flag setGENERATE_SERIESplans identically toRANGE.test-end-exclusive-escape-hatchinsrc/test/clojure/xtdb/sql/generate_series_test.cljpins the flag's behaviour viasql/plan.- The v2.2 changelog in
docs/src/content/docs/reference/main/stdlib/table.mdlists the env var as an upgrade step.
Future state
GENERATE_SERIESis always end-inclusive andRANGEalways end-exclusive, decided purely by which keyword was parsed.- The dynamic var, the env-var read and the escape-hatch test are gone.
- The changelog entry for the release that removes it says so, and points anyone still setting the env var at
RANGE.
Constraints
- This is a user-facing break. The env var shipped in v2.2.0, so a node that still sets it silently flips
GENERATE_SERIESback to inclusive on upgrade, with no error. The removal belongs in a minor release, not a patch, and needsbreaking changeplus a!commit.
Open questions
- Which release drops it? Needs enough of a window after v2.2.0 for users to have migrated to
RANGE. - Should a node that still sets
XTDB_GENERATE_SERIES_END_EXCLUSIVEfail loudly (or at least warn) at startup, rather than being silently ignored?
Progress
Status: not started
- Remove
*generate-series-end-exclusive?*and its use invisitGenerateSeries - Remove
test-end-exclusive-escape-hatch - Changelog entry in
stdlib/table.mdfor the removing release
- Ngôn ngữ chính
- Clojure
- Star
- 3.1k
- Fork
- 193
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 73
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của xtdb/xtdb
-
unshaved-yak
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
sql unshaved-yak
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
flaky
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
metrics
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
.Needs Triage Priority:P3 Type:Bug
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
metabase/metabase#88270 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
editor-code-assistant/eca#717 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
nasa/Common-Metadata-Repository#2544 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100