snleee commented on code in PR #10563: URL: https://github.com/apache/pinot/pull/10563#discussion_r1163651060
########## pinot-core/src/test/java/org/apache/pinot/core/operator/transform/function/ArrayBaseTransformFunctionTest.java: ########## @@ -76,6 +78,101 @@ public void testArrayTransformFunction() { } } + @Test + public void testArrayNullColumn() { + ExpressionContext expression = + RequestContextUtils.getExpression(String.format("%s(%s)", getFunctionName(), INT_MV_NULL_COLUMN)); + TransformFunction transformFunction = TransformFunctionFactory.get(expression, _dataSourceMap); + Assert.assertEquals(transformFunction.getClass().getName(), getArrayFunctionClass().getName()); + Assert.assertEquals(transformFunction.getName(), getFunctionName()); + Assert.assertEquals(transformFunction.getResultMetadata().getDataType(), getResultDataType(FieldSpec.DataType.INT)); + Assert.assertTrue(transformFunction.getResultMetadata().isSingleValue()); + Assert.assertFalse(transformFunction.getResultMetadata().hasDictionary()); + + switch (getResultDataType(FieldSpec.DataType.INT)) { + case INT: + Pair<int[], RoaringBitmap> intResults = transformFunction.transformToIntValuesSVWithNull(_projectionBlock); Review Comment: I think that `SV` here represents the output. For instance, the output of `ArrayAvg` is single value. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org