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

bug(sqlparser): misleading error when CREATE SOURCE with hyphens #12597

Closed
xiangjinwu opened this issue Sep 29, 2023 · 0 comments · Fixed by #13944
Closed

bug(sqlparser): misleading error when CREATE SOURCE with hyphens #12597

xiangjinwu opened this issue Sep 29, 2023 · 0 comments · Fixed by #13944
Assignees
Labels
component/frontend Protocol, parsing, binder. type/bug Something isn't working
Milestone

Comments

@xiangjinwu
Copy link
Contributor

xiangjinwu commented Sep 29, 2023

Describe the bug

No response

Error message/log

ERROR:  QueryError: sql parser error: expect description of the format

To Reproduce

create source foo-bar with () format plain encode protobuf ();

Expected behavior

Without hyphen, the error is:

dev=> create source foo with () format plain encode protobuf ();
ERROR:  QueryError: sql parser error: Expected identifier, found: ) at line:1, column:26
Near "create source foo with ()"

Or it should just report that - is not expected.

How did you deploy RisingWave?

No response

The version of RisingWave

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/frontend Protocol, parsing, binder. type/bug Something isn't working
Projects
None yet
1 participant