[ https://issues.apache.org/jira/browse/SPARK-21129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiao Li resolved SPARK-21129. ----------------------------- Resolution: Fixed Fix Version/s: 2.2.0 > 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.2.0 > Reporter: Xiao Li > Assignee: Xiao Li > Fix For: 2.2.0 > > > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org