zhengruifeng opened a new pull request, #39925:
URL: https://github.com/apache/spark/pull/39925

   ### What changes were proposed in this pull request?
   1, In Python Client
   create `plan_id` for each proto plan;
   attach `plan_id` to the column created by `DataFrame[col_name]` or 
`DataFrame.col_name` (F.col(col_name) doesn't carry `plan_id`);
   
   2, In Connect Planner:
   attach `plan_id` to `UnresolvedAttribute`s and `LogicalPlan `s via 
`TreeNodeTag`
   
   3, In Analyzer:
   for an `UnresolvedAttribute` with `plan_id`, search the expected node in the 
plan, and resolve it with the correct node if possible
   
   ### Why are the changes needed?
   Fix bug, following queries didn't work before this PR:
   ```
   df1.join(df2, df1["value"] == df2["value"])
   df1.join(df2, df1["value"] == df2["value"]).select(df1.value)
   ```
   
   
   ### Does this PR introduce _any_ user-facing change?
   yes
   
   
   ### How was this patch tested?
   added tests, enabled tests
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to