private String revertReplaceTableNames(String source) {
    for (String table : srcTables) {
      source = source.replaceAll("(?is)(?<!name:?|alias:?)(\\s+)default\\.(" + table
          + ")([\\s;\\n\\),])", "$1$2$3");
    }
    return source;
  }
The result contains the original queries. To revert them to the original form remove the
'default' from every default.TABLE_NAME, like default.src->src, default.srcpart->srcpart.
@param source The original query output
@return The query output where the tablenames are replaced
itests/util/src/main/java/org/apache/hive/beeline/QFile.java