Skip to content

Conversation

jnh5y
Copy link
Contributor

@jnh5y jnh5y commented Nov 6, 2023

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:

  • Added restore tests for Limit node which verifies the generated compiled plan with the saved compiled plan

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
  • The serializers: (no)
  • The runtime per-record code paths (performance sensitive): (no)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
  • The S3 file system connector: (no)

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable)

@flinkbot
Copy link
Collaborator

flinkbot commented Nov 6, 2023

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@jnh5y jnh5y force-pushed the FLINK-33469 branch 3 times, most recently from e8a439c to 942467b Compare November 7, 2023 22:07
Copy link
Contributor

@dawidwys dawidwys left a 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")
Copy link
Contributor

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

Comment on lines 44 to 45
.producedBeforeRestore(DATA)
.producedAfterRestore(DATA)
Copy link
Contributor

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

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?

@jnh5y
Copy link
Contributor Author

jnh5y commented Nov 8, 2023

Responded to comments and moved the new tests to the package org.apache.flink.table.planner.plan.nodes.exec.stream. (Relative to the discussion over on #23660.)

@dawidwys dawidwys merged commit 7542b56 into apache:master Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants