Github user jiangxb1987 commented on a diff in the pull request:
https://github.com/apache/spark/pull/19868#discussion_r180961987
--- Diff:
sql/hive/src/main/scala/org/apache/spark/sql/hive/TableReader.scala ---
@@ -176,12 +176,13 @@ class HadoopTableReader(
val matches = fs.globStatus(pathPattern)
matches.foreach(fileStatus => existPathSet +=
fileStatus.getPath.toString)
}
- // convert /demo/data/year/month/day to /demo/data/*/*/*/
+ // convert /demo/data/year/month/day to
/demo/data/year/month/*/
--- End diff --
Em... It seems we have to check all the levels unless we have specified a
value for each partition column. We can make some improvement here but seems
that require more complicated approach.
Advertising
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org