Skip to content

hive: support for special not expression !a and raise error for a! factorial operator #1472

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

Merged
merged 5 commits into from
Nov 13, 2024

Conversation

wugeer
Copy link
Contributor

@wugeer wugeer commented Oct 12, 2024

Closes: #1471
Closes: #1473

@coveralls
Copy link

coveralls commented Oct 16, 2024

Pull Request Test Coverage Report for Build 11685843065

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 68 of 78 (87.18%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.006%) to 89.39%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/dialect/hive.rs 1 2 50.0%
src/dialect/postgresql.rs 1 2 50.0%
src/dialect/mod.rs 2 4 50.0%
tests/sqlparser_common.rs 57 63 90.48%
Totals Coverage Status
Change from base Build 11651598157: -0.006%
Covered Lines: 30567
Relevant Lines: 34195

💛 - Coveralls

@wugeer
Copy link
Contributor Author

wugeer commented Oct 25, 2024

@iffyio Thank you for your suggestions—I learned a lot from them, I've resubmitted an updated version of the code. When you have a moment, could you please review it? Thanks!:)

@wugeer wugeer requested a review from iffyio October 25, 2024 14:35
@wugeer wugeer requested a review from iffyio October 27, 2024 08:17
@wugeer wugeer force-pushed the fix_issue_1471 branch 2 times, most recently from de68644 to 99910dd Compare October 27, 2024 11:05
@wugeer
Copy link
Contributor Author

wugeer commented Oct 27, 2024

@iffyio Sorry, my oversight caused the code not to be merged. The code has been re-pushed.

Copy link
Contributor Author

@wugeer wugeer left a comment

Choose a reason for hiding this comment

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

Have Done! @iffyio

@wugeer wugeer requested a review from iffyio October 30, 2024 14:29
@wugeer wugeer requested a review from iffyio October 31, 2024 12:50
Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

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

@wugeer just one comment I think was missed, otherwise this looks close, thanks!

@wugeer wugeer requested a review from iffyio October 31, 2024 23:35
Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @wugeer!
cc @alamb

@wugeer wugeer force-pushed the fix_issue_1471 branch 3 times, most recently from deb38db to b0c789c Compare November 5, 2024 14:07
@wugeer
Copy link
Contributor Author

wugeer commented Nov 8, 2024

@alamb Could you spare some time to review this PR? Thanks! :)

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Looks good to me -- thank you @wugeer and @iffyio

@alamb alamb merged commit e857787 into apache:main Nov 13, 2024
8 checks passed
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.

Hive should not successfully parse the factorial operator hive doesn't support !a expression
4 participants