4paradigm / 4paradigm/OpenMLDB

map data type limitations

オープン
#3,915 コメント 1 件 リアクション 0 件 担当者 1 名 @aceforeverd が担当を希望しています GitHub で見る
bug documentation enhancement execute-engine sql
主要言語
C++
スター
1.7k
フォーク
331
平均マージ
12日 12時間
マージ済み PR(30日)
1

説明

**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)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
sql
領域
databases, documentation
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。