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

Improve parsing of aggregate expressions #535

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

amahussein
Copy link
Collaborator

Signed-off-by: Ahmed Hussein (amahussein) [email protected]

Fixes #519

  • parseAggregateExpressions function was very specific on the pattern of the aggregate expression.
  • the chnages update the implementation to correctly pull any possible function name from the aggregates
  • added 1 unit test with complex expression

Signed-off-by: Ahmed Hussein (amahussein) <[email protected]>

Fixes NVIDIA#519

- `parseAggregateExpressions` function was very specific on the pattern
  of the aggregate expression.
- the chnages update the implementation to correctly pull any possible
  function name from the aggregates
- added 1 unit test with complex expression
@amahussein amahussein added bug Something isn't working core_tools Scope the core module (scala) labels Sep 1, 2023
@amahussein amahussein self-assigned this Sep 1, 2023
Copy link
Collaborator

@nartal1 nartal1 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 @amahussein !

@amahussein amahussein merged commit 9c39862 into NVIDIA:dev Sep 7, 2023
9 checks passed
@amahussein amahussein deleted the spark-rapids-tools-519 branch September 7, 2023 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core_tools Scope the core module (scala)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Aggregate expressions are not parsed correctly
2 participants