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

feat: add support for self-joins #220

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

GurtejSohi
Copy link
Contributor

No description provided.

this.alias = alias;
}

public static AliasedIdentifierExpression of(final String name, final String alias) {
Copy link
Contributor

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")),
Copy link
Contributor

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?

Copy link
Contributor Author

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"))))
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

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.

2 participants