[SPARK-14344][SQL] Not creating meta files when summary-metadata property is false in parquet#12355
Closed
kasjain wants to merge 3 commits into
Closed
[SPARK-14344][SQL] Not creating meta files when summary-metadata property is false in parquet#12355kasjain wants to merge 3 commits into
kasjain wants to merge 3 commits into
Conversation
…erty is false in parquet
…erty is false in parquet
Contributor
Author
|
Can one of the admins verify this patch? |
1 similar comment
|
Can one of the admins verify this patch? |
Member
Member
|
It seems working fine now. Therefore, it seems not a problem. test("SPARK-14344 - write metadata")
withSQLConf(ParquetOutputFormat.ENABLE_JOB_SUMMARY -> "true") {
withTempPath { dir =>
val path = s"${dir.getCanonicalPath}/part-r-0.parquet"
spark.range(10).write.parquet(path)
val files = new File(path).listFiles()
assert(files.exists(_.getName.endsWith("_common_metadata")))
}
}
withSQLConf(ParquetOutputFormat.ENABLE_JOB_SUMMARY -> "false") {
withTempPath { dir =>
val path = s"${dir.getCanonicalPath}/part-r-0.parquet"
spark.range(10).write.parquet(path)
val files = new File(path).listFiles()
assert(!files.exists(_.getName.endsWith("_common_metadata")))
}
}
} |
srowen
added a commit
to srowen/spark
that referenced
this pull request
Oct 12, 2016
Closes apache#15303 Closes apache#15078 Closes apache#15080 Closes apache#15135 Closes apache#14565 Closes apache#12355 Closes apache#15404
zifeif2
pushed a commit
to zifeif2/spark
that referenced
this pull request
Nov 22, 2025
Closes apache#15303 Closes apache#15078 Closes apache#15080 Closes apache#15135 Closes apache#14565 Closes apache#12355 Closes apache#15404 Author: Sean Owen <sowen@cloudera.com> Closes apache#15451 from srowen/CloseStalePRs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This change fixes a bug related to the property "parquet.enable.summary-metadata". Currently, the property's value is not considered before writing the metaData (_metadata and _common-metadata files) in the "saveAsParquetFile" code-flow. Hence making this property false still created the meta files.
How was this patch tested?
Integration tests and manual tests