-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: add support for self-joins #220
base: main
Are you sure you want to change the base?
Conversation
...nt-store/src/main/java/org/hypertrace/core/documentstore/expression/impl/JoinExpression.java
Outdated
Show resolved
Hide resolved
...nt-store/src/main/java/org/hypertrace/core/documentstore/expression/impl/JoinExpression.java
Outdated
Show resolved
Hide resolved
...nt-store/src/main/java/org/hypertrace/core/documentstore/expression/impl/JoinExpression.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/hypertrace/core/documentstore/expression/impl/SubQueryFromExpression.java
Outdated
Show resolved
Hide resolved
...ore/src/main/java/org/hypertrace/core/documentstore/expression/impl/TableFromExpression.java
Outdated
Show resolved
Hide resolved
...tore/src/test/java/org/hypertrace/core/documentstore/expression/impl/JoinExpressionTest.java
Outdated
Show resolved
Hide resolved
this.alias = alias; | ||
} | ||
|
||
public static AliasedIdentifierExpression of(final String name, final String alias) { |
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.
Direct/static constructors like this with multiple arguments of the same datatype are error-prone since the callers can accidentally pass them in incorrect order.
Please prefer a builder instead.
RelationalExpression.of( | ||
IdentifierExpression.of("suite_id"), | ||
RelationalOperator.EQ, | ||
IdentifierExpression.of("latest.suite_id")), |
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.
Shouldn't this be AliasedIdentifierExpression?
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.
yes, will update it
RelationalExpression.of( | ||
IdentifierExpression.of("scan_run_number"), | ||
RelationalOperator.EQ, | ||
IdentifierExpression.of("latest.latest_scan_run_number")))) |
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.
Shouldn't this be AliasedIdentifierExpression?
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.
yes
No description provided.