Skip to content

Commit 57e4a67

Browse files
committed
Support simple mode withTemporaryTable.
1 parent 2c43aeb commit 57e4a67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/demos/dlineage/DataFlowAnalyzer.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ public class DataFlowAnalyzer {
2929
public static void main(String[] args) {
3030
if (args.length < 1) {
3131
System.out.println(
32-
"Usage: java DataFlowAnalyzer [/f <path_to_sql_file>] [/d <path_to_directory_includes_sql_files>] [/stat] [/s [/topselectlist] [/text] ] [/i] [/ic] [/lof] [/j] [/json] [/traceView] [/t <database type>] [/o <output file path>] [/version] [/env <path_to_metadata.json>] [/tableLineage [/csv [/delimeter <delimeter>]]] [/transform [/coor]] [/showConstant] [/treatArgumentsInCountFunctionAsDirectDataflow]");
32+
"Usage: java DataFlowAnalyzer [/f <path_to_sql_file>] [/d <path_to_directory_includes_sql_files>] [/stat] [/s [/topselectlist] [/text] [/withTemporaryTable]] [/i] [/ic] [/lof] [/j] [/json] [/traceView] [/t <database type>] [/o <output file path>] [/version] [/env <path_to_metadata.json>] [/tableLineage [/csv [/delimeter <delimeter>]]] [/transform [/coor]] [/showConstant] [/treatArgumentsInCountFunctionAsDirectDataflow]");
3333
System.out.println("/f: Optional, the full path to SQL file.");
3434
System.out.println("/d: Optional, the full path to the directory includes the SQL files.");
3535
System.out.println("/j: Optional, return the result including the join relation.");
3636
System.out.println("/s: Optional, simple output, ignore the intermediate results.");
3737
System.out.println("/topselectlist: Optional, simple output with top select results.");
38+
System.out.println("/withTemporaryTable: Optional, simple output with the temporary tables.");
3839
System.out.println(
3940
"/i: Optional, the same as /s option, but will keep the resultset generated by the SQL function, this parameter will have the same effect as /s /topselectlist + keep resultset generated by the sql function.");
4041
System.out.println(
@@ -130,6 +131,7 @@ else if (argList.indexOf("/fromdb") != -1 && argList.size() > argList.indexOf("/
130131
}
131132

132133
boolean simple = argList.indexOf("/s") != -1;
134+
boolean ignoreTemporaryTable = argList.indexOf("/withTemporaryTable") == -1;
133135
boolean ignoreResultSets = argList.indexOf("/i") != -1;
134136
boolean showJoin = argList.indexOf("/j") != -1;
135137
boolean transform = argList.indexOf("/transform") != -1;
@@ -215,6 +217,7 @@ else if (argList.indexOf("/fromdb") != -1 && argList.size() > argList.indexOf("/
215217
dlineage.setIgnoreCoordinate(ignoreCoordinate);
216218
dlineage.setSimpleShowTopSelectResultSet(topselectlist);
217219
dlineage.setShowImplicitSchema(showImplicitSchema);
220+
dlineage.setIgnoreTemporaryTable(ignoreTemporaryTable);
218221
if(simple) {
219222
dlineage.setShowCallRelation(true);
220223
}

0 commit comments

Comments
 (0)