test_class.file: core/src/test/java/com/dtstack/flink/sql/side/SidePredicatesParserTest.java
test_class.identifier: SidePredicatesParserTest
test_case.body: @Test
      public void testfillPredicatesForSideTable() throws SqlParseException {
          String testSql =
                  "insert  \n" +
                          "into\n" +
                          "    MyResult\n" +
                          "    select\n" +
                          "        MyTable.a,\n" +
                          "        MyTable.b,\n" +
                          "        s.c,\n" +
                          "        s.d\n" +
                          "    from\n" +
                          "        MyTable\n" +
                          "    join\n" +
                          "        sideTable s\n" +
                          "            on   MyTable.a = s.c\n" +
                          "    where\n" +
                          "           MyTable.a='1' and s.d='1' and  s.d <> '3' and s.c LIKE '%xx%' and s.c in ('1','2') and s.c between '10' and '23' and s.d is not null\n";
  
  
          AbstractSideTableInfo sideTableInfo = new AbstractSideTableInfo(){
              @Override
              public boolean check() {
                  return false;
              }
          };
  
          sideTableInfo.setName("sideTable");
  
          Map<String, AbstractSideTableInfo> sideTableMap = new HashMap<>();
          sideTableMap.put("sideTable", sideTableInfo);
  
          SidePredicatesParser sidePredicatesParser = new SidePredicatesParser();
          sidePredicatesParser.fillPredicatesForSideTable(testSql, sideTableMap);
          List<PredicateInfo> sideTablePredicateInfoes = sideTableMap.get("sideTable").getPredicateInfoes();
  
          List<PredicateInfo> expectedsPredicateInfoes = new ArrayList<>();
          expectedsPredicateInfoes.add(PredicateInfo.builder().setOperatorName("=").setOperatorKind("EQUALS").setOwnerTable("s").setFieldName("d").setCondition("'1'").build());
          expectedsPredicateInfoes.add(PredicateInfo.builder().setOperatorName("<>").setOperatorKind("NOT_EQUALS").setOwnerTable("s").setFieldName("d").setCondition("'3'").build());
          expectedsPredicateInfoes.add(PredicateInfo.builder().setOperatorName("LIKE").setOperatorKind("LIKE").setOwnerTable("s").setFieldName("c").setCondition("'%xx%'").build());
          expectedsPredicateInfoes.add(PredicateInfo.builder().setOperatorName("IN").setOperatorKind("IN").setOwnerTable("s").setFieldName("c").setCondition("'1', '2'").build());
          expectedsPredicateInfoes.add(PredicateInfo.builder().setOperatorName("BETWEEN ASYMMETRIC").setOperatorKind("BETWEEN").setOwnerTable("s").setFieldName("c").setCondition("'10' AND '23'").build());
          expectedsPredicateInfoes.add(PredicateInfo.builder().setOperatorName("IS NOT NULL").setOperatorKind("IS_NOT_NULL").setOwnerTable("s").setFieldName("d").setCondition("s.d").build());
  
  
          Assert.assertEquals(expectedsPredicateInfoes.toString(), sideTablePredicateInfoes.toString());
      }
test_case.class_method_signature: SidePredicatesParserTest.testfillPredicatesForSideTable()
test_case.full_signature: @Test public void testfillPredicatesForSideTable()
test_case.identifier: testfillPredicatesForSideTable
test_case.invocations: setName put fillPredicatesForSideTable getPredicateInfoes get add build setCondition setFieldName setOwnerTable setOperatorKind setOperatorName builder add build setCondition setFieldName setOwnerTable setOperatorKind setOperatorName builder add build setCondition setFieldName setOwnerTable setOperatorKind setOperatorName builder add build setCondition setFieldName setOwnerTable setOperatorKind setOperatorName builder add build setCondition setFieldName setOwnerTable setOperatorKind setOperatorName builder add build setCondition setFieldName setOwnerTable setOperatorKind setOperatorName builder assertEquals toString toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testfillPredicatesForSideTable()
focal_class.declarator: flinkPlanner = new FlinkPlanner()
focal_class.modifier: private
focal_class.original_string: private FlinkPlanner flinkPlanner = new FlinkPlanner();
focal_class.type: FlinkPlanner
focal_class.var_name: flinkPlanner
focal_class.file: core/src/main/java/com/dtstack/flink/sql/side/SidePredicatesParser.java
focal_class.identifier: SidePredicatesParser
focal_class.class_method_signature: SidePredicatesParser.fillPredicatesForSideTable(String exeSql, Map<String, AbstractSideTableInfo> sideTableMap)
focal_class.full_signature: public void fillPredicatesForSideTable(String exeSql, Map<String, AbstractSideTableInfo> sideTableMap)
focal_class.identifier: fillPredicatesForSideTable
focal_class.modifiers: public
focal_class.parameters: (String exeSql, Map<String, AbstractSideTableInfo> sideTableMap)
focal_class.return: void
focal_class.signature: void fillPredicatesForSideTable(String exeSql, Map<String, AbstractSideTableInfo> sideTableMap)
focal_class.class_method_signature: SidePredicatesParser.parseSql(SqlNode sqlNode, Map<String, AbstractSideTableInfo> sideTableMap, Map<String, String> tabMapping)
focal_class.full_signature: private void parseSql(SqlNode sqlNode, Map<String, AbstractSideTableInfo> sideTableMap, Map<String, String> tabMapping)
focal_class.identifier: parseSql
focal_class.modifiers: private
focal_class.parameters: (SqlNode sqlNode, Map<String, AbstractSideTableInfo> sideTableMap, Map<String, String> tabMapping)
focal_class.return: void
focal_class.signature: void parseSql(SqlNode sqlNode, Map<String, AbstractSideTableInfo> sideTableMap, Map<String, String> tabMapping)
focal_class.class_method_signature: SidePredicatesParser.fillToSideTableInfo(Map<String, AbstractSideTableInfo> sideTableMap, Map<String, String> tabMapping, List<PredicateInfo> predicateInfoList)
focal_class.full_signature: private void fillToSideTableInfo(Map<String, AbstractSideTableInfo> sideTableMap, Map<String, String> tabMapping, List<PredicateInfo> predicateInfoList)
focal_class.identifier: fillToSideTableInfo
focal_class.modifiers: private
focal_class.parameters: (Map<String, AbstractSideTableInfo> sideTableMap, Map<String, String> tabMapping, List<PredicateInfo> predicateInfoList)
focal_class.return: void
focal_class.signature: void fillToSideTableInfo(Map<String, AbstractSideTableInfo> sideTableMap, Map<String, String> tabMapping, List<PredicateInfo> predicateInfoList)
focal_class.class_method_signature: SidePredicatesParser.extractPredicateInfo(SqlNode whereNode, List<PredicateInfo> predicatesInfoList)
focal_class.full_signature: private void extractPredicateInfo(SqlNode whereNode, List<PredicateInfo> predicatesInfoList)
focal_class.identifier: extractPredicateInfo
focal_class.modifiers: private
focal_class.parameters: (SqlNode whereNode, List<PredicateInfo> predicatesInfoList)
focal_class.return: void
focal_class.signature: void extractPredicateInfo(SqlNode whereNode, List<PredicateInfo> predicatesInfoList)
focal_class.class_method_signature: SidePredicatesParser.fillPredicateInfoToList(SqlBasicCall whereNode, List<PredicateInfo> predicatesInfoList, String operatorName, SqlKind operatorKind,
                                           int fieldIndex, int conditionIndex)
focal_class.full_signature: private void fillPredicateInfoToList(SqlBasicCall whereNode, List<PredicateInfo> predicatesInfoList, String operatorName, SqlKind operatorKind,
                                           int fieldIndex, int conditionIndex)
focal_class.identifier: fillPredicateInfoToList
focal_class.modifiers: private
focal_class.parameters: (SqlBasicCall whereNode, List<PredicateInfo> predicatesInfoList, String operatorName, SqlKind operatorKind,
                                           int fieldIndex, int conditionIndex)
focal_class.return: void
focal_class.signature: void fillPredicateInfoToList(SqlBasicCall whereNode, List<PredicateInfo> predicatesInfoList, String operatorName, SqlKind operatorKind,
                                           int fieldIndex, int conditionIndex)
focal_method.body: public void fillPredicatesForSideTable(String exeSql, Map<String, AbstractSideTableInfo> sideTableMap) throws SqlParseException {
          SqlNode sqlNode = flinkPlanner.getParser().parse(exeSql);
          parseSql(sqlNode, sideTableMap, Maps.newHashMap());
      }
focal_method.class_method_signature: SidePredicatesParser.fillPredicatesForSideTable(String exeSql, Map<String, AbstractSideTableInfo> sideTableMap)
focal_method.full_signature: public void fillPredicatesForSideTable(String exeSql, Map<String, AbstractSideTableInfo> sideTableMap)
focal_method.identifier: fillPredicatesForSideTable
focal_method.invocations: parse getParser parseSql newHashMap
focal_method.modifiers: public
focal_method.parameters: (String exeSql, Map<String, AbstractSideTableInfo> sideTableMap)
focal_method.return: void
focal_method.signature: void fillPredicatesForSideTable(String exeSql, Map<String, AbstractSideTableInfo> sideTableMap)