srowen commented on a change in pull request #24302: [SPARK-27392][SQL]
TestHive test tables should be placed in shared test state, not per session
URL: https://github.com/apache/spark/pull/24302#discussion_r273969146
##########
File path:
mllib/src/test/java/org/apache/spark/mllib/regression/JavaRidgeRegressionSuite.java
##########
@@ -55,7 +56,8 @@ public void runRidgeRegressionUsingConstructor() {
int numFeatures = 20;
List<LabeledPoint> data = generateRidgeData(2 * numExamples, numFeatures,
10.0);
- JavaRDD<LabeledPoint> testRDD = jsc.parallelize(data.subList(0,
numExamples));
+ JavaRDD<LabeledPoint> testRDD = jsc.parallelize(
+ new ArrayList<LabeledPoint>(data.subList(0, numExamples)));
Review comment:
Why this change? I don't see how it relates, or why a view of the list would
be an issue here.
----------------------------------------------------------------
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]