Skip to content

Conversation

@srowen
Copy link
Member

@srowen srowen commented Aug 19, 2015

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.

…d org.apache.spark.sql.hive as they don't intend to test behavior from outside org.apache.spark.*
@SparkQA
Copy link

SparkQA commented Aug 22, 2015

Test build #41405 has finished for PR 8307 at commit 7379cd9.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • public class JavaDataFrameSuite
    • public class JavaMetastoreDataSourcesSuite
    • public class MyDoubleAvg extends UserDefinedAggregateFunction
    • public class MyDoubleSum extends UserDefinedAggregateFunction
    • public class UDFIntegerToString extends UDF
    • public class UDFListListInt extends UDF
    • public class UDFListString extends UDF
    • public class UDFStringString extends UDF
    • public class UDFTwoListList extends UDF

@srowen
Copy link
Member Author

srowen commented Aug 24, 2015

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.

@vanzin
Copy link
Contributor

vanzin commented Aug 24, 2015

LGTM, but it would be nice to hear from the original author what was the intent here. @chenghao-intel?

@rxin
Copy link
Contributor

rxin commented Aug 24, 2015

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.

@rxin
Copy link
Contributor

rxin commented Aug 24, 2015

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.

@srowen
Copy link
Member Author

srowen commented Aug 24, 2015

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.

asfgit pushed a commit that referenced this pull request Aug 24, 2015
…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 <[email protected]>

Closes #8307 from srowen/SPARK-9758.

(cherry picked from commit cb2d2e1)
Signed-off-by: Sean Owen <[email protected]>
@asfgit asfgit closed this in cb2d2e1 Aug 24, 2015
@srowen srowen deleted the SPARK-9758 branch August 25, 2015 07:46
@andrewor14 andrewor14 mentioned this pull request Sep 1, 2015
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.

4 participants