mneedham commented on a change in pull request #8001:
URL: https://github.com/apache/pinot/pull/8001#discussion_r784971718
##########
File path:
pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/BaseTransformFunction.java
##########
@@ -79,6 +79,21 @@ public Dictionary getDictionary() {
throw new UnsupportedOperationException();
}
+ protected String notBytesErrorMessage(TransformFunction transformFunction) {
+ return String.format("The argument must be of type %s , but was %s",
+ DataType.BYTES,
+ transformFunction.getResultMetadata().getDataType()
+ );
Review comment:
@walterddr sounds good to me. I only made that extra function as the
current error message doesn't mention the position of the argument if there's
only one.
--
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]