Migrate Thrift connector tests to use BaseConnectorTest.#10233
Migrate Thrift connector tests to use BaseConnectorTest.#10233hashhar merged 1 commit intotrinodb:masterfrom
Conversation
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla. |
|
@HiLany Could you describe the PR why we need to migrate, Sorry for i don't understand the older PR. @findepi FYI, Shall we make a template about PULL-REQUEST-TEMPLATE, like Spark, see: pr_template, So that we can better understand PR. |
@yikf thanks for bringing this up. Let's move this topic to slack's |
There was a problem hiding this comment.
@HiLany Why did you delete this test?
Was this intentional?
There was a problem hiding this comment.
see #7117.
We need to merge TestThriftIntegrationSmokeTest and TestThriftDistributedQueries to form TestThriftConnectorTest.
and BaseConnectorTest is also an implementation class of AbstractTestQueries.
Should we keep TestThriftDistributedQueries?
There was a problem hiding this comment.
@HiLany I see. Thanks for pointing this out. You are right. The test is not anymore needed in the context of your PR
There was a problem hiding this comment.
There probably needs to be provided an own implementation of io.trino.testing.BaseConnectorTest#hasBehavior method here due to the fact that this connector does not support all the operations tested in BaseConnectorTest.
Use io.trino.plugin.cassandra.TestCassandraConnectorTest#hasBehavior as a template.
Use io.trino.plugin.thrift.ThriftMetadata and io.trino.spi.connector.ConnectorMetadata to see what is possible in this connector.
There was a problem hiding this comment.
There probably needs to be provided an own implementation of io.trino.testing.BaseConnectorTest#hasBehavior method here due to the fact that this connector does not support all the operations tested in BaseConnectorTest.
Use io.trino.plugin.cassandra.TestCassandraConnectorTest#hasBehavior as a template.
Thank you for the reviewed! I will do it。
Use io.trino.plugin.thrift.ThriftMetadata and io.trino.spi.connector.ConnectorMetadata to see what is possible in this connector.
Sorry,I don't understand it。Do you mean to test the functionality of ThriftMetadata?
There was a problem hiding this comment.
Sorry,I don't understand it。Do you mean to test the functionality of ThriftMetadata?
By checking the code of the previously mentioned classes, you'll be able to figure out what values of the io.trino.testing.TestingConnectorBehavior you can add to the hasBehavior method .
Note that these values control whether a test needs to be executed or not
skipTestUnless(hasBehavior(SUPPORTS_CREATE_TABLE));
|
Please have a look at them to bring the PR in a better shape. |
|
@HiLany please also change your commit message
Use this guideline as a reference: https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md#format-git-commit-messages |
|
Thanks for pointing this out. i will resolve it. |
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla. |
Hello,@findinpath .Could you review my code again? Thank you! |
|
@HiLany LGTM Well done. Thank you for the effort. |
There was a problem hiding this comment.
I think that the //dml, //ddl , //query optimizations don't really improve the readability of the code.
Please consider removing them.
There was a problem hiding this comment.
I think so, I will remove it in the next commit.
There was a problem hiding this comment.
This comment is too verbose/low level for the context of ThriftQueryRunner.
Please consider removing it.
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla. |
hashhar
left a comment
There was a problem hiding this comment.
LGTM % checkstyle failure (see logs of failed CI jobs).
Thanks, let me check |
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla. |
|
hello @hashhar ,Could you review my code again? Thank you! |
|
@HiLany were you able to sign the CLA document ? |
I have submitted cla to |
|
The CLAs are processed in batches periodically. Please wait a while. |
hashhar
left a comment
There was a problem hiding this comment.
LGTM % remove link to GitHub issue from commit message.
We prefer that the commit messages stand on their own and don't need someone to refer to external information to make sense of it. In this case the issue doesn't have any useful information.
If you instead want to make sure that the issue is closed once someone merges this PR, edit the Pull Request description to add Fixes #<issue> instead.
cc: @martint for the CLA. This is good to go % CLA.
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla. |
Thanks for pointing this out! I have modified commit information and submitted it again。 |
|
@martint Can you help with the CLA, looks good to go otherwise. |
I have been added to https://github.com/trinodb/trino/blob/master/.github/CONTRIBUTING.md. |
|
@hashhar Can this pr be merged into master? |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
Thanks for working on this @HiLany. Merged. |
Purpose:
Migrate Thrift connector tests to use BaseConnectorTest.
Resolves #7117
Scope:
Test of the Thrift Plugin