getClusterDFSTables

Syntax

getClusterDFSTables()

Arguments

None

Details

The function returns a vector that lists DFS tables in the cluster.

From version 1.30.21 onwards,
  • For an administrator, the function returns all DFS tables in the cluster;

  • For a non-admin user, the function returns DFS tables that can be accessed by the user, i.e., the user has at least one of the following privileges: DB_OWNER, TABLE_READ, TABLE_WRITE, TABLE_INSERT, TABLE_UPDATE, TABLE_DELETE, DB_READ, DB_WRITE, DB_INSERT, DB_UPDATE, and DB_DELETE.

Starting from version 1.30.23, 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"]