Skip to content
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-32474][table] Support time travel in table planner #22939

Merged
merged 8 commits into from
Jul 21, 2023

Conversation

hackergin
Copy link
Contributor

What is the purpose of the change

*Support time travel *

Brief change log

  • When validating, parse the Snapshot information to obtain the Schema corresponding to the Snapshot.
  • Convert RelNode will also use Snapshot information to generate the corresponding Schema corresponding to the Snapshot.
    • Modify the relevant implementation of Flink Schema to adapt to the Snapshot usage scenario of Calcite.*

Verifying this change

Unit Test

  • Test time travel syntax with constant Timestamp String
  • Test time travel syntax with simple expression scenarios

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? (yes)
  • If yes, how is the feature documented? ( JavaDocs)
  • More detailed documentation will be provided separately in Jira.

@flinkbot
Copy link
Collaborator

flinkbot commented Jul 4, 2023

CI report:

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

Copy link
Contributor

@luoyuxia luoyuxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hackergin Thanks for the pr. I left some commets. PTAL.

@luoyuxia
Copy link
Contributor

luoyuxia commented Jul 4, 2023

Btw, the test fails. Please make sure the test pass.

@hackergin
Copy link
Contributor Author

@luoyuxia Thank you very much for your great suggestion which I learn a lot . I update the code, please have a look when you are free.

Copy link
Contributor

@luoyuxia luoyuxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hackergin Thanks for updating. I left some comments. PTAL.

@hackergin hackergin force-pushed the FLINK-32474 branch 2 times, most recently from d7150ab to e598fd4 Compare July 18, 2023 06:08
Copy link
Contributor

@luoyuxia luoyuxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hackergin Thanks for updating. The pr generally looks good to me. I left minor comment. Should be ready to be merge in next few iterations.

Copy link
Contributor

@luoyuxia luoyuxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hackergin Thanks for updating. I left minor comments. PTAL.
Should be ready to be merged in next iteration.

Copy link
Contributor

@luoyuxia luoyuxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hackergin Thanks for the update. LGTM! Please ping me after test pass. I'll help merge.

@luoyuxia
Copy link
Contributor

But I think it may well fail since FLINK-32632, anyway, ping me after test complelte

@hackergin
Copy link
Contributor Author

@luoyuxia Thanks for your review. The test completed, and failed since FLINK-32632

@luoyuxia luoyuxia merged commit 410b52a into apache:master Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants