Add coercion test for unpartitioned tables in hive#16119
Add coercion test for unpartitioned tables in hive#16119Praveen2112 merged 5 commits intotrinodb:masterfrom
Conversation
7724041 to
2ff3167
Compare
2ff3167 to
f23b8bc
Compare
|
It kind of add partial test coverage to #15938 - only for ORC as of now. |
c6048db to
35b38d9
Compare
testing/trino-product-tests/src/main/java/io/trino/tests/product/hive/TestHiveCoercion.java
Outdated
Show resolved
Hide resolved
testing/trino-product-tests/src/main/java/io/trino/tests/product/hive/BaseTestHiveCoercion.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
why assertion became conditional?
There was a problem hiding this comment.
In case of unpartitioned tables we might not support all the column coercion as of now so we avoid the assertion when Trino throws some sort of exception.
There was a problem hiding this comment.
I don't think Requirements Providers gives us any benefit, especially for mutable tables which aren't reused.
Plain old direct create table in a test would be better.
There was a problem hiding this comment.
Maybe we can remove the Requirements Provider as a follow up as it would be common for both partitioned and unpartitioned tables.
...ct-tests/src/main/java/io/trino/tests/product/hive/TestHiveCoercionOnUnPartitionedTable.java
Outdated
Show resolved
Hide resolved
...ct-tests/src/main/java/io/trino/tests/product/hive/TestHiveCoercionOnUnPartitionedTable.java
Outdated
Show resolved
Hide resolved
...ct-tests/src/main/java/io/trino/tests/product/hive/TestHiveCoercionOnUnPartitionedTable.java
Outdated
Show resolved
Hide resolved
...ct-tests/src/main/java/io/trino/tests/product/hive/TestHiveCoercionOnUnPartitionedTable.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
For Trino side failures we don't need check on hive version right ?
There was a problem hiding this comment.
unless the failure is related to what hive version did modify the version
anyway, why are you changing this line to first add .orElseThrow() and then to remove the condition if all you need is remove the condition?
There was a problem hiding this comment.
With the latest change by squashing the commits - this changeset got disappeared.
- varchar is also a primitive - tailing/trailing
aec09cc to
fd20512
Compare
|
@findepi AC |
|
@Praveen2112 didn't re-review, but i see the build is failin |
fd20512 to
e08a8dc
Compare
e08a8dc to
3c863f5
Compare
There was a problem hiding this comment.
Make version optional in ColumnContext
can this commit include some description on why?
(sorry, i failed to infer this myself)
There was a problem hiding this comment.
unless the failure is related to what hive version did modify the version
anyway, why are you changing this line to first add .orElseThrow() and then to remove the condition if all you need is remove the condition?
There was a problem hiding this comment.
redundant line break between STORED AS and ORC
It allows us to re-use `ColumnContext` in scenarios which are independent of hive version.
And rename TestHiveCoercion to TestHiveCoercionOnPartitionedTable
3c863f5 to
f454737
Compare
|
@findepi AC |
|
LGTM |
Description
Adds additional test coverage for coercion on un-partitioned tables in hive.
Release notes
(x) This is not user-visible or docs only and no release notes are required.