You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2019/11/18 15:38:00 UTC
[jira] [Resolved] (SPARK-29941) Support dec as shorthand for
decimal
[ https://issues.apache.org/jira/browse/SPARK-29941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-29941.
---------------------------------
Fix Version/s: 3.0.0
Resolution: Fixed
Issue resolved by pull request 26574
[https://github.com/apache/spark/pull/26574]
> Support dec as shorthand for decimal
> ------------------------------------
>
> Key: SPARK-29941
> URL: https://issues.apache.org/jira/browse/SPARK-29941
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Kent Yao
> Assignee: Kent Yao
> Priority: Major
> Fix For: 3.0.0
>
>
> {code:java}
> CHAR is equivalent to CHARACTER. DEC is equivalent to DECIMAL. INT is equivalent to INTEGER. VARCHAR is equivalent to CHARACTER VARYING. ...
> {code}
> According to SQL standard, we decide to add dec for decimal as short hand.
> also checked with Postgres,
> ```sql
> postgres=# select dec '1.0';
> numeric
> ---------
> 1.0
> (1 row)
> ```
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org