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

   ### What changes were proposed in this pull request?
   
   This PR proposes to Implement DataFrameQueryContext in Spark Connect. It 
adds two new protobuf messages packed together with `Expression`:
   
   ```proto
   message Origin {
     // (Required) Indicate the origin type.
     oneof function {
       PythonOrigin python_origin = 1;
     }
   }
   
   message PythonOrigin {
     // (Required) Name of the origin, for example, the name of the function
     string fragment = 1;
   
     // (Required) Callsite to show to end users, for example, stacktrace.
     string call_site = 2;
   }
   ```
   
   They are set to individual expression messages, and use the information such 
as callsite when analysis happens. This resembles Spark SQL implementation.
   
   See also https://github.com/apache/spark/pull/45377.
   
   ### Why are the changes needed?
   
   See https://github.com/apache/spark/pull/45377
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, same as https://github.com/apache/spark/pull/45377 but in Spark Connect.
   
   ### How was this patch tested?
   
   Same unittests reused in Spark Connect.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.
   


-- 
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