assertNull(DwrfMetadataReader.toStringStatistics( HiveWriterVersion.ORIGINAL, DwrfProto.StringStatistics.newBuilder() DwrfMetadataReader.toStringStatistics( HiveWriterVersion.ORC_HIVE_8732, DwrfProto.StringStatistics.newBuilder() DwrfMetadataReader.toStringStatistics( HiveWriterVersion.ORIGINAL, DwrfProto.StringStatistics.newBuilder() DwrfMetadataReader.toStringStatistics( HiveWriterVersion.ORC_HIVE_8732, DwrfProto.StringStatistics.newBuilder() new StringStatistics(Slices.utf8Slice("ant"), null, 0)); assertEquals( DwrfMetadataReader.toStringStatistics( HiveWriterVersion.ORC_HIVE_8732, DwrfProto.StringStatistics.newBuilder() DwrfMetadataReader.toStringStatistics( HiveWriterVersion.ORC_HIVE_8732, DwrfProto.StringStatistics.newBuilder()
private static void testStringStatisticsTruncation(Slice testValue, HiveWriterVersion version) DwrfMetadataReader.toStringStatistics( version, DwrfProto.StringStatistics.newBuilder() createExpectedStringStatistics(version, testValue, testValue, 79)); assertEquals( DwrfMetadataReader.toStringStatistics( version, DwrfProto.StringStatistics.newBuilder() createExpectedStringStatistics(version, testValue, null, 79)); assertEquals( DwrfMetadataReader.toStringStatistics( version, DwrfProto.StringStatistics.newBuilder()
statistics.hasIntStatistics() ? toIntegerStatistics(statistics.getIntStatistics()) : null, statistics.hasDoubleStatistics() ? toDoubleStatistics(statistics.getDoubleStatistics()) : null, statistics.hasStringStatistics() ? toStringStatistics(hiveWriterVersion, statistics.getStringStatistics(), isRowGroup) : null, null, null,
private static ColumnStatistics toColumnStatistics(OrcProto.ColumnStatistics statistics, boolean isRowGroup) { return new ColumnStatistics( statistics.getNumberOfValues(), toBooleanStatistics(statistics.getBucketStatistics()), toIntegerStatistics(statistics.getIntStatistics()), toDoubleStatistics(statistics.getDoubleStatistics()), toStringStatistics(statistics.getStringStatistics(), isRowGroup), null); }
assertNull(DwrfMetadataReader.toStringStatistics( HiveWriterVersion.ORIGINAL, DwrfProto.StringStatistics.newBuilder() DwrfMetadataReader.toStringStatistics( HiveWriterVersion.ORC_HIVE_8732, DwrfProto.StringStatistics.newBuilder() DwrfMetadataReader.toStringStatistics( HiveWriterVersion.ORIGINAL, DwrfProto.StringStatistics.newBuilder() DwrfMetadataReader.toStringStatistics( HiveWriterVersion.ORC_HIVE_8732, DwrfProto.StringStatistics.newBuilder() new StringStatistics(Slices.utf8Slice("ant"), null, 0)); assertEquals( DwrfMetadataReader.toStringStatistics( HiveWriterVersion.ORC_HIVE_8732, DwrfProto.StringStatistics.newBuilder() DwrfMetadataReader.toStringStatistics( HiveWriterVersion.ORC_HIVE_8732, DwrfProto.StringStatistics.newBuilder()
private static void testStringStatisticsTruncation(Slice testValue, HiveWriterVersion version) DwrfMetadataReader.toStringStatistics( version, DwrfProto.StringStatistics.newBuilder() createExpectedStringStatistics(version, testValue, testValue, 79)); assertEquals( DwrfMetadataReader.toStringStatistics( version, DwrfProto.StringStatistics.newBuilder() createExpectedStringStatistics(version, testValue, null, 79)); assertEquals( DwrfMetadataReader.toStringStatistics( version, DwrfProto.StringStatistics.newBuilder()
statistics.hasIntStatistics() ? toIntegerStatistics(statistics.getIntStatistics()) : null, statistics.hasDoubleStatistics() ? toDoubleStatistics(statistics.getDoubleStatistics()) : null, statistics.hasStringStatistics() ? toStringStatistics(hiveWriterVersion, statistics.getStringStatistics(), isRowGroup) : null, null, null,