Github user hyunsik commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/1016#discussion_r63132708
  
    --- Diff: 
tajo-core-tests/src/test/java/org/apache/tajo/engine/eval/TestEvalTree.java ---
    @@ -385,4 +384,34 @@ private void assertCloneEqual(EvalNode eval) throws 
CloneNotSupportedException {
         assertEquals(eval, copy);
         assertFalse(eval == copy);
       }
    +
    +  @Test
    +  public final void testHashAndEqual() {
    +    EvalNode e1 = new BinaryEval(EvalType.EQUAL,
    +        new FieldEval("default.n1.n_nationkey", TypeFactory.create(INT4)),
    +        new FieldEval("default.n2.n_nationkey", TypeFactory.create(INT4))
    +    );
    +
    +    EvalNode e2 = new BinaryEval(EvalType.EQUAL,
    +        new FieldEval("default.n1.n_name", TypeFactory.create(INT4)),
    +        new FieldEval("default.n2.n_name", TypeFactory.create(INT4))
    +    );
    +
    +    EvalNode e3 = new BinaryEval(EvalType.EQUAL,
    +        new FieldEval("default.n1.n_regionkey", TypeFactory.create(INT4)),
    +        new FieldEval("default.n2.n_regionkey", TypeFactory.create(INT4))
    +    );
    +
    +    EvalNode e4 = new BinaryEval(EvalType.EQUAL,
    +        new FieldEval("default.n1.n_comment", TypeFactory.create(TEXT)),
    +        new FieldEval("default.n2.n_comment", TypeFactory.create(TEXT))
    +    );
    +
    +    FieldEval f1 = new FieldEval("default.n1.n_nationkey", 
TypeFactory.create(INT4));
    +    System.out.println(f1.hashCode());
    --- End diff --
    
    Actually, I made this test for debugging. I removed the test and inserted 
the comparison of hash code to TestEvalTree::assertCloneEqual, which is widely 
used in TestEvalTree.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to