-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add dedicated test for queries with caching #6986
Add dedicated test for queries with caching #6986
Conversation
|
||
import static io.trino.plugin.jdbc.H2QueryRunner.createH2QueryRunner; | ||
|
||
public class TestJdbcCachingQueries |
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.
TestJdbcDistributedQueriesWithMetadataCaching
?
I understand that other tests like io.trino.plugin.postgresql.TestPostgreSqlDistributedQueries
can use caching if they like. It is irrelevant for for them, right?
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.
We should test connectors with default settings as much as possible, but other than that -- yes
TestJdbcDistributedQueriesWithMetadataCaching
i don't want to encode the promise that all "AbstractTestDistributedQueries" are gonna always be included here
b9662ec
to
240f068
Compare
plugin/trino-base-jdbc/src/test/java/io/trino/plugin/jdbc/TestJdbcCachingQueries.java
Show resolved
Hide resolved
import static io.trino.plugin.jdbc.H2QueryRunner.createH2QueryRunner; | ||
|
||
public class TestJdbcCachingQueries | ||
// TODO define shorter tests set that exercises various read and write scenarios (a.k.a. "a smoke test") |
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.
GH issue?
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.
sure, but this feels more like your idea, so feel free to create one :)
240f068
to
67b1de2
Compare
This is a preparatory step to run full `BaseConnectorTest` in this configuration as well.
This is so that connectors do not need to test both with caching enabled and disabled. It is a preparatory step to merge `AbstractTestDistributedQueries`- and `AbstractTestIntegrationSmokeTest`-based test class hierarchies into one.
67b1de2
to
1da48e1
Compare
Merged in #6989 |
This is so that connectors do not need to test both with
caching enabled and disabled. It is a preparatory step to merge
AbstractTestDistributedQueries
- andAbstractTestIntegrationSmokeTest
-based test class hierarchies intoone.
Relates to #5871 and is meant to supersede part of that PR.
For #6997