Field types of Tarantool 3.1+ are not supported
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
- 44/100
Hướng nghiên cứu
Start with the TypeName constants in tt.go:10 and GetConverterByType in tt.go:230, then check Tarantool’s field type documentation for the integer ranges and decimal formats. Add support for the listed Tarantool 3.1+ and 3.5+ types without breaking custom TTConvFactory implementations. Done when MakeTypeToTTConverters handles spaces containing these types.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Reproduction snippets assume:
fac := tupleconv.MakeStringToTTConvFactory()
Where: TypeName constants (tt.go:10), GetConverterByType (tt.go:230).
Tarantool 3.1.0 added the field types int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64, and 3.5.0 added decimal32, decimal64, decimal128, decimal256 (field_type_strs in src/box/field_def.c). GetConverterByType returns unexpected type: int8 for them, so MakeTypeToTTConverters fails for the whole space format if any field uses one of these types.
Suggested fix: add the type names and converters: range-checked integers for the fixed-size integer types, floats for float32/float64, and decimals for the decimal* types (check the Tarantool docs for their format options, SpaceField may need more fields). Adding methods to the TTConvFactory interface breaks its custom implementations. An optional extension interface, checked with a type assertion in GetConverterByType, avoids that.
- Ngôn ngữ chính
- Go
- Star
- 1
- Fork
- 0
- Merge trung bình
- 1 giờ 43 phút
- Pull request đã merge (30 ngày)
- 2
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 tarantool/go-tupleconv
-
build issue code health
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
tarantool/go-tupleconv#27 ·
-
code health
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
tarantool/go-tupleconv#26 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
tarantool/go-tupleconv#25 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
tarantool/go-tupleconv#23 ·
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
tarantool/go-tupleconv#22 ·
Tất cả issue của tarantool/go-tupleconv
Issue tương tự
-
☢️ Bug v3
Độ 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
-
area/import-export area/projects concern/ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
go-vikunja/vikunja#4455 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Dependabot PRs no longer merge automaticallyCó thể đã có người làm @dwisiswant0 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
projectdiscovery/urlfinder#160 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
database
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
chnm/legal-modernism#450 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày