Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-fan committed Nov 27, 2020
1 parent 69adca5 commit 3bbe7e7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package org.apache.spark.sql.catalyst.parser

import org.apache.spark.SparkFunSuite
import org.apache.spark.sql.catalyst.util.CharVarcharUtils
import org.apache.spark.sql.types._

class TableSchemaParserSuite extends SparkFunSuite {
Expand Down Expand Up @@ -68,7 +69,8 @@ class TableSchemaParserSuite extends SparkFunSuite {
StructField("arrAy", ArrayType(DoubleType)) ::
StructField("anotherArray", ArrayType(CharType(9))) :: Nil)) :: Nil)

assert(parse(tableSchemaString) === expectedDataType)
assert(parse(tableSchemaString) ===
CharVarcharUtils.replaceCharVarcharWithStringInSchema(expectedDataType))
}

// Negative cases
Expand Down

0 comments on commit 3bbe7e7

Please sign in to comment.