use of org.apache.druid.segment.writeout.SegmentWriteOutMedium in project druid by druid-io.
the class CompressedFloatsSerdeTest method testTooManyValues.
// this test takes ~30 minutes to run
@Ignore
@Test
public void testTooManyValues() throws IOException {
expectedException.expect(ColumnCapacityExceededException.class);
expectedException.expectMessage(ColumnCapacityExceededException.formatMessage("test"));
try (SegmentWriteOutMedium segmentWriteOutMedium = TmpFileSegmentWriteOutMediumFactory.instance().makeSegmentWriteOutMedium(temporaryFolder.newFolder())) {
ColumnarFloatsSerializer serializer = CompressionFactory.getFloatSerializer("test", segmentWriteOutMedium, "test", order, compressionStrategy);
serializer.open();
final long numRows = Integer.MAX_VALUE + 100L;
for (long i = 0L; i < numRows; i++) {
serializer.add(ThreadLocalRandom.current().nextFloat());
}
}
}
Aggregations