-
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
Introduce new methods projected & exceptColumns take string varargs in QueryAssertions #16609
Introduce new methods projected & exceptColumns take string varargs in QueryAssertions #16609
Conversation
plugin/trino-redshift/src/test/java/io/trino/plugin/redshift/TestRedshiftConnectorTest.java
Show resolved
Hide resolved
plugin/trino-redshift/src/test/java/io/trino/plugin/redshift/TestRedshiftConnectorTest.java
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
cd8fb28
to
caeaae4
Compare
testing/trino-tests/src/test/java/io/trino/tests/BaseQueryAssertionsTest.java
Show resolved
Hide resolved
caeaae4
to
16ae772
Compare
16ae772
to
6a8b280
Compare
CI is failing with #16315 |
6a8b280
to
d74a86a
Compare
Rebased with master. |
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.
"Capture column names in LocalQueryRunner"
@@ -892,6 +893,9 @@ private MaterializedResultWithPlan executeInternal(Session session, @Language("S | |||
} | |||
|
|||
verify(builder.get() != null, "Output operator was not created"); | |||
if (plan.getRoot() instanceof OutputNode outputNode) { |
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.
can this condition be false?
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.
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
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
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
Fixed unnecessary use of a linkedhashset |
Description
For better readability, replace
projected(int... columns)
withprojected(String... columnNamesToInclude)
and introduceexceptColumns(String... columnNamesToExclude)
leveragingMaterializedResult.getColumnNames