kgyrtkirk commented on code in PR #16658:
URL: https://github.com/apache/druid/pull/16658#discussion_r1745311713
##########
processing/src/test/java/org/apache/druid/query/rowsandcols/semantic/RowsAndColumnsDecoratorTest.java:
##########
@@ -214,6 +218,39 @@ public void testDecorationWithListOfResultRows()
}
}
+ @Test
+ public void testDecoratorWithColumnBasedFrameRAC()
+ {
+ RowSignature siggy = RowSignature.builder()
+ .add("colA", ColumnType.LONG)
+ .add("colB", ColumnType.LONG)
+ .build();
+
+ Object[][] vals = new Object[][]{
+ {1L, 4L},
+ {2L, -4L},
+ {3L, 3L},
+ {4L, -3L},
+ {5L, 4L},
+ {6L, 82L},
+ {7L, -90L},
+ {8L, 4L},
+ {9L, 0L},
+ {10L, 0L}
+ };
+
+ MapOfColumnsRowsAndColumns input = MapOfColumnsRowsAndColumns.fromMap(
+ ImmutableMap.of(
+ "colA", new IntArrayColumn(new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9,
10}),
+ "colB", new IntArrayColumn(new int[]{4, -4, 3, -3, 4, 82, -90, 4,
0, 0})
+ )
+ );
+
+ ColumnBasedFrameRowsAndColumns frc =
ColumnBasedFrameRowsAndColumnsTest.buildFrame(input);
Review Comment:
I was thinking if this creation could be generailzed by adding it to
`RowsAndColumnsTestBase#MAKERS` - or that's not really usefull?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]