HyukjinKwon commented on a change in pull request #33545:
URL: https://github.com/apache/spark/pull/33545#discussion_r679560539
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/Observation.scala
##########
@@ -75,23 +79,39 @@ class Observation(name: String) {
}
/**
- * Get the observed metrics. This waits for the observed dataset to finish
its first action.
- * Only the result of the first action is available. Subsequent actions do
not modify the result.
+ * (Scala-specific) Get the observed metrics. This waits for the observed
dataset to finish
+ * its first action. Only the result of the first action is available.
Subsequent actions do not
+ * modify the result.
*
- * @return the observed metrics as a [[Row]]
+ * @return the observed metrics as a `Map[String, Any]`
* @throws InterruptedException interrupted while waiting
*/
@throws[InterruptedException]
- def get: Row = {
+ def get: Map[String, Any] = {
Review comment:
sorry last comment. can we use sth like `Map[String, _]`?
--
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]