test_class.file: core/src/test/java/com/dtstack/flink/sql/parser/SqlParserTest.java
test_class.identifier: SqlParserTest
test_case.body: @Test
      public void testRemoveAddFileStmt() throws Exception {
          List<String> rawStmts = new ArrayList<>();
          String sql1 = "        add    file     asdasdasd   ";
          String sql2 = "        aDd    fIle    With    asdasdasd   ";
          String sql3 = "        INSERT INTO dwd_foo SELECT id, name FROM ods_foo";
          String sql4 = "        ADD  FILE   asb    ";
          rawStmts.add(sql1);
          rawStmts.add(sql2);
          rawStmts.add(sql3);
          rawStmts.add(sql4);
  
          List<String> stmts = Whitebox.invokeMethod(SqlParser.class, "removeAddFileStmt", rawStmts);
          Assert.assertEquals(stmts.get(0), sql3);
      }
test_case.class_method_signature: SqlParserTest.testRemoveAddFileStmt()
test_case.full_signature: @Test public void testRemoveAddFileStmt()
test_case.identifier: testRemoveAddFileStmt
test_case.invocations: add add add add invokeMethod assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRemoveAddFileStmt()
focal_class.declarator: SQL_DELIMITER = ';'
focal_class.modifier: private static final
focal_class.original_string: private static final char SQL_DELIMITER = ';';
focal_class.type: char
focal_class.var_name: SQL_DELIMITER
focal_class.declarator: LOCAL_SQL_PLUGIN_ROOT
focal_class.modifier: private static
focal_class.original_string: private static String LOCAL_SQL_PLUGIN_ROOT;
focal_class.type: String
focal_class.var_name: LOCAL_SQL_PLUGIN_ROOT
focal_class.declarator: sqlParserList = Lists.newArrayList(CreateFuncParser.newInstance(),
              CreateTableParser.newInstance(), InsertSqlParser.newInstance(), CreateTmpTableParser.newInstance())
focal_class.modifier: private static
focal_class.original_string: private static List<IParser> sqlParserList = Lists.newArrayList(CreateFuncParser.newInstance(),
              CreateTableParser.newInstance(), InsertSqlParser.newInstance(), CreateTmpTableParser.newInstance());
focal_class.type: List<IParser>
focal_class.var_name: sqlParserList
focal_class.declarator: ADD_FIlE_PATTERN = Pattern.compile("(?i).*add\\s+file\\s+.+")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern ADD_FIlE_PATTERN = Pattern.compile("(?i).*add\\s+file\\s+.+");
focal_class.type: Pattern
focal_class.var_name: ADD_FIlE_PATTERN
focal_class.file: core/src/main/java/com/dtstack/flink/sql/parser/SqlParser.java
focal_class.identifier: SqlParser
focal_class.class_method_signature: SqlParser.setLocalSqlPluginRoot(String localSqlPluginRoot)
focal_class.full_signature: public static void setLocalSqlPluginRoot(String localSqlPluginRoot)
focal_class.identifier: setLocalSqlPluginRoot
focal_class.modifiers: public static
focal_class.parameters: (String localSqlPluginRoot)
focal_class.return: void
focal_class.signature: void setLocalSqlPluginRoot(String localSqlPluginRoot)
focal_class.class_method_signature: SqlParser.parseSql(String sql, String pluginLoadMode)
focal_class.full_signature: public static SqlTree parseSql(String sql, String pluginLoadMode)
focal_class.identifier: parseSql
focal_class.modifiers: public static
focal_class.parameters: (String sql, String pluginLoadMode)
focal_class.return: SqlTree
focal_class.signature: SqlTree parseSql(String sql, String pluginLoadMode)
focal_class.class_method_signature: SqlParser.removeAddFileStmt(List<String> stmts)
focal_class.full_signature: private static List<String> removeAddFileStmt(List<String> stmts)
focal_class.identifier: removeAddFileStmt
focal_class.modifiers: private static
focal_class.parameters: (List<String> stmts)
focal_class.return: List<String>
focal_class.signature: List<String> removeAddFileStmt(List<String> stmts)
focal_method.body: private static List<String> removeAddFileStmt(List<String> stmts) {
          List<String> cleanedStmts = new ArrayList<>();
          for (String stmt : stmts) {
              Matcher matcher = ADD_FIlE_PATTERN.matcher(stmt);
              if(!matcher.matches()) {
                  cleanedStmts.add(stmt);
              }
          }
          return cleanedStmts;
      }
focal_method.class_method_signature: SqlParser.removeAddFileStmt(List<String> stmts)
focal_method.full_signature: private static List<String> removeAddFileStmt(List<String> stmts)
focal_method.identifier: removeAddFileStmt
focal_method.invocations: matcher matches add
focal_method.modifiers: private static
focal_method.parameters: (List<String> stmts)
focal_method.return: List<String>
focal_method.signature: List<String> removeAddFileStmt(List<String> stmts)