Github user chuxi commented on a diff in the pull request:
https://github.com/apache/spark/pull/2084#discussion_r16580536
--- 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 --
why don't you use String as Timestamp? I don't think add another
TimestampType is a good idea. It makes the datatype complex.
Besides, if you want to add it in Filter part (where ~~) it will lead to a
big problem, such as the logic of EqualTo and c2 functions in file
predicates.scala.
---
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]