Skip to content

Commit

Permalink
[SPARK-17101][SQL] Provide consistent format identifiers for TextFile…
Browse files Browse the repository at this point in the history
…Format and ParquetFileFormat
  • Loading branch information
jaceklaskowski committed Aug 19, 2016
1 parent cf0cce9 commit 5936e09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ParquetFileFormat

override def shortName(): String = "parquet"

override def toString: String = "ParquetFormat"
override def toString: String = shortName.toUpperCase

override def hashCode(): Int = getClass.hashCode()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class TextFileFormat extends TextBasedFileFormat with DataSourceRegister {

override def shortName(): String = "text"

override def toString: String = shortName.toUpperCase

private def verifySchema(schema: StructType): Unit = {
if (schema.size != 1) {
throw new AnalysisException(
Expand Down

0 comments on commit 5936e09

Please sign in to comment.