-
Notifications
You must be signed in to change notification settings - Fork 29.3k
[SPARK-41709][CORE][SQL][UI] Explicitly define Seq as collection.Seq to avoid toSeq when create ui objects from protobuf objects for Scala 2.13
#39215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
f9ef3c8
90e6f6f
f5865c2
ad179a1
755a01e
02d6e0c
fb4c23c
d3659eb
2453322
6c46a0a
464ce87
9a682a5
43acbcf
5b500d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -486,7 +486,7 @@ private class LiveExecutionData(val executionId: Long) extends LiveEntity { | |
| var details: String = null | ||
| var physicalPlanDescription: String = null | ||
| var modifiedConfigs: Map[String, String] = _ | ||
| var metrics = Seq[SQLPlanMetric]() | ||
| var metrics = scala.collection.Seq[SQLPlanMetric]() | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| var submissionTime = -1L | ||
| var completionTime: Option[Date] = None | ||
| var errorMessage: Option[String] = None | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,7 +64,7 @@ class SQLExecutionUIDataSerializer extends ProtobufSerDe { | |
| getOptional(ui.hasCompletionTime, () => new Date(ui.getCompletionTime)) | ||
| val errorMessage = getOptional(ui.hasErrorMessage, () => ui.getErrorMessage) | ||
| val metrics = | ||
| ui.getMetricsList.asScala.map(m => SQLPlanMetricSerializer.deserialize(m)).toSeq | ||
| ui.getMetricsList.asScala.map(m => SQLPlanMetricSerializer.deserialize(m)) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If no
|
||
| val jobs = ui.getJobsMap.asScala.map { | ||
| case (jobId, status) => jobId.toInt -> JobExecutionStatus.valueOf(status.toString) | ||
| }.toMap | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.