[Bug] the 'ALTER timeseries {ts} DROP {tag1 .. tagN}' clause is confusing (no tags/attributes discrimination)
- 主要言語
- Java
- スター
- 6.4k
- フォーク
- 1.2k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 115
説明
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.
### Version
1.3 release
### Describe the bug and provide the minimal reproduce step
If a same name is used for TAGS and ATTRIBUTES, the DROP clause doesn't know to discriminate them.
```
ALTER timeseries root.turbine.d1.s1 ADD TAGS meta1=tag_value
ALTER timeseries root.turbine.d1.s1 ADD ATTRIBUTES meta1=attr_value
ALTER timeseries root.turbine.d1.s1 DROP meta1
ALTER timeseries root.turbine.d1.s1 DROP meta1
```
### What did you expect to see?
DROP should accept a TAGS/ATTRIBUTES specifier (as the others clauses, ADD/UPSERT)
### What did you see instead?
IoTDB seems to drop the TAGS at 1th call. The second call removes the attribute
### Anything else?
The SET or RENAME clauses exhibit same behavior
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
コントリビューションガイド
調査の方向性
まず、issue にある ALTER timeseries のシーケンスを、同名の TAGS と ATTRIBUTES、および関連する SET と RENAME のケースを含めて再現します。次に、DROP、SET、RENAME に対する ALTER timeseries の処理を追跡し、明示的に TAGS または ATTRIBUTES を選択した場合に、要求されたメタデータのみが削除されることを示す回帰テストカバレッジを追加します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, sql
- 領域
- databases
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100