fuwhu commented on a change in pull request #26850: [SPARK-30215][SQL] Remove
PrunedInMemoryFileIndex and merge its functionality into InMemoryFileIndex
URL: https://github.com/apache/spark/pull/26850#discussion_r363631088
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/InMemoryFileIndex.scala
##########
@@ -68,8 +70,11 @@ class InMemoryFileIndex(
refresh0()
override def partitionSpec(): PartitionSpec = {
+ if (userSpecifiedPartitionSpec.isDefined) {
+ cachedPartitionSpec = userSpecifiedPartitionSpec.get
+ }
if (cachedPartitionSpec == null) {
- cachedPartitionSpec = inferPartitioning()
+ cachedPartitionSpec = inferPartitioning()
Review comment:
The test failed when I put it in this if branch :
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/116149/testReport
But it may be an irrelevant error. Will retry it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]