eosphoros-ai / eosphoros-ai/sqlgpt-parser

OceanBase语法树解析问题

Open
#11 2 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.