Request corresponding error message for keyword conflicts.
- 主要言語
- Java
- スター
- 6.4k
- フォーク
- 1.2k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 115
説明
In 0.13.0, executing **select * from root.global.\*\*** in cli will raise an error:
`Msg: 401: Error occurred while parsing SQL to physical plan: line 1:19 mismatched input 'global' expecting {'*', '**', STRING_LITERAL, INTEGER_LITERAL, ID, QUTOED_ID_IN_NODE_NAME}`
This is because 'global' is a keyword in iotdb. Though the statement **select * from root.\`global\`.\*\*** is supported, the error message is not telling users there's been a keyword conflict.
Here are some possible solutions:
1. Add a message code representing keyword conflicts.
2. Show warnings when user try to use keywords in paths.
Also, creating or selecting from **root.global.\*\*** is not allowed in cli, but is ok in Java native api.
コントリビューションガイド
調査の方向性
パス内にキーワード `global` を含むクエリの CLI SQL パースパスから始め、次に issue で説明されている Java ネイティブ API の動作と比較します。キーワードの競合が現在どのように報告されているかを確認し、CLI と API で一貫した動作を定義します。失敗するクエリとその引用符付き形式を対象とするテストも追加します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, sql
- 領域
- api, cli, databases
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100