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

Add dedicated test for queries with caching #6986

Conversation

findepi
Copy link
Member

@findepi findepi commented Feb 22, 2021

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.

Relates to #5871 and is meant to supersede part of that PR.

For #6997

@findepi findepi requested review from losipiuk and kokosing February 22, 2021 13:49
@cla-bot cla-bot bot added the cla-signed label Feb 22, 2021

import static io.trino.plugin.jdbc.H2QueryRunner.createH2QueryRunner;

public class TestJdbcCachingQueries
Copy link
Member

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?

Copy link
Member Author

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

@findepi findepi force-pushed the findepi/add-dedicated-test-for-queries-with-caching-7f9277 branch from b9662ec to 240f068 Compare February 22, 2021 16:38
@findepi findepi requested a review from kokosing February 22, 2021 16:38
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")
Copy link
Member

Choose a reason for hiding this comment

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

GH issue?

Copy link
Member Author

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 :)

@findepi findepi force-pushed the findepi/add-dedicated-test-for-queries-with-caching-7f9277 branch from 240f068 to 67b1de2 Compare February 22, 2021 20:15
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.
@findepi findepi force-pushed the findepi/add-dedicated-test-for-queries-with-caching-7f9277 branch from 67b1de2 to 1da48e1 Compare February 22, 2021 20:19
@findepi
Copy link
Member Author

findepi commented Feb 23, 2021

Merged in #6989

@findepi findepi closed this Feb 23, 2021
@findepi findepi deleted the findepi/add-dedicated-test-for-queries-with-caching-7f9277 branch February 23, 2021 10:30
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.

2 participants