[Bug] 'order by name desc' can't work
- 主要语言
- Java
- 星标
- 6.4k
- 派生
- 1.2k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 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