You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "liancheng (JIRA)" <ji...@apache.org> on 2016/07/20 08:54:20 UTC
[jira] [Created] (SPARK-16646) LEAST doesn't accept numeric
arguments with different data types
liancheng created SPARK-16646:
---------------------------------
Summary: LEAST doesn't accept numeric arguments with different data types
Key: SPARK-16646
URL: https://issues.apache.org/jira/browse/SPARK-16646
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 2.0.0
Reporter: liancheng
{code:sql}
SELECT LEAST(1, 1.5);
{code}
{noformat}
Error: org.apache.spark.sql.AnalysisException: cannot resolve 'least(1, CAST(2.1 AS DECIMAL(2,1)))' due to data type mismatch: The expressions should all have the same type, got LEAST (ArrayBuffer(IntegerType, DecimalType(2,1))).; line 1 pos 7 (state=,code=0)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org