FouadApp commented on PR #32679:
URL: https://github.com/apache/spark/pull/32679#issuecomment-1303780636
I have the same problem:
With the TEZ engine writing data in the presence of union all:
part_date=xxxx/HIVE_UNION_SUBDIR_1/part_000 (parquet)
part_date=xxxx/HIVE_UNION_SUBDIR_2
part_date=xxxx/HIVE_UNION_SUBDIR_x
when I run a query on this data
df = spark.sql("select * from table")
df.count() ---> 0
Spark cannot read the subdir !
I have a solution biut is not recommmended
spark.conf.set("mapred.input.dir.recursive", "true")
spark.conf.set("mapreduce.input.fileinputformat.input.dir.recursive",
"true")
spark.conf.set("spark.sql.hive.convertMetastoreParquet", "false") # This
param is not recommended in Spark
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]