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

[Do Not Merge][POC] Calcite integration #993

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

LantaoJin
Copy link
Member

@LantaoJin LantaoJin commented Dec 16, 2024

Description

This is the POC of Calcite integration: Leverage the current PPL ANTLR grammar and existing AST and convert the AST to Calcite logical plan (RelNode):

  • support basic commands: source, filter, sort, fields, where
  • support aggregate functions in stats
  • support built-in functions: math, string, datetime
  • support join and lookup
  • support subquery
  • support window functions
  • support UDF andJSON functions
  • support nested fields: index.b.c
  • support executing via Calcite Enumerable/Linq4j
  • support executing via ES adaptor
  • support converting back Rel to Spark SQL
  • support customized optimizer rules

Related Issues

List any issues this PR will resolve, e.g. Resolves [...].

Check List

  • Updated documentation (docs/ppl-lang/README.md)
  • Implemented unit tests
  • Implemented tests for combination with other commands
  • New added source code should include a copyright header
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Lantao Jin <[email protected]>
@LantaoJin
Copy link
Member Author

CI failed with ArrayIndexOutOfBoundsException due to the bug of Calcite 1.36.0+, reported in sbt/sbt-assembly#475

@YANG-DB
Copy link
Member

YANG-DB commented Dec 16, 2024

@LantaoJin looks great !!!

Signed-off-by: Lantao Jin <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants