File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
src/main/java/demos/dlineage Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -200,12 +200,6 @@ else if (argList.indexOf("/fromdb") != -1 && argList.size() > argList.indexOf("/
200
200
sqlFiles , vendor , simple );
201
201
202
202
if (sqlenv != null ) {
203
- if (argList .indexOf ("/defaultDatabase" ) != -1 ) {
204
- sqlenv .setDefaultCatalogName (args [argList .indexOf ("/defaultDatabase" ) + 1 ]);
205
- }
206
- if (argList .indexOf ("/defaultSchema" ) != -1 ) {
207
- sqlenv .setDefaultSchemaName (args [argList .indexOf ("/defaultSchema" ) + 1 ]);
208
- }
209
203
dlineage .setSqlEnv (sqlenv );
210
204
}
211
205
@@ -224,7 +218,14 @@ else if (argList.indexOf("/fromdb") != -1 && argList.size() > argList.indexOf("/
224
218
225
219
dlineage .setShowConstantTable (argList .indexOf ("/showConstant" )!=-1 );
226
220
dlineage .setShowCountTableColumn (argList .indexOf ("/treatArgumentsInCountFunctionAsDirectDataflow" )!=-1 );
227
-
221
+
222
+ if (argList .indexOf ("/defaultDatabase" ) != -1 ) {
223
+ dlineage .getOption ().setDefaultDatabase (args [argList .indexOf ("/defaultDatabase" ) + 1 ]);
224
+ }
225
+ if (argList .indexOf ("/defaultSchema" ) != -1 ) {
226
+ dlineage .getOption ().setDefaultSchema (args [argList .indexOf ("/defaultSchema" ) + 1 ]);
227
+ }
228
+
228
229
229
230
if (simple && !jsonFormat ) {
230
231
dlineage .setTextFormat (textFormat );
You can’t perform that action at this time.
0 commit comments