Table
Data
Add new columns to table schema
Add new columns to table id using SQL expressions or default values.
post/v1/table/{id}/add_columns
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
{
"identity": {
"api_key": "api_key",
"auth_token": "auth_token"
},
"new_columns": [
{
"expression": "expression",
"name": "name",
"virtual_column": {
"image": "image",
"udf": "udf",
"udf_name": "udf_name",
"input_columns": [
"input_columns",
"input_columns"
],
"data_type": "{}",
"udf_version": "udf_version"
}
},
{
"expression": "expression",
"name": "name",
"virtual_column": {
"image": "image",
"udf": "udf",
"udf_name": "udf_name",
"input_columns": [
"input_columns",
"input_columns"
],
"data_type": "{}",
"udf_version": "udf_version"
}
}
],
"context": {
"key": "context"
},
"id": [
"id",
"id"
]
}Response
Add columns operation result
Example response
{
"transaction_id": "transaction_id",
"version": 0
}