From e780208aa6361de34983b244cdb0ac4544c1645c Mon Sep 17 00:00:00 2001 From: Jacek Laskowski Date: Fri, 19 Aug 2016 23:35:01 +0200 Subject: [PATCH] toString capitalized --- .../sql/execution/datasources/parquet/ParquetFileFormat.scala | 2 +- .../spark/sql/execution/datasources/text/TextFileFormat.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFileFormat.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFileFormat.scala index 0d5a25ca16e50..3b74d9dac5463 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFileFormat.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFileFormat.scala @@ -60,7 +60,7 @@ class ParquetFileFormat override def shortName(): String = "parquet" - override def toString: String = shortName.toUpperCase + override def toString: String = "Parquet" override def hashCode(): Int = getClass.hashCode() diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/text/TextFileFormat.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/text/TextFileFormat.scala index 9ca0c878d43fb..c7353989f6ccc 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/text/TextFileFormat.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/text/TextFileFormat.scala @@ -40,7 +40,7 @@ class TextFileFormat extends TextBasedFileFormat with DataSourceRegister { override def shortName(): String = "text" - override def toString: String = shortName.toUpperCase + override def toString: String = "Text" private def verifySchema(schema: StructType): Unit = { if (schema.size != 1) {