[
https://issues.apache.org/jira/browse/SPARK-35454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17348935#comment-17348935
]
Apache Spark commented on SPARK-35454:
--------------------------------------
User 'Ngone51' has created a pull request for this issue:
https://github.com/apache/spark/pull/32616
> Ambiguous self-join doesn't fail after transfroming the dataset to dataframe
> ----------------------------------------------------------------------------
>
> Key: SPARK-35454
> URL: https://issues.apache.org/jira/browse/SPARK-35454
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.1.0, 3.1.1
> Reporter: wuyi
> Priority: Major
>
> {code:java}
> test("SPARK-28344: fail ambiguous self join - Dataset.colRegex as column
> ref") {
> val df1 = spark.range(3)
> val df2 = df1.filter($"id" > 0)
> withSQLConf(
> SQLConf.FAIL_AMBIGUOUS_SELF_JOIN_ENABLED.key -> "true",
> SQLConf.CROSS_JOINS_ENABLED.key -> "true") {
> assertAmbiguousSelfJoin(df1.join(df2, df1.colRegex("id") >
> df2.colRegex("id")))
> }
> }
> {code}
> For this unit test, if we append `.toDF()` to both df1 and df2, the query
> won't fail.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]