-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[Closed Duplicate] Add support for TIMESTAMP
and TIMESTAMP WITH TIME ZONE
types in Exasol connector
#26255
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
[Closed Duplicate] Add support for TIMESTAMP
and TIMESTAMP WITH TIME ZONE
types in Exasol connector
#26255
Conversation
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
plugin/trino-exasol/src/main/java/io/trino/plugin/exasol/ExasolClient.java
Outdated
Show resolved
Hide resolved
plugin/trino-exasol/src/test/java/io/trino/plugin/exasol/TestExasolTimestampMapping.java
Outdated
Show resolved
Hide resolved
plugin/trino-exasol/src/main/java/io/trino/plugin/exasol/mapping/ColumnMapper.java
Outdated
Show resolved
Hide resolved
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.
Please squash commits into one and follow https://trino.io/development/process.html#pull-request-and-commit-guidelines-
TIMESTAMP
and TIMESTAMP WITH TIME ZONE
types in Exasol connector
plugin/trino-exasol/src/test/java/io/trino/plugin/exasol/TestingExasolServer.java
Show resolved
Hide resolved
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
2 similar comments
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
@skyglass I recommend configuring the codestyle on your IDE first https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md#code-style. Please feel free to ping me on Trino Slack if you don't know how to setup. |
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
…l connector - implemented additional timestamp with precision data type for ExasolClient - added correspondent tests for timestamp with precision data type - started implementation of additional timestamp with local time zone data type for ExasolClient - updated exasol db version to 8.34.0 in integration tests - finished implementation of additional timestamp with local time zone data type for ExasolClient - implemented special addRoundTrip method with additional column expression parameter for the predicate to fix the test predicate assumption - all timestamp with timezone tests use input literal timestamp string, which is interpreted as a JVM timestamp string ("America/Bahia_Banderas") but expected literal strings are interpreted as UTC strings. Therefore the difference between these timestamps is 6 hours (with DST) or 5 (without DST); for some historical values, like 1970 for example, the difference can be 7, which is expected behaviour for timestamp with local time zone - implemented ColumnMapper, TimestampColumnMapper and TimestampWithTimeZoneColumnMapper to encapsulate mapping logic in separate classes and prevent ExasolClient from becoming too big - removed mapper classes and moved the logic to ExasolClient, based on the PR suggesions - removed unnecessary javadocs - improved javadocs and comments for testing timestamp with time zone by explaining why only jvm time zone is currently used for testing timestamp with time zone - removed using * import in ExasolClient based on the PR suggestions - removed TestExasolTimestampMapping and moved testing timestamp and timestamp with timezone to TestExasolTypeMapping, based on the PR suggestions - fixed checkstyle violations after enabling checkstyle plugin
48a9bfc
to
ea52364
Compare
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
TIMESTAMP
and TIMESTAMP WITH TIME ZONE
types in Exasol connectorTIMESTAMP
and TIMESTAMP WITH LOCAL TIME ZONE
types in Exasol connector
TIMESTAMP
and TIMESTAMP WITH LOCAL TIME ZONE
types in Exasol connectorTIMESTAMP
and TIMESTAMP WITH TIME ZONE
types in Exasol connector
plugin/trino-exasol/src/test/java/io/trino/plugin/exasol/TestExasolConnectorTest.java
Show resolved
Hide resolved
plugin/trino-exasol/src/test/java/io/trino/plugin/exasol/TestExasolTypeMapping.java
Outdated
Show resolved
Hide resolved
plugin/trino-exasol/src/test/java/io/trino/plugin/exasol/TestExasolTypeMapping.java
Outdated
Show resolved
Hide resolved
plugin/trino-exasol/src/test/java/io/trino/plugin/exasol/TestingExasolServer.java
Show resolved
Hide resolved
…l connector - implemented additional timestamp with precision data type for ExasolClient - added correspondent tests for timestamp with precision data type - started implementation of additional timestamp with local time zone data type for ExasolClient - updated exasol db version to 8.34.0 in integration tests - finished implementation of additional timestamp with local time zone data type for ExasolClient - implemented special addRoundTrip method with additional column expression parameter for the predicate to fix the test predicate assumption - all timestamp with timezone tests use input literal timestamp string, which is interpreted as a JVM timestamp string ("America/Bahia_Banderas") but expected literal strings are interpreted as UTC strings. Therefore the difference between these timestamps is 6 hours (with DST) or 5 (without DST); for some historical values, like 1970 for example, the difference can be 7, which is expected behaviour for timestamp with local time zone - implemented ColumnMapper, TimestampColumnMapper and TimestampWithTimeZoneColumnMapper to encapsulate mapping logic in separate classes and prevent ExasolClient from becoming too big - removed mapper classes and moved the logic to ExasolClient, based on the PR suggesions - removed unnecessary javadocs - improved javadocs and comments for testing timestamp with time zone by explaining why only jvm time zone is currently used for testing timestamp with time zone - removed using * import in ExasolClient based on the PR suggestions - removed TestExasolTimestampMapping and moved testing timestamp and timestamp with timezone to TestExasolTypeMapping, based on the PR suggestions - fixed checkstyle violations after enabling checkstyle plugin
- implemented additional timestamp with precision data type for ExasolClient - added correspondent tests for timestamp with precision data type - implemented additional timestamp with local time zone data type for ExasolClient - implemented special addRoundTrip method with additional column expression parameter for the predicate to fix the test predicate assumption - all timestamp with timezone tests use input literal timestamp string, which is interpreted as a JVM timestamp string ("America/Bahia_Banderas") but expected literal strings are interpreted as UTC strings. Therefore the difference between these timestamps is 6 hours (with DST) or 5 (without DST); for some historical values, like 1970 for example, the difference can be 7, which is expected behaviour for timestamp with local time zone - removed mapper classes and moved the logic to ExasolClient, based on the PR suggesions - removed unnecessary javadocs - improved javadocs and comments for testing timestamp with time zone by explaining why only jvm time zone is currently used for testing timestamp with time zone - removed using * import in ExasolClient based on the PR suggestions - removed TestExasolTimestampMapping and moved testing timestamp and timestamp with timezone to TestExasolTypeMapping, based on the PR suggestions
…s' into feature/724_additional_data_types # Conflicts: # plugin/trino-exasol/src/test/java/io/trino/plugin/exasol/TestExasolTypeMapping.java
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
…s' into feature/724_additional_data_types
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
Sorry, had to close this PR after confusion with separating commits. |
TIMESTAMP
and TIMESTAMP WITH TIME ZONE
types in Exasol connectorTIMESTAMP
and TIMESTAMP WITH TIME ZONE
types in Exasol connector
Any updates on the new PR? #26259 ? I really tried to fix the old PR, and I was able to fix the branch commit history, but the PR doesn't update the commit history anymore, after it was closed. And I don't have permissions to reopen it. Maybe reopening this PR will force update the commit history. Or maybe, after some time, the cache will be invalidated and the PR will fetch the correct commit history. But, in any case, the new PR is exactly the same, although it is sad that the original PR history would be lost. Sorry for the inconvenience. |
[Update]
Had to close this PR after confusion with separating commits.
Here is the new PR with separated commits and with all changes, based on the PR review comments:
#26259
Description
Added Exasol Trino connector support for Timestamp and Timestamp With Local Time Zone JDBC data types
Additional context and related issues
Release notes