-
Notifications
You must be signed in to change notification settings - Fork 13.9k
[FLINK-39015][table] Fix key extractor for multi join. Change GenericRowData to BinaryRowData #27508
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
base: master
Are you sure you want to change the base?
Conversation
…RowData to BinaryRowData
|
Hey @snuyanzin Could you review, please? |
gustavodemorais
left a comment
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 great! Thanks for picking this up @ldadima.
Could you just move the test as I mentioned in the comment? Thanks
| } | ||
|
|
||
| @TestTemplate | ||
| def testInnerMultiJoinWithEqualPk(): Unit = { |
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 think it either makes sense to
- Have the whole suite running with this the MULTI_JOIN flag as a param
- Add this to MultiJoinSemanticTests
Since 1. is high LOE, for this PR, I'd just go with 2. for now.
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.
Thanks for your review @gustavodemorais
1 Checked. All passed

2 I don't understand why we need to add SemanticTest. The problem only occurs after restoring from a checkpoint and only for HeapStateBackend. Also in SemanticTest there is MULTI_JOIN_TWO_WAY_INNER_JOIN_WITH_WHERE_IN, which checks similar sql (uses the same MultiJoinStateViews.JoinKeyContainsUniqueKey). I suggest to modify MultiJoinITCase (here) for failingDataSource and add this case
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.
Hey @ldadima, if it only happens after restoring from a checkpoint, then it'd make sense to move it to `MultiJoinRestoreTest?
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.
Hi @gustavodemorais, You're right, but this 'MultiJoinRestoreTest uses RocksdbStateBackend (here), and to reproduce the issue, HeapStateBackend is needed.
I think MultiJoinITCase is more convinient. Also possible to add heap case for MultiJoinRestoreTest
What do you think?
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 think we can merge it like this and move it to MultiJoinITCase here 🙂
- Restore tests validate plan compatibility, not state backend behavior so I think it we don't want to do that for now
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.
Great. Thanks for your help
|
Thanks for the fix and contribution @ldadima. LGTM |
|
Hey @ldadima, we're discussing some possible improvements around the row equality check before we merge this and I'll get back to you. |
What is the purpose of the change
To fix FLINK-39015
Verifying this change
Run JoinITCase#testInnerMultiJoinWithEqualPk
Does this pull request potentially affect one of the following parts:
@Public(Evolving): ( no)Documentation