LuciferYang commented on code in PR #53557:
URL: https://github.com/apache/spark/pull/53557#discussion_r2638548081
##########
sql/core/src/test/scala/org/apache/spark/sql/streaming/util/GlobalSingletonManualClock.scala:
##########
@@ -115,7 +115,7 @@ class GlobalSyncClockClient(driverEndpointName: String)
SparkEnv.get.rpcEnv)
override def getTimeMillis(): Long = {
- val result = endpoint.askSync[Long]()
+ val result = endpoint.askSync[Long](())
Review Comment:
```
[warn]
/home/runner/work/spark/spark/sql/core/src/test/scala/org/apache/spark/sql/streaming/util/GlobalSingletonManualClock.scala:118:40:
adaptation of an empty argument list by inserting () is deprecated: this is
unlikely to be what you want
[warn] signature: RpcEndpointRef.askSync[T](message: Any)(implicit
evidence$4: scala.reflect.ClassTag[T]): T
[warn] given arguments: <none>
[warn] after adaptation: RpcEndpointRef.askSync((): Unit)
[warn] Applicable -Wconf / @nowarn filters for this warning: msg=<part of
the message>, cat=deprecation,
site=org.apache.spark.sql.streaming.util.GlobalSyncClockClient.getTimeMillis.result,
origin=org.apache.spark.rpc.RpcEndpointRef.askSync, version=2.11.0
[warn] val result = endpoint.askSync[Long]()
```
--
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]