Skip to content

Commit

Permalink
add sparksql support varchar no length
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaiyuyong committed Sep 11, 2017
1 parent 2dd3909 commit 21ef80f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,7 @@ class AstBuilder extends SqlBaseBaseVisitor[AnyRef] with Logging {
case ("timestamp", Nil) => TimestampType
case ("string", Nil) => StringType
case ("char", length :: Nil) => CharType(length.getText.toInt)
case ("varchar", Nil) => StringType
case ("varchar", length :: Nil) => VarcharType(length.getText.toInt)
case ("binary", Nil) => BinaryType
case ("decimal", Nil) => DecimalType.USER_DEFAULT
Expand Down

0 comments on commit 21ef80f

Please sign in to comment.