@@ -320,15 +320,7 @@ public AbstractParser<T> setGlobalDatabase(String globalDatabase) {
320
320
public String getGlobalDatabase () {
321
321
return globalDatabase ;
322
322
}
323
- protected String globalSchema ;
324
- public AbstractParser <T > setGlobalSchema (String globalSchema ) {
325
- this .globalSchema = globalSchema ;
326
- return this ;
327
- }
328
- @ Override
329
- public String getGlobalSchema () {
330
- return globalSchema ;
331
- }
323
+
332
324
protected String globalDatasource ;
333
325
@ Override
334
326
public String getGlobalDatasource () {
@@ -339,6 +331,36 @@ public AbstractParser<T> setGlobalDatasource(String globalDatasource) {
339
331
return this ;
340
332
}
341
333
334
+ protected String globalNamespace ;
335
+ public AbstractParser <T > setGlobalNamespace (String globalNamespace ) {
336
+ this .globalNamespace = globalNamespace ;
337
+ return this ;
338
+ }
339
+ @ Override
340
+ public String getGlobalNamespace () {
341
+ return globalNamespace ;
342
+ }
343
+
344
+ protected String globalCatalog ;
345
+ public AbstractParser <T > setGlobalCatalog (String globalCatalog ) {
346
+ this .globalCatalog = globalCatalog ;
347
+ return this ;
348
+ }
349
+ @ Override
350
+ public String getGlobalCatalog () {
351
+ return globalCatalog ;
352
+ }
353
+
354
+ protected String globalSchema ;
355
+ public AbstractParser <T > setGlobalSchema (String globalSchema ) {
356
+ this .globalSchema = globalSchema ;
357
+ return this ;
358
+ }
359
+ @ Override
360
+ public String getGlobalSchema () {
361
+ return globalSchema ;
362
+ }
363
+
342
364
protected Boolean globalExplain ;
343
365
public AbstractParser <T > setGlobalExplain (Boolean globalExplain ) {
344
366
this .globalExplain = globalExplain ;
@@ -508,19 +530,25 @@ public JSONObject parseResponse(JSONObject request) {
508
530
}
509
531
510
532
try {
511
- setGlobalFormat (requestObject .getBoolean (JSONRequest .KEY_FORMAT ));
512
533
setGlobalDatabase (requestObject .getString (JSONRequest .KEY_DATABASE ));
513
- setGlobalSchema (requestObject .getString (JSONRequest .KEY_SCHEMA ));
514
534
setGlobalDatasource (requestObject .getString (JSONRequest .KEY_DATASOURCE ));
535
+ setGlobalNamespace (requestObject .getString (JSONRequest .KEY_NAMESPACE ));
536
+ setGlobalCatalog (requestObject .getString (JSONRequest .KEY_CATALOG ));
537
+ setGlobalSchema (requestObject .getString (JSONRequest .KEY_SCHEMA ));
538
+
515
539
setGlobalExplain (requestObject .getBoolean (JSONRequest .KEY_EXPLAIN ));
516
540
setGlobalCache (requestObject .getString (JSONRequest .KEY_CACHE ));
541
+ setGlobalFormat (requestObject .getBoolean (JSONRequest .KEY_FORMAT ));
517
542
518
- requestObject .remove (JSONRequest .KEY_FORMAT );
519
543
requestObject .remove (JSONRequest .KEY_DATABASE );
520
- requestObject .remove (JSONRequest .KEY_SCHEMA );
521
544
requestObject .remove (JSONRequest .KEY_DATASOURCE );
545
+ requestObject .remove (JSONRequest .KEY_NAMESPACE );
546
+ requestObject .remove (JSONRequest .KEY_CATALOG );
547
+ requestObject .remove (JSONRequest .KEY_SCHEMA );
548
+
522
549
requestObject .remove (JSONRequest .KEY_EXPLAIN );
523
550
requestObject .remove (JSONRequest .KEY_CACHE );
551
+ requestObject .remove (JSONRequest .KEY_FORMAT );
524
552
} catch (Exception e ) {
525
553
return extendErrorResult (requestObject , e , requestMethod , getRequestURL (), isRoot );
526
554
}
@@ -1462,6 +1490,8 @@ else if (childKeys.length == 1 && JSONRequest.isTableKey(childKeys[0])) { //
1462
1490
JOIN_COPY_KEY_LIST = new ArrayList <String >();
1463
1491
JOIN_COPY_KEY_LIST .add (JSONRequest .KEY_ROLE );
1464
1492
JOIN_COPY_KEY_LIST .add (JSONRequest .KEY_DATABASE );
1493
+ JOIN_COPY_KEY_LIST .add (JSONRequest .KEY_NAMESPACE );
1494
+ JOIN_COPY_KEY_LIST .add (JSONRequest .KEY_CATALOG );
1465
1495
JOIN_COPY_KEY_LIST .add (JSONRequest .KEY_SCHEMA );
1466
1496
JOIN_COPY_KEY_LIST .add (JSONRequest .KEY_DATASOURCE );
1467
1497
JOIN_COPY_KEY_LIST .add (JSONRequest .KEY_COLUMN );
0 commit comments