[
https://issues.apache.org/jira/browse/SPARK-4552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14233314#comment-14233314
]
Michael Armbrust commented on SPARK-4552:
-----------------------------------------
It turns out this manifests also when writing a query that doesn't match any
partitions, which seems much more common. I'm going to do a quick surgical fix
given the proximity to the release.
> query for empty parquet table in spark sql hive get IllegalArgumentException
> ----------------------------------------------------------------------------
>
> Key: SPARK-4552
> URL: https://issues.apache.org/jira/browse/SPARK-4552
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.1.0
> Reporter: wangfei
> Assignee: Michael Armbrust
> Priority: Blocker
> Fix For: 1.2.0
>
>
> run
> create table test_parquet(key int, value string) stored as parquet;
> select * from test_parquet;
> get error as follow
> java.lang.IllegalArgumentException: Could not find Parquet metadata at path
> file:/user/hive/warehouse/test_parquet
> at
> org.apache.spark.sql.parquet.ParquetTypesConverter$$anonfun$readMetaData$4.apply(ParquetTypes.scala:459)
> at
> org.apache.spark.sql.parquet.ParquetTypesConverter$$anonfun$readMetaData$4.apply(ParquetTypes.scala:459)
> at scala.Option.getOrElse(Option.scala:120)
> at
> org.apache.spark.sql.parquet.ParquetTypesConverter$.readMetaData(ParquetTypes.sc
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]