Skip to content

Add date data type support for Kudu #22497

Merged
Praveen2112 merged 2 commits intotrinodb:masterfrom
Praveen2112:praveen/kudu_date_type
Jun 27, 2024
Merged

Add date data type support for Kudu #22497
Praveen2112 merged 2 commits intotrinodb:masterfrom
Praveen2112:praveen/kudu_date_type

Conversation

@Praveen2112
Copy link
Copy Markdown
Member

Description

Previously Date type was mapped to VARCHAR and Kudu has natively added supported for DATE from 1.15. This PR maps Kudu Date type to Trino's Date type.

Partially fixes #11009

Additional context and related issues

This PR depends on #22496

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text:

# Section
* Add date data type support for Kudu ({issue}`issuenumber`)

Comment thread plugin/trino-kudu/src/main/java/io/trino/plugin/kudu/KuduMetadata.java Outdated
@Praveen2112 Praveen2112 force-pushed the praveen/kudu_date_type branch 2 times, most recently from f7eebda to 501a81b Compare June 26, 2024 09:11
@Praveen2112 Praveen2112 force-pushed the praveen/kudu_date_type branch from 501a81b to 256772d Compare June 26, 2024 09:40
Comment thread plugin/trino-kudu/src/main/java/io/trino/plugin/kudu/KuduClientSession.java Outdated
Comment thread plugin/trino-kudu/src/main/java/io/trino/plugin/kudu/KuduPageSink.java Outdated
Comment thread plugin/trino-kudu/src/main/java/io/trino/plugin/kudu/KuduPageSink.java Outdated
Comment thread plugin/trino-kudu/src/test/java/io/trino/plugin/kudu/TestKuduConnectorTest.java Outdated
Comment thread plugin/trino-kudu/src/test/java/io/trino/plugin/kudu/TestKuduConnectorTest.java Outdated
Comment thread plugin/trino-kudu/src/test/java/io/trino/plugin/kudu/TestKuduTypeMapping.java Outdated
Comment thread plugin/trino-kudu/src/test/java/io/trino/plugin/kudu/TestKuduTypeMapping.java Outdated
@ebyhr
Copy link
Copy Markdown
Member

ebyhr commented Jun 27, 2024

(Reviewed only last 2 commits)

Praveen2112 and others added 2 commits June 27, 2024 12:27
Inserting/Merging/Updating invalid data in Kudu doesn't throw a Kudu specific
exception so we wrap all the exceptions as Trino specific exceptions
Co-authored-by: Pascal Gasp <pascal.gasp@gmail.com>
@Praveen2112 Praveen2112 force-pushed the praveen/kudu_date_type branch from 256772d to 592b751 Compare June 27, 2024 07:09
@Praveen2112
Copy link
Copy Markdown
Member Author

@ebyhr Thanks for the review. AC

Comment thread plugin/trino-kudu/src/main/java/io/trino/plugin/kudu/KuduPageSink.java Outdated
@Praveen2112 Praveen2112 merged commit 8947d40 into trinodb:master Jun 27, 2024
@github-actions github-actions bot added this to the 451 milestone Jun 27, 2024
@ebyhr ebyhr mentioned this pull request Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Add support for varchar and date types to kudu connector

6 participants