You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2017/06/17 20:15:01 UTC
[jira] [Created] (SPARK-21129) Arguments of SQL function call
should not be named expressions
Xiao Li created SPARK-21129:
-------------------------------
Summary: Arguments of SQL function call should not be named expressions
Key: SPARK-21129
URL: https://issues.apache.org/jira/browse/SPARK-21129
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 2.1.1, 2.0.2, 2.2.0
Reporter: Xiao Li
Assignee: Xiao Li
Function argument should not be named expressions. It could cause misleading error message.
{noformat}
spark-sql> select count(distinct c1, distinct c2) from t1;
{noformat}
{noformat}
Error in query: cannot resolve '`distinct`' given input columns: [c1, c2]; line 1 pos 26;
'Project [unresolvedalias('count(c1#30, 'distinct), None)]
+- SubqueryAlias t1
+- CatalogRelation `default`.`t1`, org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe, [c1#30, c2#31]
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org