4paradigm / 4paradigm/OpenMLDB
casting to map data type
オープン
enhancement
execute-engine
sql
- 主要言語
- C++
- スター
- 1.7k
- フォーク
- 331
- 平均マージ
- 12日 12時間
- マージ済み PR(30日)
- 1
説明
1. `cast (null as map )` -> `NULL of type map `
2. `cast ( map () as map )` -> `{} of type map `
3. `cast ( map (key1, val1, ...) as map )` -> `map (cast (key1 as KEY), cast (val1 as VALUE), ...)`, as long as `typeof (key1) convertible to KEY, typeof (val1) convertible to VALUE`
`KEY` and `VALUE` can be any valid type
コントリビューションガイド
調査の方向性
Look for map casting logic in the SQL type system and expression evaluation code. The issue describes three specific casting behaviors for map types. Find existing cast implementations for other types to understand the pattern. Test with map constructors and type conversions to verify the new behavior.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- sql
- 領域
- backend, databases
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100