getTableSchemaByCluster

Syntax

getTableSchemaByCluster(clusterName, dbUrl, table)

Details

Get the schema of the specified table. This function can only be executed by an administrator on the MoM (Master of Masters) cluster.

Parameters

clusterName is a STRING scalar indicating the name of the cluster.

dburl is a STRING scalar indicating the path of the database.

table is a STRING scalar indicating the name of the table.

Examples

getTableSchemaByCluster("MoMSender", "dfs://db1", "dt")
   
/* Output:
   colDefs->name      typeString typeInt extra comment
   --------- ---------- ------- ----- -------
timestamp SECOND     10                   
   sym       STRING     18                   
   qty       INT        4                    
   price     DOUBLE     16                   
   chunkPath->
   partitionColumnIndex->-1
   
*/

Related Function: schema.