@Test
  public void testDifferentInspectorsEquals() {
    StructTypeInfo nestedStructX = createNestedStruct(TypeInfoFactory.getPrimitiveTypeInfo("int"), 100);
    StructTypeInfo nestedStructY = createNestedStruct(TypeInfoFactory.getPrimitiveTypeInfo("bigint"), 100);
    ArrayWritableObjectInspector inspectorX = new ArrayWritableObjectInspector(true, nestedStructX, null);
    ArrayWritableObjectInspector inspectorY = new ArrayWritableObjectInspector(true, nestedStructY, null);
    Assert.assertNotEquals(inspectorX, inspectorY);
    Assert.assertNotEquals(inspectorX.hashCode(), inspectorY.hashCode());
  }
Regression tests for HIVE-21796: equals and hash takes forever if HIVE-21796 is reverted / reintroduced.
ql/src/test/org/apache/hadoop/hive/ql/io/parquet/serde/TestArrayWritableObjectInspector.java