-
Notifications
You must be signed in to change notification settings - Fork 81
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 LastBy
/ FirstBy
features to NaturalJoin
#6604
feat: add LastBy
/ FirstBy
features to NaturalJoin
#6604
Conversation
LastBy
/ FirstBy
features to NaturalJoin
… 100% in alternate.
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.
Self review
...ble/src/main/java/io/deephaven/engine/table/impl/BothIncrementalNaturalJoinStateManager.java
Outdated
Show resolved
Hide resolved
.../io/deephaven/engine/table/impl/naturaljoin/IncrementalNaturalJoinStateManagerTypedBase.java
Outdated
Show resolved
Hide resolved
...eephaven/engine/table/impl/naturaljoin/RightIncrementalNaturalJoinStateManagerTypedBase.java
Outdated
Show resolved
Hide resolved
proto/proto-backplane-grpc/src/main/proto/deephaven_core/proto/table.proto
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/NaturalJoinHelper.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/NaturalJoinHelper.java
Outdated
Show resolved
Hide resolved
...ain/java/io/deephaven/engine/table/impl/naturaljoin/StaticHashedNaturalJoinStateManager.java
Outdated
Show resolved
Hide resolved
.../io/deephaven/engine/table/impl/naturaljoin/IncrementalNaturalJoinStateManagerTypedBase.java
Outdated
Show resolved
Hide resolved
.../io/deephaven/engine/table/impl/naturaljoin/IncrementalNaturalJoinStateManagerTypedBase.java
Outdated
Show resolved
Hide resolved
.../io/deephaven/engine/table/impl/naturaljoin/IncrementalNaturalJoinStateManagerTypedBase.java
Outdated
Show resolved
Hide resolved
proto/proto-backplane-grpc/src/main/proto/deephaven_core/proto/table.proto
Outdated
Show resolved
Hide resolved
…queStaticNaturalJoinStateManager
result_table_2 = left_table.natural_join(right_table_raw, on="key", joins="rhs_index=index", type=NaturalJoinType.LAST_MATCH) | ||
|
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.
Do we need to test the other enum values? The same question for the client test.
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.
I don't think so. The options are tested heavily in Java already and we are primarily ensuring GRPC and the python client are plumbed correctly.
… implemented in NaturalJoin.
|
||
Returns: | ||
self | ||
""" | ||
return super().natural_join(table, on, joins) | ||
return super().natural_join(table, on, joins, type) |
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.
Maybe add a simple test in test_query.py
. I am not insistent on that.
Allows user to specify the row to include when there are duplicates of RHS rows.
Choices are:
exactJoin
, requires exactly one RHS row for every LHS row