-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-18510][SQL] Follow up to address comments in #15951 #15997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| } else { | ||
| // in streaming mode, we have already inferred and registered partition columns, we will | ||
| // never have to materialize the lazy val below | ||
| lazy val inferredPartitions = tempFileCatalog.partitionSchema |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this lazy val so that it's easy to track when tempFileCatalog is materialized.
| // maintain old behavior before SPARK-18510. If userSpecifiedSchema is empty used inferred | ||
| // partitioning | ||
| if (userSpecifiedSchema.isEmpty) { | ||
| val inferredPartitions = tempFileIndex.partitionSchema |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still keep the inferredPartitions variable to document the meaning of tempFileIndex.partitionSchema.
|
LGTM pending tests. |
|
Test build #69088 has finished for PR 15997 at commit
|
|
Merging to master and 2.1 |
## What changes were proposed in this pull request? This PR addressed the rest comments in #15951. ## How was this patch tested? Jenkins Author: Shixiong Zhu <shixiong@databricks.com> Closes #15997 from zsxwing/SPARK-18510-follow-up. (cherry picked from commit 223fa21) Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
## What changes were proposed in this pull request? This PR addressed the rest comments in apache#15951. ## How was this patch tested? Jenkins Author: Shixiong Zhu <shixiong@databricks.com> Closes apache#15997 from zsxwing/SPARK-18510-follow-up.
## What changes were proposed in this pull request? This PR addressed the rest comments in apache#15951. ## How was this patch tested? Jenkins Author: Shixiong Zhu <shixiong@databricks.com> Closes apache#15997 from zsxwing/SPARK-18510-follow-up.
What changes were proposed in this pull request?
This PR addressed the rest comments in #15951.
How was this patch tested?
Jenkins