question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.UnsupportedOperationException: com.facebook.presto.spi.type.DoubleType

See original GitHub issue

I’m using latest Presto Server Version presto-server-0.214

Hive Create Table Query:

create external table some_table_name(col1 double,col2 double) partitioned by (col3 string)  stored as parquet location 's3://<some location>';

The parquet file’s schema is:

       {
		"field_name": "col1",
		"name": "col1",
		"numpy_type": "float64",
		"pandas_type": "float64"
	}, {
		"field_name": "col2",
		"name": "col2",
		"numpy_type": "float64",
		"pandas_type": "float64"
	}

Hive table created successfully but Presto throws below error,

java.lang.UnsupportedOperationException: com.facebook.presto.spi.type.DoubleType

Also tried setting hive.parquet.use-column-names=true but no luck…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
qqibrowcommented, Dec 7, 2018

@santosh-kore Most likely the error is caused by schema mismatch between table schema and parquet schema. you can try add this patch to get a more user friendly error message. https://github.com/prestodb/presto/pull/11515

3reactions
ajayMaletiracommented, Apr 7, 2020

hey guys, i still see the issue? i am able to query from hive but presto keeps complaining about double.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Presto failed: com.facebook.presto.spi.type.VarcharType
I have found the answer for the problem, when I stored the data in s3, the data inside the file was with one...
Read more >
com.facebook.presto.spi.type.VarcharType - Google Groups
Hi All,. I m using presto version 0.180. when i try to query table present in hive its giving following exception. java.lang.UnsupportedOperationException: ...
Read more >
com.facebook.presto.spi.type.DoubleType Java Examples
This page shows Java code examples of com.facebook.presto.spi.type.DoubleType.
Read more >
com.facebook.presto.plugin.jdbc.QueryBuilder Maven / Gradle ...
com.facebook.presto.plugin.jdbc.QueryBuilder maven / gradle build tool code. The class is part of the package ➦ Group: com.facebook.presto ➦ Artifact: ...
Read more >
Presto でParquet にクエリするとjava.lang ... - ablog
Presto でParquet にクエリするとjava.lang.UnsupportedOperationException: com.facebook.presto.spi.type.LongDecimalType.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found