You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/10/14 03:46:19 UTC
[GitHub] [spark] AngersZhuuuu commented on a change in pull request #33828: [SPARK-36579][SQL] Make spark source stagingDir can be customized
AngersZhuuuu commented on a change in pull request #33828:
URL: https://github.com/apache/spark/pull/33828#discussion_r728612684
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
##########
@@ -1216,6 +1216,16 @@ object SQLConf {
.booleanConf
.createWithDefault(true)
+ val FILE_COMMIT_STAGING_DIR =
Review comment:
> It's reasonable, but it's an assumption based on this PR AS-IS scope. Some other PRs may try to use it later.
@dongjoon-hyun I think current code could be reviewed now and have update the desc detailly.
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/InsertIntoHadoopFsRelationCommand.scala
##########
@@ -162,23 +162,14 @@ case class InsertIntoHadoopFsRelationCommand(
}
}
- // For dynamic partition overwrite, FileOutputCommitter's output path is staging path, files
- // will be renamed from staging path to final output path during commit job
- val committerOutputPath = if (dynamicPartitionOverwrite) {
- FileCommitProtocol.getStagingDir(outputPath.toString, jobId)
- .makeQualified(fs.getUri, fs.getWorkingDirectory)
- } else {
- qualifiedOutputPath
- }
-
Review comment:
Here's code is a little hardcode..
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org