Field types of Tarantool 3.1+ are not supported
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Go
- スター
- 1
- フォーク
- 0
- 平均マージ
- 1時間 43分
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tarantool/go-tupleconv のほかの issue
-
build issue code health
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
tarantool/go-tupleconv#27 ·
-
code health
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
tarantool/go-tupleconv#26 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
tarantool/go-tupleconv#25 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
tarantool/go-tupleconv#23 ·
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
tarantool/go-tupleconv#22 ·
tarantool/go-tupleconv の issue をすべて見る
似ている issue
-
☢️ Bug v3
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
area/import-export area/projects concern/ux
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
go-vikunja/vikunja#4455 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Dependabot PRs no longer merge automatically対応中かも @dwisiswant0 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
projectdiscovery/urlfinder#160 ·
メンテナーはふだん 1 日以内に返信
-
database
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
chnm/legal-modernism#450 ·
メンテナーはふだん 1 日以内に返信
-
tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信