Skip to content

Commit

Permalink
Revert the parser change
Browse files Browse the repository at this point in the history
  • Loading branch information
yhuai committed Apr 30, 2016
1 parent 31a5267 commit fdba779
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,6 @@ nonReserved
| AT | NULLS | OVERWRITE | ALL | ALTER | AS | BETWEEN | BY | CREATE | DELETE
| DESCRIBE | DROP | EXISTS | FALSE | FOR | GROUP | IN | INSERT | INTO | IS |LIKE
| NULL | ORDER | OUTER | TABLE | TRUE | WITH | RLIKE
| AND | CASE | CAST | CROSS | DISTINCT | DIV | ELSE | END | FROM | FUNCTION | HAVING | INTERVAL | JOIN
| MACRO | NOT | ON | OR | SELECT | STRATIFY | THEN | UNBOUNDED | WHEN | WHERE
;

SELECT: 'SELECT';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ class CatalystQlDataTypeParserSuite extends SparkFunSuite {

// DataType parser accepts certain reserved keywords.
checkDataType(
"Struct<TABLE: string, CASE:boolean>",
"Struct<TABLE: string, DATE:boolean>",
StructType(
StructField("TABLE", StringType, true) ::
StructField("CASE", BooleanType, true) :: Nil)
StructField("DATE", BooleanType, true) :: Nil)
)

// Define struct columns without ':'
Expand Down

0 comments on commit fdba779

Please sign in to comment.