Skip to content

Conversation

@andrewor14
Copy link
Contributor

This is an existing issue uncovered recently by #10835. The reason for the exception was because the SQLHistoryListener gets all sorts of accumulators, not just the ones that represent SQL metrics. For example, the listener gets the internal.metrics.shuffleRead.remoteBlocksFetched, which is an Int, then it proceeds to cast the Int to a Long, which fails.

The fix is to mark accumulators representing SQL metrics using some internal metadata. Then we can identify which ones are SQL metrics and only process those in the SQLHistoryListener.

Andrew Or added 5 commits January 28, 2016 13:24
This is currently not used, but will be populated by SQLMetrics
in the ensuing commits.
SQLMetrics will override this in the next commit to set some
custom metadata in the AccumulableInfo it returns.
This should fix the ClassCastException since all SQL metrics
are (for now) Long.
@andrewor14
Copy link
Contributor Author

@zsxwing

@SparkQA
Copy link

SparkQA commented Jan 29, 2016

Test build #50314 has finished for PR 10971 at commit c6f41d1.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Member

zsxwing commented Jan 29, 2016

LGTM. Merging to master.

@asfgit asfgit closed this in e38b0ba Jan 29, 2016
@andrewor14 andrewor14 deleted the fix-sql-history branch February 3, 2016 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants