schema

Syntax

schema(table|dbHandle)

Arguments

X is a table or a database.

Details

Display information about the schema of a table or a database.

Examples

n=1000000
ID=rand(10, n)
x=rand(1.0, n)
t=table(ID, x)
db=database("dfs://rangedb101", RANGE, 0 5 10)
pt = db.createPartitionedTable(t, `pt, `ID)
pt.append!(t)
pt=loadTable(db,`pt);


schema(pt);


artitionSchema->[0,5,10]

artitionSites->

artitionColumnType->4

artitionTypeName->RANGE

hunkGranularity->TABLE

eepDuplicates->ALL

ngineType->OLAP

hunkPath->

artitionColumnIndex->0

olDefs->

ame typeString typeInt comment

--- ---------- ------- -------

D   INT        4

    DOUBLE     16


artitionType->2

artitionColumnName->ID
schema(db);

// output
partitionSchema->[0,5,10]
partitionSites->
partitionTypeName->RANGE
atomic->TRANS
databaseDir->dfs://rangedb101
chunkGranularity->TABLE
engineType->OLAP
partitionType->2