protected List<ResolvedExpression> resolveSQLFilterToExpression(
      String sqlExp, ResolvedSchema schema) {
    StreamTableEnvironmentImpl tbImpl = (StreamTableEnvironmentImpl) tEnv;

    FlinkContext ctx = ((PlannerBase) tbImpl.getPlanner()).getFlinkContext();
    CatalogManager catMan = tbImpl.getCatalogManager();
    FunctionCatalog funCat = ctx.getFunctionCatalog();
    RowType sourceType = (RowType) schema.toSourceRowDataType().getLogicalType();
    ClassLoader classLoader = tEnv.getClass().getClassLoader();
    FlinkTypeFactory typeFactory = new FlinkTypeFactory(classLoader, FlinkTypeSystem.INSTANCE);
    RexNodeToExpressionConverter converter =
        new RexNodeToExpressionConverter(
            new RexBuilder(typeFactory),
            sourceType.getFieldNames().toArray(new String[0]),
            funCat,
            catMan,
            TimeZone.getTimeZone(tEnv.getConfig().getLocalTimeZone()));

    RexNodeExpression rexExp =
        (RexNodeExpression) tbImpl.getParser().parseSqlExpression(sqlExp, sourceType, null);
    ResolvedExpression resolvedExp =
        rexExp
            .getRexNode()
            .accept(converter)
            .getOrElse(
                () -> {
                  throw new IllegalArgumentException(
                      "Cannot convert "
                          + rexExp.getRexNode()
                          + " to Expression, this likely "
                          + "means you used some function(s) not "
                          + "supported with this setup.");
                });
    ExpressionResolver resolver =
        ExpressionResolver.resolverFor(
                tEnv.getConfig(),
                classLoader,
                name -> Optional.empty(),
                funCat.asLookup(
                    str -> {
                      throw new TableException(
                          "We should not need to lookup any expressions at this point");
                    }),
                catMan.getDataTypeFactory(),
                (sqlExpression, inputRowType, outputType) -> {
                  throw new TableException(
                      "SQL expression parsing is not supported at this location.");
                })
            .build();
    return resolver.resolve(Collections.singletonList(resolvedExp));
  }
This method takes in an SQL filter expression and a ResolvedSchema object, and returns a List
of ResolvedExpression objects.
amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common/src/test/java/org/apache/amoro/flink/lookup/filter/TestRowDataPredicateBase.java