use of io.prestosql.plugin.hive.HiveStorageFormat.RCTEXT in project hetu-core by openlookeng.
the class TestHiveFileFormats method testRCText.
@Test(dataProvider = "rowCount")
public void testRCText(int rowCount) throws Exception {
List<TestColumn> testColumns = ImmutableList.copyOf(filter(TEST_COLUMNS, testColumn -> {
// RC file does not support complex type as key of a map
return !testColumn.getName().equals("t_struct_null") && !testColumn.getName().equals("t_map_null_key_complex_key_value");
}));
assertThatFileFormat(RCTEXT).withColumns(testColumns).withRowsCount(rowCount).isReadableByRecordCursor(new GenericHiveRecordCursorProvider(HDFS_ENVIRONMENT));
}
use of io.prestosql.plugin.hive.HiveStorageFormat.RCTEXT in project boostkit-bigdata by kunpengcompute.
the class TestHiveFileFormats method testRCText.
@Test(dataProvider = "rowCount")
public void testRCText(int rowCount) throws Exception {
List<TestColumn> testColumns = ImmutableList.copyOf(filter(TEST_COLUMNS, testColumn -> {
// RC file does not support complex type as key of a map
return !testColumn.getName().equals("t_struct_null") && !testColumn.getName().equals("t_map_null_key_complex_key_value");
}));
assertThatFileFormat(RCTEXT).withColumns(testColumns).withRowsCount(rowCount).isReadableByRecordCursor(new GenericHiveRecordCursorProvider(HDFS_ENVIRONMENT));
}
Aggregations