Add tests for AS OF syntax for tables with redirects#12831
Add tests for AS OF syntax for tables with redirects#12831ebyhr merged 1 commit intotrinodb:masterfrom
Conversation
There was a problem hiding this comment.
AsOfVersion is a bit misleading because the test verifies also the functionality of FOR TIMESTAMP ... syntax.
There was a problem hiding this comment.
right initially I wanted to have 2 different tests then I changed my mind
There was a problem hiding this comment.
You may want to add Thread.sleep(1) (same as in
There was a problem hiding this comment.
I saw that but I thought this is unnecessary. I will add it if you think it makes sense
There was a problem hiding this comment.
It may very well happen that in the same millisecond there are two snapshots created and we can't distinguish then with the syntax FOR TIMESTAMP AS OF ... which snapshot we want to retrieve.
There was a problem hiding this comment.
I understand the problem I just doubt they will happen in the same milisecond.
There was a problem hiding this comment.
What is the added value of the queries having WHERE clauses in this context?
We're checking the table redirection functionality and not the table filter functionality here.
There was a problem hiding this comment.
I just wanted to make sure that the row I inserted is there. But you are right that doesn't bring much value
There was a problem hiding this comment.
Can we extract these methods to a utility class?
I think they are already multiple times duplicated.
There was a problem hiding this comment.
I will do that as a separate pr
bc594c4 to
bce85db
Compare
There was a problem hiding this comment.
Let's not modify the nation table directly, make a copy first
There was a problem hiding this comment.
I should have been clearer in the issue, but I think the more interesting thing to test here is that queries on iceberg tables going through hive_with_redirections work.
Also that versioned queries on hive tables going through the iceberg_with_redirections catalog should not work. Something like select * from iceberg_with_redirection.schema.a_hive_tabl for timestamp as of ... should fail
e2f1c09 to
2e8b189
Compare
There was a problem hiding this comment.
I think this table affects other tests using information_schema. testReadInformationSchema & testShowTables will fail if they are executed at the same time.
2e8b189 to
0e2e789
Compare
|
Merged, thanks! |
Description
Fixes: #12634
Related issues, pull requests, and links
Documentation
(X) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
(X) No release notes entries required.
( ) Release notes entries required with the following suggested text: