QuakeWang opened a new pull request, #8285:
URL: https://github.com/apache/paimon/pull/8285
### Purpose
`PaimonMetricTest` previously read metrics from the last SQL execution in
Spark's status store. This is fragile because command execution can create
additional SQL executions and listener events are updated asynchronously, so
the last execution is not always the command that owns the metrics under test.
This PR matches the SQL execution by the current command plan's metric ids
instead, and waits for Spark listener events before reading the status store.
### Tests
```bash
mvn -pl paimon-spark/paimon-spark-ut -am -DfailIfNoTests=false \
-DwildcardSuites=org.apache.paimon.spark.sql.PaimonMetricTest \
-Dtest=none test
```
--
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]