eosphoros-ai / eosphoros-ai/sqlgpt-parser
OceanBase语法树解析问题
- Dominant language
- Python
- Stars
- 36
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
1. 不支持replace语句的解析
```python
parse(input=sql, lexer=lexer, debug=debug, tracking=tracking, tokenfunc=tokenfunc)
File "/home/jingshun.tq/.local/lib/python3.8/site-packages/ply/yacc.py", line 333, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/home/jingshun.tq/.local/lib/python3.8/site-packages/ply/yacc.py", line 1201, in parseopt_notrack
tok = call_errorfunc(self.errorfunc, errtoken, self)
File "/home/jingshun.tq/.local/lib/python3.8/site-packages/ply/yacc.py", line 192, in call_errorfunc
r = errorfunc(token)
File "/home/jingshun.tq/.local/lib/python3.8/site-packages/sqlgpt_parser/parser/oceanbase_parser/parser.py", line 3977, in p_error
raise err
File "", line 1
REPLACE INTO table_name (column1, column2) VALUES ('value1', 'value2')
^
SyntaxError: The current version does not support this SQL
>>>
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.