-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-33469] Implement restore tests for Limit node #23675
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
Conversation
e8a439c
to
942467b
Compare
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 looks mostly good. 👍
.setupTableSink( | ||
SinkTestStep.newBuilder("sink_t") | ||
.addSchema("a INT", "b VARCHAR", "c BIGINT") | ||
.addOption("sink-insert-only", "false") |
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.
This is set by the RestoreTestBase
.producedBeforeRestore(DATA) | ||
.producedAfterRestore(DATA) |
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'd vote for not having such patterns. See #23660 (comment)
+ " 'table-sink-class' = 'DEFAULT')"; | ||
tEnv.executeSql(sinkTableDdl); | ||
String sql = "insert into MySink SELECT a, a from MyTable limit 10"; | ||
util.verifyJsonPlan(sql); |
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.
It uses a checked in plan file, doesn't it? Can we remove it as well?
Responded to comments and moved the new tests to the package |
What is the purpose of the change
Implement restore tests for Limit node
Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation