Market-data lake

lake.index_constituents dataset schema

Column types and research semantics for NexusTrade’s lake.index_constituents dataset. Read the supported schema before submitting a bounded SQL query.

Query name
lake.index_constituents
Grain
snapshot
Columns
10

Columns and types

These columns come from the same versioned logical catalog used by the query validator and engine. They describe the fields you can query. Some historical rows have missing values; fields absent from older shards can return typed NULL.

indexCodeVARCHAR
indexNameVARCHAR
componentCodeVARCHAR
componentNameVARCHAR
sectorVARCHAR
industryVARCHAR
weightDOUBLE
startDateTIMESTAMP
endDateTIMESTAMP
isActiveBOOLEAN

Current logical schema for lake.index_constituents

Coverage and timing

Membership of major indices; the only source of GICS-style sector and industry strings.

Filter an index with `indexCode` (`'GSPC'` for the S&P 500). `componentCode` is the ticker to join on and `componentName` is the display name. This is the only table with GICS-style `sector` / `industry` labels — `stock_industries` carries boolean theme tags instead, and the SEC statement tables carry neither.

Run a limited query

Use a registered API key with lake scope. Select needed columns, bind user-supplied values and restrict dates when the table has a time dimension. Query results are durable parts with a schema and manifest rather than an unbounded in-memory array.

This reference documents the schema and its meaning. Run queries in your signed-in workspace; this page does not execute SQL or show private results and datasets.

sql
SELECT "indexCode", "indexName", "componentCode"
FROM lake.index_constituents
LIMIT 20;