Use these views in the chalk catalog to read your features and datasets from SQL.

​
chalk.datasets schema

The chalk.datasets schema contains a view for each named dataset created within the last 60 days, and the view’s name is the dataset’s name. Note that if two offline queries reference the same named dataset, only the latest dataset revision is available in this schema.

To reference dataset revisions that are not the most recent or were created without a name, consider using the get_dataset_revision() table-valued function.

This schema is available in all Chalk deployments.

​
chalk.historical_values schema

The chalk.historical_values schema contains a view for each feature, as well as a view for each feature namespace within the deployment.

​
Per-feature view

Query the view named for the fully qualified feature, such as chalk.historical_values."user.name", to read all observations of that feature.

ColumnTypeDescription
observation_idstring (non-nullable)Unique identifier for the observation.
pkeyPrimary key type (non-nullable)Primary key associated with the observation.
valueFeature typeObserved value of the feature.
value_jsonstringDeprecated. Observed value as JSON, retained for backwards compatibility.
observed_attimestamp (non-nullable)Time when the feature value was observed.
inserted_attimestamp (non-nullable)Time when the feature value was inserted into the offline store.
resolver_fqnstring (nullable)Fully qualified name of the resolver that computed the feature.
deployment_idstring (nullable)ID of the deployment where the observation was made.
operation_kindint8 (nullable)Kind of operation that produced the observation.
operation_idstring (nullable)ID of the query operation that produced the observation.

​
Per-namespace view

Query the view named for the feature namespace, such as chalk.historical_values.user, to read the latest observed value of each feature for each primary key.

ColumnTypeDescription
__pkey__Primary key type (non-nullable)Primary key associated with the row.
feature_nameFeature typeLatest observed value for the feature and primary key. Each feature has a column named for it.
feature_name.__observed_at__timestampTime when that feature’s latest value was observed.

This schema is available in Chalk deployments with an offline store configured.

​
chalk.resolvers schema

The chalk.resolvers schema contains a view for each dataframe-returning resolver that takes in no inputs. When querying this view, a resolver run will be triggered and have the resolver’s outputs as the view’s contents.

This schema is available in all Chalk deployments.

​
chalk.online_store schema

​
Keys view

The information in chalk.online_store.keys depends on which online store your environment uses.

Online storeInformation available
RedisKey type (such as Scalar, HasMany, or TimeSeries), memory usage, TTL, and fully qualified feature name.
DynamoDBKey namespace and value.

​
Per-namespace view

Each feature namespace has a view with the same name, such as chalk.online_store.user.

ColumnDescription
__id__Primary key for the row.
namespace.feature_nameStored value for the feature. Each feature has a column named for it.
namespace.feature_name_tsTimestamp for the stored feature value.
This schema is available in Chalk deployments with a Redis or DynamoDB online store configured.