public Boolean call(Row row) throws Exception {
return row.getString("name").equals("B");
}
}).cache();
Assert.assertEquals(1, filtered.count());
Assert.assertEquals(2, filtered.first().getInt("id").intValue());
}
@Test
public void union() {
JavaTableRDD a = sc.sql2rdd("select * from users_java where name = \"A\"");