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

EXPERIMENTAL: PPL to catalyst plan translator #2041

Closed

Conversation

YANG-DB
Copy link
Member

@YANG-DB YANG-DB commented Aug 30, 2023

Description

In Apache Spark, the DataFrame API serves as a programmatic interface for data manipulation and queries, allowing the construction of complex operations using a chain of method calls. This API can work in tandem with other query languages like SQL or PPL.

For instance, if you have a PPL query and a translator, you can convert it into DataFrame operations to generate an optimized execution plan. Spark's underlying Catalyst optimizer will convert these DataFrame transformations and actions into an optimized physical plan executed over RDDs or Datasets.

The pi is addressing the translating the PPL query (using the logical plan) into the spark corespondent logical plan - Catalyst based execution library.

Issues Resolved

#1875

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • 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.

@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Merging #2041 (5a4e59d) into main (627189b) will decrease coverage by 0.83%.
Report is 5 commits behind head on main.
The diff coverage is 71.42%.

❗ Current head 5a4e59d differs from pull request most recent head acaf59c. Consider uploading reports for the commit acaf59c to get more accurate results

@@             Coverage Diff              @@
##               main    #2041      +/-   ##
============================================
- Coverage     97.30%   96.47%   -0.83%     
- Complexity     4623     4718      +95     
============================================
  Files           407      412       +5     
  Lines         11934    12327     +393     
  Branches        828      864      +36     
============================================
+ Hits          11612    11893     +281     
- Misses          315      397      +82     
- Partials          7       37      +30     
Flag Coverage Δ
sql-engine 96.47% <71.42%> (-0.83%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
.../opensearch/sql/spark/ppl/CatalystPlanContext.java 56.25% <56.25%> (ø)
...search/sql/spark/ppl/CatalystQueryPlanVisitor.java 66.94% <66.94%> (ø)
...rc/main/java/org/opensearch/sql/utils/Builder.java 74.50% <74.50%> (ø)

... and 5 files with indirect coverage changes

@vmmusings
Copy link
Member

@YANG-DB Closing this pull request. Reopen if required.

@vmmusings vmmusings closed this Oct 3, 2023
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