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

[KYUUBI #6562] Support zorder clause syntax to use brackets #6563

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

huangxiaopingRD
Copy link
Contributor

@huangxiaopingRD huangxiaopingRD commented Jul 24, 2024

🔍 Description

Issue References 🔗

This pull request fixes #6562

Describe Your Solution 🔧

  • Modify KyuubiSparkSQL.g4 to support the zorder clause syntax to use brackets

Types of changes 🔖

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪

Behavior Without This Pull Request ⚰️

zorder clause syntax can't use brackets

Behavior With This Pull Request 🎉

zorder clause syntax can use brackets

Related Unit Tests


Checklist 📝

Be nice. Be informative.

@codecov-commenter
Copy link

codecov-commenter commented Jul 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (d3e1768) to head (9d3f17d).

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #6563   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files         677     677           
  Lines       41907   41907           
  Branches     5721    5721           
======================================
  Misses      41907   41907           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -746,14 +746,25 @@ trait ZorderSuiteBase extends KyuubiSparkSQLExtensionTest with ExpressionEvalHel
UnresolvedFunction("current_date", Seq.empty, false)),
UnresolvedRelation(TableIdentifier("p")))))))

// TODO: add following case support
intercept[ParseException] {
parser.parsePlan("OPTIMIZE p zorder by (c1)")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does Spark SQL support ORDER BY with parentheses

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, Spark does not support it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then I think we don't need to support that too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, I just saw this todo in the comment.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can delete those code and comments, unless @ulysses-you and @cfmcgrady have other ideas

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems added by @cfmcgrady , I'm fine to just remove the comment

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

[Improvement] Zorder clause syntax support brackets
5 participants