yashmayya commented on code in PR #16570:
URL: https://github.com/apache/pinot/pull/16570#discussion_r2276743365


##########
pinot-query-runtime/src/test/java/org/apache/pinot/query/runtime/operator/IntersectOperatorTest.java:
##########
@@ -115,4 +116,40 @@ public void testDedup() {
       Assert.assertEquals(resultRows.get(i), expectedRows.get(i));
     }
   }
+
+  @Test
+  public void testErrorBlockRightChild() {
+    DataSchema schema = new DataSchema(new String[]{"int_col", "string_col"}, 
new DataSchema.ColumnDataType[]{
+        DataSchema.ColumnDataType.INT, DataSchema.ColumnDataType.STRING
+    });
+    Mockito.when(_leftOperator.nextBlock())
+        .thenReturn(OperatorTestUtil.block(schema, new Object[]{1, "AA"}, new 
Object[]{2, "BB"}))
+        .thenReturn(SuccessMseBlock.INSTANCE);
+    Mockito.when(_rightOperator.nextBlock())
+        .thenReturn(ErrorMseBlock.fromException(new RuntimeException("Error in 
right operator")));

Review Comment:
   https://github.com/apache/pinot/pull/16601



-- 
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]

Reply via email to