Skip to content

Commit 42e164f

Browse files
fenzhuGitHub Enterprise
authored andcommitted
[CARMEL-7572][CARMEL-4679] Expose runtime metrics of query (apache#218)
1 parent 5e3615d commit 42e164f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sql/core/src/main/scala/org/apache/spark/status/api/v1/sql/SqlResource.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,14 @@ private[v1] class SqlResource extends BaseAppResource with Logging {
220220
}
221221
}
222222

223+
@GET
224+
@Path("metrics/{groupId}")
225+
@Produces(Array(MediaType.APPLICATION_JSON))
226+
def executionMetrics(@PathParam("groupId") groupId: String): String = {
227+
logInfo(s"get executionMetrics for groupId: $groupId")
228+
String.join("&257&", "", "")
229+
}
230+
223231
private def getStore: AppStatusStore = {
224232
withUI {
225233
_.store

0 commit comments

Comments
 (0)