MaterializedView
Data
Create a materialized view
Create a materialized view at identifier id. The view may be query-backed, UDTF-backed, or chunker-backed, controlled by the kind discriminator.
post/v1/materialized_view/{id}/create
Path parameters
idstring required
string identifier of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, v1/namespace/$/list performs a ListNamespace on the root namespace.
Query parameters
delimiterstring
An optional delimiter of the string identifier, following the Lance Namespace spec. When not specified, the $ delimiter must be used.
Request body
Example request
{
"auto_refresh": false,
"source_query": "source_query",
"identity": {
"api_key": "api_key",
"auth_token": "auth_token"
},
"kind": "query",
"udtf_spec": {
"num_cpus": 0.8008281904610115,
"udtf_name": "udtf_name",
"memory": 1,
"partition_by_indexed_column": "partition_by_indexed_column",
"num_gpus": 6.027456183070403,
"kind": "udtf",
"manifest": "manifest",
"batch": true,
"error_handling": "{}",
"udtf_version": "udtf_version",
"partition_by": "partition_by",
"manifest_checksum": "manifest_checksum",
"udtf": "udtf",
"input_columns": [
"input_columns",
"input_columns"
],
"udtf_sha": "udtf_sha"
},
"context": {
"key": "context"
},
"with_no_data": true,
"id": [
"id",
"id"
],
"output_schema": "output_schema"
}Response
Materialized view created
Example response
{
"job_id": "job_id",
"context": {
"key": "context"
},
"version": 0
}