Browse Source

[metastore] Fetch a maximum of 5000 database names instead of 1000

Romain Rigaux 10 years ago
parent
commit
4e844c7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/beeswax/src/beeswax/server/hive_server2_lib.py

+ 1 - 1
apps/beeswax/src/beeswax/server/hive_server2_lib.py

@@ -586,7 +586,7 @@ class HiveServerClient:
     req = TGetSchemasReq()
     req = TGetSchemasReq()
     res = self.call(self._client.GetSchemas, req)
     res = self.call(self._client.GetSchemas, req)
 
 
-    results, schema = self.fetch_result(res.operationHandle, orientation=TFetchOrientation.FETCH_NEXT)
+    results, schema = self.fetch_result(res.operationHandle, orientation=TFetchOrientation.FETCH_NEXT, max_rows=5000)
     self.close_operation(res.operationHandle)
     self.close_operation(res.operationHandle)
 
 
     col = 'TABLE_SCHEM'
     col = 'TABLE_SCHEM'