[SQL] set spark.sql.hive.convertMetastoreParquet false by default #3352
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Set
spark.sql.hive.convertMetastoreParquettrue now leads to1 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
2 run
create table test_parquet(key int, value string) stored as parquet;insert into table test_parquet select * from src;select * from test_parquet;get result as follow
...
282 [B@38fda3b8
138 [B@1407a243
238 [B@12de6fb
419 [B@6c976957
15 [B@48850673
118 [B@156a8d37
72 [B@65d20dd
90 [B@4c18906e
307 [B@60b24cc9
19 [B@59cf51b7
435 [B@39fdf371
10 [B@4f799d75
277 [B@39509516
273 [B@596bf4bf
306 [B@3e915576
224 [B@3781d611
309 [B@2d0d128f