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] JSQLParser 4.6 : KsqlDB : Not able to parse Ksqldb queries #1752

Open
devanshusharma17 opened this issue Mar 21, 2023 · 2 comments
Open

Comments

@devanshusharma17
Copy link

Always check against the Latest SNAPSHOT of JSQLParser and the Syntax Diagram

Failing SQL Feature:

  • When I tried to parse some ksql db queries not able to parse by CCJSqlParserUtil.parse method. I have tried some extra keywords added by ksql db like WITHIN, GRACE PERIOD and EMIT FINAL etc.
  • Example: WITHIN, GRACE PERIOD and EMIT FINAL can't be parsed. maybe more keywords for ksqldb. I tested only those one.

SQL Example:

  • Simplified Query Example, focusing on the failing feature
    -- select count(*) from log_data_testtopic_1b138324 t1 inner join TestTopic t2 WITHIN 1 MINUTES on t1.email = t2.email EMIT CHANGES;
    -- SELECT count(*), sum('id'), avg('id') FROM TestTopic WINDOW TUMBLING (SIZE 60 SECONDS) EMIT FINAL;

Software Information:

  • JSqlParser version - 4.6
  • Database (e. g. KsqlDB )

Tips:

Please write in English and avoid Screenshots (as we can't copy and paste content from it).
Try your example online with the latest JSQLParser and share the link in the error report.
Do provide Links or References to the specific Grammar and Syntax you are trying to use.

@devanshusharma17 devanshusharma17 changed the title [BUG] JSQLParser 4.6 : RDBMS : Not able to parse Ksqldb queries [BUG] JSQLParser 4.6 : KsqlDB : Not able to parse Ksqldb queries Mar 21, 2023
@manticore-projects
Copy link
Contributor

Greetings,

certainly not supported, since ksqlDB is a very specific/exotic DB for streaming/Kafka.
You can either provide or sponsor an implementation of those syntax.

@manticore-projects
Copy link
Contributor

Turns out, that there is some support for ksqlDB already. I found some KSQL related tests including support for WITHIN(..).

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

2 participants