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
[FLINK-10259] [table] Fix key extraction for GroupWindows. #6641
Conversation
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.
@fhueske Thanks for fixing the bug. I left some minor suggestions.
|
||
import scala.collection.JavaConverters._ | ||
|
||
class InsertIntoITCase extends AbstractTestBase { |
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.
extends StreamingWithStateTestBase?
class InsertIntoITCase extends AbstractTestBase { | ||
|
||
@Test | ||
def testInsertIntoAppendStreamToTableSink(): 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.
Since we have this test case, should we remove the testInsertIntoMemoryTable
in SqlITCase
? It seems the two test cases are very similar.
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.
Good point!
"Received retraction messages for append only table", | ||
results.exists(!_.f0)) | ||
|
||
val retracted = RowCollector.upsertResults(results, Array(0, 1, 2)).sorted |
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.
Array(0, 1, 2) -> Array(0, 1)
Thanks for the review @hequn8128! |
Thanks for the update @fhueske . Looks good to me. +1 to merge |
Thanks for the review @hequn8128! Merging |
…indows. This closes apache#6641.
…indows. This closes apache#6641. (cherry picked from commit f28b829)
What is the purpose of the change
Fixes the key validation for SQL queries with group window aggregates that are emitted to an
UpsertStreamTableSink
.Brief change log
INSERT INTO
of different result types to different types of table sinks.Verifying this change
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: noDocumentation