Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sql parse bug #2351

Open
anywo opened this issue Dec 13, 2024 · 0 comments
Open

Sql parse bug #2351

anywo opened this issue Dec 13, 2024 · 0 comments

Comments

@anywo
Copy link

anywo commented Dec 13, 2024

version: 1.0.0-rc.3
SQL:SELECT * FROM ( WITH RECURSIVE org_tree AS ( SELECT id, name, parent_id, node_type, 0 AS level FROM base WHERE id = $ROOT_ID$ UNION ALL SELECT o.id, o.name, o.parent_id, o.node_type, ot.level + 1 FROM base o INNER JOIN org_tree ot ON o.parent_id = ot.id ) SELECT * FROM org_tree ORDER BY level, id ) AS DATART_VTABLE LIMIT 1000 OFFSET 0
DB: MYSQL
EXCEPTION:org.apache.calcite.sql.parser.SqlParseException: Incorrect syntax near the keyword 'RECURSIVE' at line 1, column 23.
Was expecting one of:
<BRACKET_QUOTED_IDENTIFIER> ...
<QUOTED_IDENTIFIER> ...
<BACK_QUOTED_IDENTIFIER> ...
<HYPHENATED_IDENTIFIER> ...
...
<UNICODE_QUOTED_IDENTIFIER> ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant