xiangfu0 commented on code in PR #9287:
URL: https://github.com/apache/pinot/pull/9287#discussion_r956523816
##########
pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/BaseTransformFunction.java:
##########
@@ -324,6 +339,17 @@ public String[] transformToStringValuesSV(ProjectionBlock
projectionBlock) {
BigDecimal[] bigDecimalValues =
transformToBigDecimalValuesSV(projectionBlock);
ArrayCopyUtils.copy(bigDecimalValues, _stringValuesSV, length);
break;
+ case BOOLEAN:
+ intValues = transformToIntValuesSV(projectionBlock);
+ for (int i = 0; i < length; i++) {
+ _stringValuesSV[i] = Boolean.toString(intValues[i] == 1);
+ }
+ break;
+ case TIMESTAMP:
+ longValues = transformToLongValuesSV(projectionBlock);
+ for (int i = 0; i < length; i++) {
+ _stringValuesSV[i] = new Timestamp(longValues[i]).toString();
+ }
Review Comment:
missing break;
--
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]