Github user paul-rogers commented on a diff in the pull request:

    https://github.com/apache/drill/pull/1045#discussion_r162251468
  
    --- Diff: 
exec/java-exec/src/test/java/org/apache/drill/test/OperatorFixture.java ---
    @@ -351,8 +603,110 @@ public OperatorStats getStats() {
         }
       }
     
    -  public OperatorContext operatorContext(PhysicalOperator config) {
    -    return new TestOperatorContext(context, allocator(), config, stats);
    +  public static class MockPhysicalOperator implements PhysicalOperator {
    --- End diff --
    
    Seems overkill. Most times, a test that needs an operator will provide one. 
The dummy one that was in this code (or maybe in my latest PR) handles those 
cases where we don't even have an operator (record batch) so any operator 
(definition) will do.


---

Reply via email to