getClusterDFSTables

Syntax

getClusterDFSTables([includeSysTable=true])

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.

Parameters

includeSysTable (optional): A boolean value that controls whether system tables are included in the returned results. The default value is true. This parameter applies only to admin users. Regular users cannot view system tables, even if includeSysTable is set to true.

Returns

A STRING vector.

Examples

getClusterDFSTables()
// output: ["dfs://demohash/pt","dfs://myDataYesDB/tick","dfs://testDB/pt1","dfs://testDB/pt2"]