Skip to content

Commit 2b9db87

Browse files
committed
Assert results variable instead of dataFrame. (#1311)
1 parent ae77e1c commit 2b9db87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spark/sql-13/src/itest/java/org/elasticsearch/spark/integration/AbstractJavaEsSparkSQLTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ public void testBasicRead() throws Exception {
9595
assertEquals(5, dataFrame.take(5).length);
9696
DataFrame results = sqc
9797
.sql("SELECT name FROM datfile WHERE id >=1 AND id <=10");
98-
assertEquals(10, dataFrame.take(10).length);
98+
assertEquals(10, results.take(10).length);
99+
assertEquals(10L, results.count());
99100
}
100101

101102
@Test

0 commit comments

Comments
 (0)