[SPARK-9758] [TEST] [SQL] Compilation issue for hive test / wrong package?#8307
[SPARK-9758] [TEST] [SQL] Compilation issue for hive test / wrong package?#8307srowen wants to merge 1 commit into
Conversation
…d org.apache.spark.sql.hive as they don't intend to test behavior from outside org.apache.spark.*
|
Test build #41405 has finished for PR 8307 at commit
|
|
I'd like to commit this one for 1.6, at least. I think it's worth moving into the apparent right place for 1.5 too to avoid merge conflicts and make sure the test is working as it seems to be intended to. |
|
LGTM, but it would be nice to hear from the original author what was the intent here. @chenghao-intel? |
|
Actually I told @chenghao-intel to do this. JavaDataFrameSuite should be in test.org.apache.spark.sql.hive. There was a case in which the JavaDataFrameSuite was testing a private[spark] or private[sql] method and assuming it was public. |
|
Discussed a bit with @srowen offline about this. It would be better to move all the API tests (e.g. RDDSuite, DataFrameSuite) to test.org.apache.spark, in order to properly test visibility. This is more useful in Scala than Java. |
|
Yeah I think the offline conclusion was -- go ahead with this to at least put things in a standardized state, and later break out API tests. |
…kage? Move `test.org.apache.spark.sql.hive` package tests to apparent intended `org.apache.spark.sql.hive` as they don't intend to test behavior from outside org.apache.spark.* Alternate take, per discussion at #8051 I think this is what vanzin and I had in mind but also CC rxin to cross-check, as this does indeed depend on whether these tests were accidentally in this package or not. Testing from a `test.org.apache.spark` package is legitimate but didn't seem to be the intent here. Author: Sean Owen <sowen@cloudera.com> Closes #8307 from srowen/SPARK-9758. (cherry picked from commit cb2d2e1) Signed-off-by: Sean Owen <sowen@cloudera.com>
Move
test.org.apache.spark.sql.hivepackage tests to apparent intendedorg.apache.spark.sql.hiveas they don't intend to test behavior from outside org.apache.spark.*Alternate take, per discussion at #8051
I think this is what @vanzin and I had in mind but also CC @rxin to cross-check, as this does indeed depend on whether these tests were accidentally in this package or not. Testing from a
test.org.apache.sparkpackage is legitimate but didn't seem to be the intent here.