setTableComment

Syntax

setTableComment(table, comment)

Arguments

table is a DFS table.

comment is a STRING scalar for table comment, limited to 4096 bytes.

Details

Add comments to a DFS table. Use function schema to view table comments.

Examples

// create a DFS table
db = database(directory="dfs://testDB", partitionType=VALUE, partitionScheme=1..5)
schemaTB = table(1..5 as id, take(`A`B`C,5) as sym, rand(10.0,5) as price)
pt = db.createPartitionedTable(table=schemaTB, tableName="pt", partitionColumns="id")
// add comment "my first pt" to table pt
setTableComment(table=pt, comment="my first pt")
// check the comment with function schema
schema(pt)["tableComment"]
// output: 'my first pt'