Github user JoshRosen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/9512#discussion_r44503406
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/metric/SQLMetricsSuite.scala
 ---
    @@ -542,15 +543,7 @@ private object BoxingFinder {
         // Copy data over, before delegating to ClassReader -
         // else we can run out of open file handles.
         Utils.copyStream(resourceStream, baos, true)
    -    // ASM4 doesn't support Java 8 classes, which requires ASM5.
    -    // So if the class is ASM5 (E.g., java.lang.Long when using JDK8 
runtime to run these codes),
    -    // then ClassReader will throw IllegalArgumentException,
    -    // However, since this is only for testing, it's safe to skip these 
classes.
    -    try {
    -      Some(new ClassReader(new ByteArrayInputStream(baos.toByteArray)))
    -    } catch {
    -      case _: IllegalArgumentException => None
    -    }
    +    Some(new ClassReader(new ByteArrayInputStream(baos.toByteArray)))
    --- End diff --
    
    Just realized that this no longer needs to return an `Option`; will update 
now to keep the code clean.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to