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

Fix failure when subquery contains time travel #15607

Merged
merged 2 commits into from
Jan 6, 2023

Conversation

ebyhr
Copy link
Member

@ebyhr ebyhr commented Jan 5, 2023

Description

Fix failure when the subquery contains time travel.
I added a test to only Iceberg because tests in the planner fails early due to unsupported time travel in tpch connector.

Release notes

(x) Release notes are required, with the following suggested text:

# Iceberg
* Fix failure when a subquery contains time travel. ({issue}`15607`)

@cla-bot cla-bot bot added the cla-signed label Jan 5, 2023
@ebyhr ebyhr requested review from findepi and Praveen2112 January 5, 2023 05:03
{
String tableName = "test_subquery_versioned" + randomNameSuffix();

assertUpdate("CREATE TABLE " + tableName + " AS SELECT 1 id", 1);
Copy link
Member

Choose a reason for hiding this comment

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

nit : Can we use TestTable here

Copy link
Member Author

Choose a reason for hiding this comment

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

I would keep as-is for the consistency in this class.

Implement QueryPeriod.shallowEquals method to
fix failure in logical planner.
@ebyhr ebyhr force-pushed the ebi/iceberg-time-travel-in-subquery branch from aabd8bf to effebb5 Compare January 5, 2023 22:28
@ebyhr ebyhr merged commit 67614e2 into trinodb:master Jan 6, 2023
@ebyhr ebyhr deleted the ebi/iceberg-time-travel-in-subquery branch January 6, 2023 02:36
@ebyhr ebyhr self-assigned this Jan 6, 2023
@github-actions github-actions bot added this to the 406 milestone Jan 6, 2023
@ebyhr ebyhr mentioned this pull request Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants