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: [email protected]
For additional commands, e-mail: [email protected]