[Bug] 'order by name desc' can't work
- 主要言語
- 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.0.0
### Describe the bug and provide the minimal reproduce step
exec:
'select _state_id_, name from root.G9990002.terminal where _state_id_<='Sck-20-13' order by name desc'
produced a error:
700: Error occurred while parsing SQL to physical plan: line 1:91 no viable alternative at input
However,
select _state_id_, name from root.G9990002.terminal where _state_id_<='Sck-20-13' order by time desc
executed correctly.
### What did you expect to see?
the following sql execute failed:
select _state_id_, name from root.G9990002.terminal where _state_id_<='Sck-20-13' order by name desc
### What did you see instead?
select _state_id_, name from root.G9990002.terminal where _state_id_<='Sck-20-13' order by name desc
can be executed correctly.
### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
コントリビューションガイド
調査の方向性
まず、IoTDB 1.0.0 に対して報告されたクエリと動作する `order by time desc` 版を再現し、次に `order by name desc` の SQL パース経路を追跡します。名前順のクエリが一貫してパースおよび実行され、既存の時間順クエリも引き続き動作すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, sql
- 領域
- databases
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100