From 3249066bb5e929642c2e1564424b329e69027373 Mon Sep 17 00:00:00 2001 From: Laksh Singla Date: Thu, 7 Sep 2023 23:40:27 +0530 Subject: [PATCH] remove tests that relied on numeric arrays being unsupported --- .../druid/frame/write/FrameWritersTest.java | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/processing/src/test/java/org/apache/druid/frame/write/FrameWritersTest.java b/processing/src/test/java/org/apache/druid/frame/write/FrameWritersTest.java index 42ed468ec8c3..9d359eed05e0 100644 --- a/processing/src/test/java/org/apache/druid/frame/write/FrameWritersTest.java +++ b/processing/src/test/java/org/apache/druid/frame/write/FrameWritersTest.java @@ -75,42 +75,6 @@ public void test_columnar() Assert.assertEquals(ALLOCATOR_CAPACITY, factory.allocatorCapacity()); } - @Test - public void test_rowBased_unsupportedSortingColumnType() - { - final UnsupportedColumnTypeException e = Assert.assertThrows( - UnsupportedColumnTypeException.class, - () -> FrameWriters.makeFrameWriterFactory( - FrameType.ROW_BASED, - new ArenaMemoryAllocatorFactory(ALLOCATOR_CAPACITY), - RowSignature.builder().add("x", ColumnType.LONG_ARRAY).build(), - Collections.singletonList(new KeyColumn("x", KeyOrder.ASCENDING)) - ) - ); - - Assert.assertEquals("x", e.getColumnName()); - Assert.assertEquals(ColumnType.LONG_ARRAY, e.getColumnType()); - } - - @Test - public void test_rowBased_unsupportedNonSortingColumnType() - { - final FrameWriterFactory factory = FrameWriters.makeFrameWriterFactory( - FrameType.ROW_BASED, - new ArenaMemoryAllocatorFactory(ALLOCATOR_CAPACITY), - RowSignature.builder().add("x", ColumnType.LONG_ARRAY).build(), - Collections.emptyList() - ); - - final UnsupportedColumnTypeException e = Assert.assertThrows( - UnsupportedColumnTypeException.class, - () -> factory.newFrameWriter(new AllNullColumnSelectorFactory()) - ); - - Assert.assertEquals("x", e.getColumnName()); - Assert.assertEquals(ColumnType.LONG_ARRAY, e.getColumnType()); - } - @Test public void test_columnar_unsupportedColumnType() {