DTStack / DTStack/dt-sql-parser
[Bug]: sql未正确输入结束但被解析为语法正确的statement
Aperta
- Lingua principale
- TypeScript
- Stelle
- 394
- Fork
- 108
- Merge medio
- 3g 21h
- PR unite (30g)
- 2
Descrizione
### Version
v4.1
### Which SQL?
Hive
### SQL content
```sql
CREATE TABLE table1
```
### JavaScript/TypeScript code
_No response_
### What happened?
建表语句缺少列定义的情况,在 Hive 实际语法中是非法的,但在解析树中没有报错
导致 c3 收集补全时把 `statement` 开头的所有关键字都收集进来了,正常应该是 AS、Like等等
### Relevant log output
_No response_
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.