virajjasani commented on code in PR #2210:
URL: https://github.com/apache/phoenix/pull/2210#discussion_r2190772716


##########
phoenix-core-client/src/main/java/org/apache/phoenix/expression/function/BsonValueFunction.java:
##########
@@ -166,6 +166,8 @@ public boolean evaluate(Tuple tuple, ImmutableBytesWritable 
ptr) {
             ptr.set(PVarbinaryEncoded.INSTANCE.toBytes(((BsonBinary) 
bsonValue).getData()));
         } else if (bsonValueDataType == PDate.INSTANCE && bsonValue instanceof 
BsonDateTime) {
             ptr.set(PDate.INSTANCE.toBytes(new Date(((BsonDateTime) 
bsonValue).getValue())));
+        } else if (bsonValueDataType == PBson.INSTANCE && bsonValue instanceof 
RawBsonDocument) {

Review Comment:
   `RawBsonDocument extends BsonDocument` so let's use `BsonDocument` here



-- 
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: issues-unsubscr...@phoenix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to