@@ -320,15 +320,7 @@ public AbstractParser<T> setGlobalDatabase(String globalDatabase) {
320320 public String getGlobalDatabase () {
321321 return globalDatabase ;
322322 }
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+
332324 protected String globalDatasource ;
333325 @ Override
334326 public String getGlobalDatasource () {
@@ -339,6 +331,36 @@ public AbstractParser<T> setGlobalDatasource(String globalDatasource) {
339331 return this ;
340332 }
341333
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+
342364 protected Boolean globalExplain ;
343365 public AbstractParser <T > setGlobalExplain (Boolean globalExplain ) {
344366 this .globalExplain = globalExplain ;
@@ -508,19 +530,25 @@ public JSONObject parseResponse(JSONObject request) {
508530 }
509531
510532 try {
511- setGlobalFormat (requestObject .getBoolean (JSONRequest .KEY_FORMAT ));
512533 setGlobalDatabase (requestObject .getString (JSONRequest .KEY_DATABASE ));
513- setGlobalSchema (requestObject .getString (JSONRequest .KEY_SCHEMA ));
514534 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+
515539 setGlobalExplain (requestObject .getBoolean (JSONRequest .KEY_EXPLAIN ));
516540 setGlobalCache (requestObject .getString (JSONRequest .KEY_CACHE ));
541+ setGlobalFormat (requestObject .getBoolean (JSONRequest .KEY_FORMAT ));
517542
518- requestObject .remove (JSONRequest .KEY_FORMAT );
519543 requestObject .remove (JSONRequest .KEY_DATABASE );
520- requestObject .remove (JSONRequest .KEY_SCHEMA );
521544 requestObject .remove (JSONRequest .KEY_DATASOURCE );
545+ requestObject .remove (JSONRequest .KEY_NAMESPACE );
546+ requestObject .remove (JSONRequest .KEY_CATALOG );
547+ requestObject .remove (JSONRequest .KEY_SCHEMA );
548+
522549 requestObject .remove (JSONRequest .KEY_EXPLAIN );
523550 requestObject .remove (JSONRequest .KEY_CACHE );
551+ requestObject .remove (JSONRequest .KEY_FORMAT );
524552 } catch (Exception e ) {
525553 return extendErrorResult (requestObject , e , requestMethod , getRequestURL (), isRoot );
526554 }
@@ -1462,6 +1490,8 @@ else if (childKeys.length == 1 && JSONRequest.isTableKey(childKeys[0])) { //
14621490 JOIN_COPY_KEY_LIST = new ArrayList <String >();
14631491 JOIN_COPY_KEY_LIST .add (JSONRequest .KEY_ROLE );
14641492 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 );
14651495 JOIN_COPY_KEY_LIST .add (JSONRequest .KEY_SCHEMA );
14661496 JOIN_COPY_KEY_LIST .add (JSONRequest .KEY_DATASOURCE );
14671497 JOIN_COPY_KEY_LIST .add (JSONRequest .KEY_COLUMN );
0 commit comments