Github user byF commented on a diff in the pull request:
https://github.com/apache/spark/pull/2084#discussion_r16586456
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/SqlParser.scala ---
@@ -357,7 +358,7 @@ class SqlParser extends StandardTokenParsers with
PackratParsers {
literal
protected lazy val dataType: Parser[DataType] =
- STRING ^^^ StringType
+ STRING ^^^ StringType | TIMESTAMP ^^^ TimestampType
--- End diff --
`dataType` parser is used only in for a CAST expression; I checked the
logic of `EqualTo` and `c2`, it works out of box. Can you think of any corner
case I should test?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]