-
Notifications
You must be signed in to change notification settings - Fork 6
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
issue_486 #487
base: main
Are you sure you want to change the base?
issue_486 #487
Conversation
Abigael-JT
commented
Jan 24, 2025
•
edited
Loading
edited
- Removed null assignment and redundant casting
- Replaced commented out code in if statement with an exception
- Returned NullNode instead of null
- Added an exception to avoid a Null pointer exception if aggregation column is null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments
src/main/java/com/teragrep/pth10/ast/commands/transformstatement/EventstatsTransformation.java
Outdated
Show resolved
Hide resolved
src/main/java/com/teragrep/pth10/ast/commands/transformstatement/EventstatsTransformation.java
Outdated
Show resolved
Hide resolved
src/main/java/com/teragrep/pth10/ast/commands/transformstatement/EventstatsTransformation.java
Show resolved
Hide resolved
src/main/java/com/teragrep/pth10/ast/commands/transformstatement/EventstatsTransformation.java
Show resolved
Hide resolved
changes made |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments about the exceptions.
src/main/java/com/teragrep/pth10/ast/commands/transformstatement/EventstatsTransformation.java
Outdated
Show resolved
Hide resolved
src/main/java/com/teragrep/pth10/ast/commands/transformstatement/EventstatsTransformation.java
Outdated
Show resolved
Hide resolved
Removed unnecessary check and clarified exception message if the given command is not an aggregation function |
src/main/java/com/teragrep/pth10/ast/commands/transformstatement/EventstatsTransformation.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!