getClusterDFSTables
Syntax
getClusterDFSTables()
Arguments
None
Details
The function returns a vector that lists DFS tables in the cluster.
From version 2.00.9
onwards,
- For an administrator, it returns all DFS tables under the specified database in the cluster.
- When executed by a non-admin user, it will return:
- All DFS tables in databases where the user has any of the following permissions:DB_OWNER, DB_MANAGE, DB_READ, DB_WRITE, DB_INSERT, DB_UPDATE, DB_DELETE.
- DFS tables where the user has any of the following permissions: TABLE_READ, TABLE_INSERT, TABLE_WRITE, TABLE_UPDATE, or TABLE_DELETE.
Starting from version 2.00.10.2, this function returns all DFS tables created by the user regardless of the table permissions.
Examples
getClusterDFSTables()
// output: ["dfs://demohash/pt","dfs://myDataYesDB/tick","dfs://testDB/pt1","dfs://testDB/pt2"]