Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class CompressionCodecSuite extends TestHiveSingleton with ParquetTest with Befo
""".stripMargin)
}

private def writeDateToTableUsingCTAS(
private def writeDataToTableUsingCTAS(
rootDir: File,
tableName: String,
partitionValue: Option[String],
Expand Down Expand Up @@ -152,7 +152,7 @@ class CompressionCodecSuite extends TestHiveSingleton with ParquetTest with Befo
usingCTAS: Boolean): String = {
val partitionValue = if (isPartitioned) Some("test") else None
if (usingCTAS) {
writeDateToTableUsingCTAS(tmpDir, tableName, partitionValue, format, compressionCodec)
writeDataToTableUsingCTAS(tmpDir, tableName, partitionValue, format, compressionCodec)
} else {
createTable(tmpDir, tableName, isPartitioned, format, compressionCodec)
writeDataToTable(tableName, partitionValue)
Expand Down Expand Up @@ -258,8 +258,7 @@ class CompressionCodecSuite extends TestHiveSingleton with ParquetTest with Befo
def checkForTableWithCompressProp(format: String, compressCodecs: List[String]): Unit = {
Seq(true, false).foreach { isPartitioned =>
Seq(true, false).foreach { convertMetastore =>
// TODO: Also verify CTAS(usingCTAS=true) cases when the bug(SPARK-22926) is fixed.
Seq(false).foreach { usingCTAS =>
Seq(true, false).foreach { usingCTAS =>
checkTableCompressionCodecForCodecs(
format,
isPartitioned,
Expand All @@ -281,8 +280,7 @@ class CompressionCodecSuite extends TestHiveSingleton with ParquetTest with Befo
def checkForTableWithoutCompressProp(format: String, compressCodecs: List[String]): Unit = {
Seq(true, false).foreach { isPartitioned =>
Seq(true, false).foreach { convertMetastore =>
// TODO: Also verify CTAS(usingCTAS=true) cases when the bug(SPARK-22926) is fixed.
Seq(false).foreach { usingCTAS =>
Seq(true, false).foreach { usingCTAS =>
checkTableCompressionCodecForCodecs(
format,
isPartitioned,
Expand Down