16.20 - HELP INDEX - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ Time Series Tables and Operations

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1208-162K
Language
English (United States)

For PTI tables, HELP INDEX displays the attributes TimeZero and Timebucket from the PRIMARY TIME INDEX clause.

Example: HELP INDEX with a PTI Table

Below is the table definition for the example.

CREATE SET TABLE DB1.tstab1, NO FALLBACK,
 NO BEFORE JOURNAL,
 NO AFTER JOURNAL,
 CHECKSUM = DEFAULT,
 DEFAULT MERGEBLOCKRATIO
 (
 TD_TIMEBUCKET BIGINT NOT NULL GENERATED SYSTEM TIMECOLUMN ,
 TD_TIMECODE TIMESTAMP(6) NOT NULL GENERATED TIMECOLUMN ,
 TD_SEQNO INT NOT NULL GENERATED TIMECOLUMN,
 c1 INTEGER,
 c2 INTEGER,
 c3 VARCHAR(10) CHARACTER SET LATIN NOT CASESPECIFIC)
 PRIMARY TIME INDEX (TIMESTAMP(6), DATE '2015-05-02', HOURS(1), COLUMNS(c1, c2), SEQUENCED) ;
This statement displays the index attributes for tstab1:
HELP INDEX tstab1;
Following is the help output for the primary index of the PTI table tstab1, which includes the TD_TIMEBUCKET, c1, and c2 columns. TimeZero ‘2015-05-02’ indicates that the time series for the table tstab1 started on May 2, 2015 and Timebucket Hours(1) shows that each time series bucket duration is one hour, that is, HOURS(1).
                   Unique? N
   Primary//or//Secondary? P
              Column Names TD_TIMEBUCKET,c1,c2
                  Index Id 1
         Approximate Count 0
                Index Name ?
 Ordered//or//Partitioned? P
                CDT Index? N
     Index Dictionary Name ?
            Index SQL Name ?
        Index Name UEscape ?
                  TimeZero '2015-05-02'
                Timebucket Hours(1)