解决方案:
1.对于分区表,数据文件上层目录非分区目录,增加参数:spark.sql.sources.readPartitionWithSubdirectory.enabled=true
2.对于非分区表,数据文件上层目录非表目录,增加参数:spark.sql.nonPartitionedTable.subdirectory.read.enabled=true
hive表数据文件存在子目录的情况,查询不到数据
阅读 65
2022-02-22
解决方案:
1.对于分区表,数据文件上层目录非分区目录,增加参数:spark.sql.sources.readPartitionWithSubdirectory.enabled=true
2.对于非分区表,数据文件上层目录非表目录,增加参数:spark.sql.nonPartitionedTable.subdirectory.read.enabled=true
相关推荐
精彩评论(0)