Skip to content
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

Coerce column type varchar0 to varchar1 for hive table #18811

Conversation

marcinsbd
Copy link
Contributor

@marcinsbd marcinsbd commented Aug 25, 2023

Description

The goal of the PR is to auto-adjust column type from varchar(0) to varchar(1) for Hive connector.
The min len of the Trino SPI's VarchartType is 0 whereas the min len of Hive's varchar type is 1.

Additional context and related issues

Release notes

( ) Release notes are required, with the following suggested text:

# Hive connector
* Automatic type coercion from varchar(0) to varchar(1) for columns within Hive connector.

@cla-bot cla-bot bot added the cla-signed label Aug 25, 2023
@github-actions github-actions bot added tests:hive hive Hive connector labels Aug 25, 2023
@marcinsbd marcinsbd force-pushed the coerce-column-type-varchar0-to-varchar1-for-Hive-table branch from 618ad40 to aabac31 Compare September 5, 2023 15:51
@marcinsbd marcinsbd marked this pull request as ready for review September 6, 2023 12:01
@findepi
Copy link
Member

findepi commented Sep 6, 2023

( ) Release notes are required, with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

Please fill-in (or remove from PR description).

in any case, please expand PR description to say what's the effect of the changes.

@marcinsbd marcinsbd force-pushed the coerce-column-type-varchar0-to-varchar1-for-Hive-table branch from aabac31 to 02bc5db Compare September 7, 2023 09:25
@kokosing kokosing merged commit 735770f into trinodb:master Sep 15, 2023
65 checks passed
@github-actions github-actions bot added this to the 427 milestone Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed hive Hive connector
Development

Successfully merging this pull request may close these issues.

5 participants