4paradigm / 4paradigm/OpenMLDB
casting to map data type
- Ngôn ngữ chính
- C++
- Star
- 1.7k
- Fork
- 331
- Merge trung bình
- 12 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
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
Hướng dẫn đóng góp
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- sql
- Lĩnh vực
- backend, databases
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100