SPARK-2903 [BUILD] [SQL] Spark SQL tests fail to compile due to dependency structure, misplaced test class#1833
SPARK-2903 [BUILD] [SQL] Spark SQL tests fail to compile due to dependency structure, misplaced test class#1833srowen wants to merge 1 commit intoapache:masterfrom
Conversation
|
QA tests have started for PR 1833. This patch merges cleanly. |
|
QA results for PR 1833: |
|
@srowen will this PR affect |
|
@yhuai It should not, as it only affects tests. Granted, the PR moves two apparently test-only classes out of I tried both of those commands, and I actually get a crash from the Scala compiler. Ominous, but, it was happening without this change too. I don't know what's up with my Scala. Jenkins thinks it's OK, although I don't think he's using SBT. Is there a specific way this could affect these commands that I should look out for? |
|
For those two commands, we import |
|
Ohh, I see that now. Hm. I definitely need to either determine it works fine, or find another solution that doesn't involve moving those classes. Now it looks like there certainly was a purpose to where they are at the moment. |
|
@yhuai OK, forget almost all of the PR. I narrowed it down to extending FunSuite only. That fixes the compile-time problem. It came from commit d2f4f30 Do you think it's OK? It doesn't affect things when you run mvn package, for sort of complex reasons. So in a way this is merely minor cleanup. If it is safe to weaken the superclass, maybe worthwhile. |
|
QA tests have started for PR 1833. This patch merges cleanly. |
|
Agh, you know what, there are other problems of this form once the build reaches the external/* modules. Test modules aren't seeing other test modules that they depend on unless test JARs are created. That's really the issue, not this code. I will separately try to see if the build can be coaxed into handling test-test dependency without "mvn package". |
|
QA results for PR 1833: |
…e#1833) This PR bumps Boson version to 0.3.14. Patch list https://github.pie.apple.com/pie/boson/compare/beab083...71936c7
Since recently, I find that the SQL modules' test code fails to compile with a simple
mvn clean compile test-compile.sql/corefails with a large number of errors, beginning like so:I think a couple files and dependencies are in the wrong place, and it is resolved with the following:
org.apache.spark.sql.test.TestSQLContextfrom undersql/core/src/main/scala, tosql/core/src/test/scala, which seems like where it belongs as test codeorg.apache.spark.sql.parquet.ParquetTestDatalikewise from main to testPlanTest, which appears to be catalyst-specific, instead ofFunSuite. It shouldn't, and isn't needed.sql/coretests onsql/catalysttests, which seems reversedsql/hivetests onsql/coretests to restore access to the files moved aboveWhat I'm still not clear on is why it has only started failing to compile in the last week or so. But, these seem like the right changes to make. It compiles and tests pass.