Create a materialized view
Changed onCreate a materialized view at identifier id. The view may be query-backed, UDTF-backed, or chunker-backed, controlled by the kind discriminator.
Request
- Base URLhttp://localhost:2333
- Auth
- OAuth 2Client credentialsToken URL: /oauth/token
- or HTTP bearer
- or API key in header x-api-key
Path parameters
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
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
}Changes
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- breaking
the
//request property's minLength was increased from0to1 - breaking
the
/request property's minLength was increased from0to1 - breaking
the
/request property's minLength was increased from0to1
- breaking