public FilterPredicateLeafBuilder getLeafFilterBuilderByType(
      PredicateLeaf.Type type,
      Type parquetType) throws HiveException {
    switch (type){
      case LONG:
      case FLOAT:
      case STRING:  // string, char, varchar
      case BOOLEAN:
        return getLeafFilterBuilderByParquetType(parquetType);
      case DATE:
      case DECIMAL:
      case TIMESTAMP:
      default:
        String msg = String.format(FILTER_PREDICATE_CONVERSION_NOT_SUPPORTED, type);
        LOG.debug(msg);
        throw new HiveException(msg);
    }
  }
get leaf filter builder by FilterPredicateType, currently date, decimal and timestamp is not
supported yet.
@param type FilterPredicateType
@return
@throws HiveException Exception is thrown for unsupported data types so we can skip filtering
ql/src/java/org/apache/hadoop/hive/ql/io/parquet/LeafFilterFactory.java