Introduce new methods projected & exceptColumns take string varargs in QueryAssertions#16609
Merged
findepi merged 3 commits intotrinodb:masterfrom Mar 24, 2023
Conversation
martint
reviewed
Mar 17, 2023
core/trino-main/src/test/java/io/trino/sql/query/QueryAssertions.java
Outdated
Show resolved
Hide resolved
findepi
reviewed
Mar 17, 2023
plugin/trino-redshift/src/test/java/io/trino/plugin/redshift/TestRedshiftConnectorTest.java
Outdated
Show resolved
Hide resolved
plugin/trino-redshift/src/test/java/io/trino/plugin/redshift/TestRedshiftConnectorTest.java
Outdated
Show resolved
Hide resolved
testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/query/QueryAssertions.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/query/QueryAssertions.java
Outdated
Show resolved
Hide resolved
cd8fb28 to
caeaae4
Compare
krvikash
commented
Mar 21, 2023
testing/trino-tests/src/test/java/io/trino/tests/BaseQueryAssertionsTest.java
Outdated
Show resolved
Hide resolved
caeaae4 to
16ae772
Compare
16ae772 to
6a8b280
Compare
Contributor
Author
|
CI is failing with #16315 |
6a8b280 to
d74a86a
Compare
Contributor
Author
|
Rebased with master. |
findepi
reviewed
Mar 22, 2023
Member
findepi
left a comment
There was a problem hiding this comment.
"Capture column names in LocalQueryRunner"
Contributor
Author
There was a problem hiding this comment.
All test cases are passing, So I assume check is not required.
core/trino-main/src/main/java/io/trino/testing/MaterializedResult.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/main/java/io/trino/testing/MaterializedResult.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/main/java/io/trino/testing/MaterializedResult.java
Outdated
Show resolved
Hide resolved
d74a86a to
0a341fb
Compare
0a341fb to
d30528d
Compare
findepi
approved these changes
Mar 23, 2023
core/trino-main/src/test/java/io/trino/sql/query/QueryAssertions.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/query/QueryAssertions.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/query/QueryAssertions.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/query/QueryAssertions.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/test/java/io/trino/sql/query/QueryAssertions.java
Outdated
Show resolved
Hide resolved
plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergConnectorTest.java
Outdated
Show resolved
Hide resolved
testing/trino-tests/src/test/java/io/trino/tests/BaseQueryAssertionsTest.java
Outdated
Show resolved
Hide resolved
testing/trino-tests/src/test/java/io/trino/tests/BaseQueryAssertionsTest.java
Outdated
Show resolved
Hide resolved
testing/trino-tests/src/test/java/io/trino/tests/BaseQueryAssertionsTest.java
Outdated
Show resolved
Hide resolved
plugin/trino-base-jdbc/src/test/java/io/trino/plugin/jdbc/BaseJdbcTableStatisticsTest.java
Outdated
Show resolved
Hide resolved
d30528d to
306b2c4
Compare
For better readability, replace projected(int... columns) with projected(String... columnNamesToInclude) and introduce exceptColumns(String... columnNamesToExclude) leveraging MaterializedResult.getColumnNames
306b2c4 to
3d41fff
Compare
Member
|
Fixed unnecessary use of a linkedhashset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
For better readability, replace
projected(int... columns)withprojected(String... columnNamesToInclude)and introduceexceptColumns(String... columnNamesToExclude)leveragingMaterializedResult.getColumnNames