@Test
  public void testBuilderFloat() throws Exception {
    SearchArgumentImpl sarg = (SearchArgumentImpl)
        SearchArgumentFactory.newBuilder()
            .startAnd()
            .lessThan("x", PredicateLeaf.Type.LONG, 22L)
            .lessThan("x1", PredicateLeaf.Type.LONG, 22L)
            .lessThanEquals("y", PredicateLeaf.Type.STRING,
                new HiveChar("hi", 10).toString())
            .equals("z", PredicateLeaf.Type.FLOAT, Double.valueOf(0.22))
            .equals("z1", PredicateLeaf.Type.FLOAT, Double.valueOf(0.22))
            .end()
            .build();
    assertEquals("leaf-0 = (LESS_THAN x 22), " +
        "leaf-1 = (LESS_THAN x1 22), " +
        "leaf-2 = (LESS_THAN_EQUALS y hi        ), " +
        "leaf-3 = (EQUALS z 0.22), " +
        "leaf-4 = (EQUALS z1 0.22), " +
        "expr = (and leaf-0 leaf-1 leaf-2 leaf-3 leaf-4)", sarg.toOldString());
  }
Create a predicate leaf. This is used by another test.
ql/src/test/org/apache/hadoop/hive/ql/io/sarg/TestSearchArgumentImpl.java