GitHub user petermaxlee opened a pull request:
https://github.com/apache/spark/pull/14608
[SPARK-17013][SQL] Parse negative numeric literals
## What changes were proposed in this pull request?
This patch updates the SQL parser to parse negative numeric literals as
numeric literals, instead of unary minus of positive literals.
This allows the parser to parse the minimal value for each data type, e.g.
"-32768S".
## How was this patch tested?
Updated test cases.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/petermaxlee/spark SPARK-17013
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14608.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #14608
----
commit 1ae7a3b9f63a9787304b74bc10914b436574eb78
Author: petermaxlee <[email protected]>
Date: 2016-08-11T21:02:10Z
[SPARK-17013][SQL] Parse negative numeric literals
----
---
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]