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

Error while accessing CSV tables when using Glue or Hive > 3.0 as metastore #15869

Open
imjalpreet opened this issue Mar 24, 2021 · 1 comment · May be fixed by #18324
Open

Error while accessing CSV tables when using Glue or Hive > 3.0 as metastore #15869

imjalpreet opened this issue Mar 24, 2021 · 1 comment · May be fixed by #18324
Labels

Comments

@imjalpreet
Copy link
Member

imjalpreet commented Mar 24, 2021

OpenCSVSerde deserializes columns from csv file into strings only. Currently, the CSV support in Presto relies on the metastore to return all column datatypes as string.

Hive < 3.0 returns all the datatypes as String(when using OpenCSVSerde) to Presto whereas Glue Metastore and Hive > 3.0 return the original schema declared datatype.

Related slack discussion: https://prestodb.slack.com/archives/C07JH9WMQ/p1616488019059400

@ashishtadose
Copy link
Contributor

I can take a look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants