getDFSTablesByDatabase

Syntax

getDFSTablesByDatabase(directory)

Arguments

directory is the directory where a DFS database is located.

Details

This functions returns a vector that lists tables under the specified DFS directory.

From version 1.30.21/2.00.9 onwards,

  • For an administrator, it returns all DFS tables under the specified database on the current node.
  • 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.
    • Within the specified database,the DFS tables where the user has any of the following permissions: TABLE_READ, TABLE_INSERT, TABLE_WRITE, TABLE_UPDATE, or TABLE_DELETE.

Examples

getDFSTablesByDatabase("dfs://db")
// output: ["dfs://db/dt", "dfs://db/dt1"]