4paradigm / 4paradigm/OpenMLDB

map data type limitations

Đang mở
#3,915 1 bình luận 0 reaction 1 người được giao Được @aceforeverd nhận Xem trên GitHub
bug documentation enhancement execute-engine sql
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ả

**Bug Description**
test table: `CREATE TABLE t1 (c1 string, c2 int, c3 MAP);`

1. In the `desc t1;` statement, the key and value types of the map are not displayed.
2. In the `SHOW CREATE TABLE t1;` statement, columns of type map are not displayed.
3. In the SQL syntax documentation for table creation, the support for the map type is not specified. It is necessary to add support documentation for the map type and provide an example.
4. After executing the statement INSERT INTO t1 VALUES ("1", 1, map(1, "12", 2, "100"));, a warning-level alert log is being displayed.
`insert into t1 values ("1", 1, map(1, "12", 2, "100"));`
`W20240429 14:40:09.353835 19961 codec.cc:82] type is not supported`
6. In the `SELECT * FROM t1;` statement, the columns are displaying incorrectly or out of alignment.
![image](https://github.com/4paradigm/OpenMLDB/assets/162977423/fef88b45-5e2d-4069-be5b-4f8156f6a748)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

The issue describes multiple problems with the MAP data type in OpenMLDB: display in DESC and SHOW CREATE TABLE, missing documentation, a warning log on INSERT, and misaligned SELECT output. Start by examining the SQL parser and type system code for map support, check the codec.cc file for the unsupported type warning, and review the table schema rendering logic. Testing involves creating tables with MAP columns and verifying the output of various SQL commands.

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
databases, documentation
Loại issue
Lỗi
Độ 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
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.