Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Map State init, test cases pass #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Map State init, test cases pass #4
Changes from 1 commit
7dec5eb6a0555c49eefc5fbe6b1de3aab8cd87ac8e447f8af678aeb7c25fd93d272a1bd75c7753f6ac60f6999dfbffb02d3b8aea35f9f5db5ca346725fc67fe3405c13fd0cd6240923cfb96b1a404d58cb9ca91d0107435d5620cbaeb082e97e63ff12d03676bd0ccfc34baeb18072b51efbf43d1ace2411abc6442dc8157385f19d69df5960a3fbc644687b4d9dbb3c11585ad743012f7dff4ae92e8f50c992b2b299b2bcc6c0ebad2367cf576b85d55bb613a39ac2eb8e997f0d8f82211afd4f94d95d29d077f60806c6134a139abb7b0491b2331479392a7aab43e71f960d998764c1dcb7d847867e7cfd30c34a19cb7993125cfd5200fd43ffb130f6094e9376d9File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
### What changes were proposed in this pull request? update the logic to resolve column in spark connect ### Why are the changes needed? ``` df = spark.createDataFrame([(1, 2), (3, 4)], schema=["a", "b"]) df2 = df.select(df.a.alias("aa"), df.b) df3 = df2.join(df, df2.b == df.b) AnalysisException: [AMBIGUOUS_COLUMN_REFERENCE] Column "b" is ambiguous. It's because you joined several DataFrame together, and some of these DataFrames are the same. This column points to one of the DataFrames but Spark is unable to figure out which one. Please alias the DataFrames with different names via `DataFrame.alias` before joining them, and specify the column using qualified name, e.g. `df.alias("a").join(df.alias("b"), col("a.id") > col("b.id"))`. SQLSTATE: 42702 ``` ### Does this PR introduce _any_ user-facing change? yes, above query can run successfully after this PR This PR only affects Spark Connect, won't affect Classic Spark. ### How was this patch tested? added tests ### Was this patch authored or co-authored using generative AI tooling? no Closes apache#45846 from zhengruifeng/fix_connect_self_join_depth. Authored-by: Ruifeng Zheng <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing