IBM PureData System for Analytics, Version 7.1

$hist_column_access_n

The $hist_column_access_n table records the column access history for a query. This table becomes enabled whenever history type is Column.

Table 1. $hist_column_access_n
Name Type Description
npsid integer This value along with the npsInstanceId and opid form the foreign key into the operation table.
npsinstanceid integer Instance ID of the source IBM® Netezza® system
opid bigint Operation ID. This ID is used as a foreign key from query epilog, overflow and plan, table, column access tables to query prolog.
logentryid bigint This ID and the NPS ID (npsid) and instance ID (npsinstanceid) form:
  • A foreign key into the hist_log_entry_n table
  • A primary key for this table
seqid integer A plain sequence number of the entry. It starts at zero for every npsid, npsinstanceid, and opid. It increments monotonically for table access records for each query.
sessionid bigint Session ID. This ID with NPS ID (npsid) and instance ID (npsinstanceid) form the foreign key from query, plan, table, and column access tables into session tables.
dbid bigint OID of the database where the table is defined
dbname nvarchar(128) The name of the database where the table is defined
schemaid bigint The OID of the schema as specified in catalog.schema.table
schemaname nvarchar(128) The schema name as specified in catalog.schema.table
tableid bigint The table ID of the table.
tablename nvarchar(128) The table name of the table.
columnid integer The column position as it displays in the logical table definition, starting with 1.
columnname nvarchar(128) The name of the column.
usage integer The following bits are set to true if the column appears in:
  • (usage & 1) <> 0 = in_select
  • (usage & 2) <> 0 = in_set
  • (usage & 4) <> 0 = in_where
  • (usage & 8) <> 0 = in_groupby
  • (usage & 16) <> 0 = in_having
  • (usage & 32) <> 0 = in_orderby
  • (usage & 64) <> 0 = in_alter



Feedback | Copyright IBM Corporation 2014 | Last updated: 2014-02-28