-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Support automatic type coercion in Delta table creation #20814
Support automatic type coercion in Delta table creation #20814
Conversation
} | ||
|
||
@ParameterizedTest | ||
@MethodSource("timestampPrecisionOnCreateTableProvider") |
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.
we don't use parametrized tests afaik. please loop over values in the method itself
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.
I see that Iceberg is already using parametrized tests db9f1b9
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.
Some additional context on not using Parameterized tests #19532 (comment).
@martint / @dain In this case even if we replace the parametrized tests with a for loop we still won't be able to properly abstract the test data from the testing code - Or can we replace them with a TypeMapping like tests here ? Which allows us to test multiple input cases and treats them as a single row
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java
Outdated
Show resolved
Hide resolved
plugin/trino-delta-lake/src/test/java/io/trino/plugin/deltalake/TestDeltaLakeConnectorTest.java
Outdated
Show resolved
Hide resolved
plugin/trino-delta-lake/src/test/java/io/trino/plugin/deltalake/TestDeltaLakeConnectorTest.java
Outdated
Show resolved
Hide resolved
d84b254
to
c8f26e8
Compare
Thanks @wendigo, @Praveen2112 for the review. Addressed comments. |
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.
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java
Show resolved
Hide resolved
plugin/trino-delta-lake/src/test/java/io/trino/plugin/deltalake/TestDeltaLakeConnectorTest.java
Show resolved
Hide resolved
@Praveen2112 Please see the pattern for handling "parameterized" tests in 11391fc - they follow the same pattern as this PR. |
plugin/trino-delta-lake/src/test/java/io/trino/plugin/deltalake/TestDeltaLakeConnectorTest.java
Outdated
Show resolved
Hide resolved
c8f26e8
to
a77dc7b
Compare
Thanks @Praveen2112 , @findinpath for the review. Provided explicit test datas for test instead for using for loop. |
plugin/trino-delta-lake/src/test/java/io/trino/plugin/deltalake/TestDeltaLakeConnectorTest.java
Outdated
Show resolved
Hide resolved
plugin/trino-delta-lake/src/test/java/io/trino/plugin/deltalake/TestDeltaLakeConnectorTest.java
Outdated
Show resolved
Hide resolved
a77dc7b
to
12deb3b
Compare
Thanks for the review @martint. Addressed comments. |
12deb3b
to
0d63cbf
Compare
(rebased with master) |
plugin/trino-delta-lake/src/test/java/io/trino/plugin/deltalake/TestDeltaLakeConnectorTest.java
Show resolved
Hide resolved
0d63cbf
to
0410706
Compare
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java
Show resolved
Hide resolved
e04a5fc
to
b2c9b6c
Compare
Thanks @ebyhr for the review. Addressed comments. |
b2c9b6c
to
3976509
Compare
(minor table name change) |
plugin/trino-delta-lake/src/test/java/io/trino/plugin/deltalake/TestDeltaLakeConnectorTest.java
Outdated
Show resolved
Hide resolved
3976509
to
6f6c10b
Compare
plugin/trino-delta-lake/src/test/java/io/trino/plugin/deltalake/TestDeltaLakeConnectorTest.java
Outdated
Show resolved
Hide resolved
6f6c10b
to
6a20716
Compare
@ebyhr Addressed comments. |
@krvikash Thanks for fixing this. Can you update the PR description to reflect the release notes. |
Added RN with minor rewording. |
Description
Fixes #19336
For trino type
TimestampType
automatic coercion toTIMESTAMP_MICROS
.Related to #13981
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
(X) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text: