Skip to content

Commit 6ad0ebb

Browse files
committed
Fix JavaHashingTFSuite ClassCastException
1 parent 677ff27 commit 6ad0ebb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mllib/src/test/java/org/apache/spark/ml/feature/JavaHashingTFSuite.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ public void tearDown() {
5555
@Test
5656
public void hashingTF() {
5757
JavaRDD<Row> jrdd = jsc.parallelize(Lists.newArrayList(
58-
RowFactory.create(0, "Hi I heard about Spark"),
59-
RowFactory.create(0, "I wish Java could use case classes"),
60-
RowFactory.create(1, "Logistic regression models are neat")
58+
RowFactory.create(0.0, "Hi I heard about Spark"),
59+
RowFactory.create(0.0, "I wish Java could use case classes"),
60+
RowFactory.create(1.0, "Logistic regression models are neat")
6161
));
6262
StructType schema = new StructType(new StructField[]{
6363
new StructField("label", DataTypes.DoubleType, false, Metadata.empty()),

0 commit comments

Comments
 (0)