srowen commented on issue #25373: [SPARK-28527][SQL][TEST] Re-run all the tests 
in SQLQueryTestSuite via Thrift Server
URL: https://github.com/apache/spark/pull/25373#issuecomment-522603350
 
 
   PS there is more to the failure:
   ```
     Cause: java.lang.NullPointerException:
     at 
scala.collection.mutable.ArrayOps$ofRef$.newBuilder$extension(ArrayOps.scala:202)
   ...
     at scala.collection.mutable.ArrayOps$ofRef.partition(ArrayOps.scala:198)
     at 
org.apache.spark.sql.SQLQueryTestSuite.listFilesRecursively(SQLQueryTestSuite.scala:453)
     at 
org.apache.spark.sql.hive.thriftserver.ThriftServerQueryTestSuite.listTestCases(ThriftServerQueryTestSuite.scala:207)
   ...
   ```
   
   It does sorta look like it can't list a directory because it's 'empty'? that 
is `listFiles()` is null. The subdirs of `sql-tests/` are packaged into that 
`-tests` JAR though.
   
   Comments in `SQLQueryTestSuite` suggest that it's known that SBT will have 
these resources as local files in the classpath (not in the JAR) -- see the 
comment on `baseResourcePath`. So, hm, has SBT always worked differently in 
this regard?
   
   But then I don't know how Maven builds have ever worked for 
`SQLQueryTestSuite` as they should use the exact same mechanism? It appears to 
be running in the failed build, of course.
   
   Weirder still is that it doesn't happen consistently?
   
   Well yeah I think we'd have to revert for now.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to