Jeff created SPARK-6273:
---------------------------
Summary: Got error when do join
Key: SPARK-6273
URL: https://issues.apache.org/jira/browse/SPARK-6273
Project: Spark
Issue Type: Bug
Affects Versions: 1.2.1
Reporter: Jeff
while one table's alias name is the same with other table's column name
get the error Ambiguous references
Error: org.apache.spark.sql.catalyst.errors.package$TreeNodeException:
Ambiguous references to salary.pay_date:
(pay_date#34749,List()),(salary#34792,List(pay_date)), tree:
'Filter (((('salary.pay_date = 'time_by_day.the_date) && ('time_by_day.the_year
= 1997.0)) && ('salary.employee_id = 'employee.employee_id)) &&
('employee.store_id = 'store.store_id))
Join Inner, None
Join Inner, None
Join Inner, None
MetastoreRelation yxqtest, time_by_day, Some(time_by_day)
MetastoreRelation yxqtest, salary, Some(salary)
MetastoreRelation yxqtest, store, Some(store)
MetastoreRelation yxqtest, employee, Some(employee) (state=,code=0)
Error: org.apache.spark.sql.catalyst.errors.package$TreeNodeException:
Ambiguous references to salary.pay_date:
(pay_date#34749,List()),(salary#34792,List(pay_date)), tree:
'Filter (((('salary.pay_date = 'time_by_day.the_date) && ('time_by_day.the_year
= 1997.0)) && ('salary.employee_id = 'employee.employee_id)) &&
('employee.store_id = 'store.store_id))
Join Inner, None
Join Inner, None
Join Inner, None
MetastoreRelation yxqtest, time_by_day, Some(time_by_day)
MetastoreRelation yxqtest, salary, Some(salary)
MetastoreRelation yxqtest, store, Some(store)
MetastoreRelation yxqtest, employee, Some(employee) (state=,code=0)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]