cloud-fan commented on a change in pull request #31905:
URL: https://github.com/apache/spark/pull/31905#discussion_r603380474
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala
##########
@@ -683,6 +683,12 @@ class SparkSession private(
ret
}
+ def observation(expr: Column, exprs: Column*): Observation =
Review comment:
Yea this is arguable. Personally, I'd like to see a new API similar to
the existing `df.observe(...)`, but the new one here is very different:
```
val ob = spark.observe(...)
df.transform(ob.on).
```
Let's get more feedbacks. cc @srowen @HyukjinKwon @dongjoon-hyun @maropu
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]