-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-21987][SQL] fix a compatibility issue of sql event logs #19237
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending tests and small nits.
@@ -26,6 +28,7 @@ import org.apache.spark.sql.execution.metric.SQLMetricInfo | |||
* Stores information about a SQL SparkPlan. | |||
*/ | |||
@DeveloperApi | |||
@JsonIgnoreProperties(Array("metadata")) // The metadata filed was removed in Spark 2.3. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
field
assert(reconstructedEvent == expectedEvent) | ||
} | ||
|
||
private val SQLExecutionStartJsonString = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Declare this inside the test since it's only used there? (Also would make it easier to match the test to the data if more tests are added.)
Test build #81791 has finished for PR 19237 at commit
|
Test build #81799 has finished for PR 19237 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks! Merged to master. |
What changes were proposed in this pull request?
In #18600 we removed the
metadata
field fromSparkPlanInfo
. This causes a problem when we replay event logs that are generated by older Spark versions.How was this patch tested?
a regression test.