Skip to content

Comments

[SPARK-39204][CORE][SQL] Replace Utils.createTempDir with JavaUtils.createTempDir#36610

Closed
LuciferYang wants to merge 2 commits intoapache:masterfrom
LuciferYang:SPARK-39204
Closed

[SPARK-39204][CORE][SQL] Replace Utils.createTempDir with JavaUtils.createTempDir#36610
LuciferYang wants to merge 2 commits intoapache:masterfrom
LuciferYang:SPARK-39204

Conversation

@LuciferYang
Copy link
Contributor

What changes were proposed in this pull request?

This main change of this pr is replace all use of Utils.createTempDir with JavaUtils.createTempDir, the replacement rules are as follows:

  • Utils.createTempDir() -> JavaUtils.createTempDir()
  • Utils.createTempDir(rootDir) and Utils.createTempDir(root = rootDir) -> JavaUtils.createTempDirWithRoot(rootDir)
  • Utils.createTempDir(namePrefix = prefix) -> JavaUtils.createTempDirWithPrefix(prefix)
  • Utils.createTempDir(rootDir, prefix) -> JavaUtils.createTempDir(rootDir, prefix)

Another change is to delete Utils.createTempDir() method to keep only one createTempDir() method.

Why are the changes needed?

Keep only one createTempDir() method in Spark.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Pass GitHub Action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant