You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Alexey Dmitriev (Jira)" <ji...@apache.org> on 2023/10/30 10:19:00 UTC
[jira] [Updated] (SPARK-45722) False positive when cheking for ambigious columns
[ https://issues.apache.org/jira/browse/SPARK-45722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Dmitriev updated SPARK-45722:
------------------------------------
Environment:
py3.11
pyspark 3.4.0
was:
py3.11
pyspark 3.4.0
I have following code:
```
from pyspark.sql import SparkSession
session = SparkSession.Builder().getOrCreate()
A = session.createDataFrame([(1,)], ['a'])
B = session.createDataFrame([(1,)], ['b'])
A.join(B).select(B.b) # works fine
C = A.join(A.join(B), on=F.lit(False), how='leftanti') # C has the same columns as A (columns, not only names)
C.join(B).select(B.b) #doesn't work, says B.b is ambigious,
```
> False positive when cheking for ambigious columns
> --------------------------------------------------
>
> Key: SPARK-45722
> URL: https://issues.apache.org/jira/browse/SPARK-45722
> Project: Spark
> Issue Type: Bug
> Components: PySpark
> Affects Versions: 3.4.0
> Environment: py3.11
> pyspark 3.4.0
> Reporter: Alexey Dmitriev
> Priority: Major
>
> So, I have following code
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org