LakshSingla commented on code in PR #16607:
URL: https://github.com/apache/druid/pull/16607#discussion_r1643002945
##########
processing/src/main/java/org/apache/druid/segment/serde/ComplexMetricSerde.java:
##########
@@ -115,11 +115,13 @@ public Function<Object, Long> inputSizeFn()
*/
public byte[] toBytes(@Nullable Object val)
{
- if (val != null) {
+ if (val == null) {
+ return ByteArrays.EMPTY_ARRAY;
+ } else if (val instanceof byte[]) {
+ return (byte[]) val;
+ } else {
Review Comment:
np! Since the issue is bubbling up from the column value selectors, you can
check who creates those, and why they are returning a byte array instead of the
desired object type.
--
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]