try (ConnectorPageSource pageSource = pageSourceProvider.createPageSource(split, columnHandles)) {
assertPageSourceType(pageSource, "rcfile-binary");
MaterializedResult result = materializeSourceDataStream(SESSION, pageSource, getTypes(columnHandles));
assertEquals(result.getRowCount(), 3);
MaterializedRow row;
row = result.getMaterializedRows().get(0);
assertEquals(row.getField(0), 1L);
assertEquals(row.getField(1), "hello");
assertEquals(row.getField(2), 123L);
assertEquals(row.getField(3), 43.5);
assertEquals(row.getField(4), true);
row = result.getMaterializedRows().get(1);
assertEquals(row.getField(0), 2L);
assertNull(row.getField(1));
assertNull(row.getField(2));
assertNull(row.getField(3));
assertNull(row.getField(4));
row = result.getMaterializedRows().get(2);
assertEquals(row.getField(0), 3L);
assertEquals(row.getField(1), "bye");
assertEquals(row.getField(2), 456L);
assertEquals(row.getField(3), 98.1);
assertEquals(row.getField(4), false);
}
}