Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Auto-update documentation for master (#70988)

github-automation-metabase5ac9afd0f5a9
diff --git a/docs/api.json b/docs/api.json
index c1673ab65aa..e296b2209ab 100644
--- a/docs/api.json
+++ b/docs/api.json
@@ -7215,6 +7215,21 @@
},
"required" : [ "type", "name", "display-name", "snippet-name", "snippet-id" ]
},
+ "metabase.legacy-mbql.schema..TemplateTag.SourceFilter" : {
+ "description" : "Schema for a single source-filter applied to a table template tag.",
+ "type" : "object",
+ "properties" : {
+ "field-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ },
+ "op" : {
+ "type" : "string",
+ "enum" : [ "<=", ">", ">=", "!=", "=", "<" ]
+ },
+ "value" : { }
+ },
+ "required" : [ "field-id", "op", "value" ]
+ },
"metabase.legacy-mbql.schema..TemplateTag.SourceQuery" : {
"description" : "Things required by all template tag types.",
"type" : "object",
@@ -7244,12 +7259,21 @@
"display-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "emit-alias" : {
+ "type" : "boolean"
+ },
"id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
},
"name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "source-filters" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.legacy-mbql.schema..TemplateTag.SourceFilter"
+ }
+ },
"table-id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.table"
},
@@ -10004,10 +10028,6 @@
"$ref" : "#/components/schemas/metabase.lib.schema.util.distinct-mbql-clauses"
} ]
},
- "metabase.lib.schema.column-unique-key" : {
- "type" : "string",
- "pattern" : "^column-unique-key-v\\d+\\$.+$"
- },
"metabase.lib.schema.common.base-type" : {
"type" : "string"
},
@@ -12720,6 +12740,21 @@
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.disallow-dimension"
} ]
},
+ "metabase.lib.schema.template-tag.source-filter" : {
+ "description" : "Schema for a single source-filter applied to a table template tag.",
+ "type" : "object",
+ "properties" : {
+ "field-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
+ },
+ "op" : {
+ "type" : "string",
+ "enum" : [ "<=", ">", ">=", "!=", "=", "<" ]
+ },
+ "value" : { }
+ },
+ "required" : [ "field-id", "op", "value" ]
+ },
"metabase.lib.schema.template-tag.source-query" : {
"allOf" : [ {
"type" : "object",
@@ -12752,12 +12787,21 @@
"display-name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.common.non-blank-string"
},
+ "emit-alias" : {
+ "type" : "boolean"
+ },
"id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.id"
},
"name" : {
"$ref" : "#/components/schemas/metabase.lib.schema.template-tag.name"
},
+ "source-filters" : {
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.template-tag.source-filter"
+ }
+ },
"table-id" : {
"$ref" : "#/components/schemas/metabase.lib.schema.id.table"
},
@@ -14873,19 +14917,6 @@
"description" : "A single result metadata column as returned by the Query Processor.",
"$ref" : "#/components/schemas/metabase.legacy-mbql.schema.legacy-column-metadata"
},
- "metabase.query-processor.schema.any-query" : {
- "description" : "Schema for a map that is in the general shape of either a legacy MBQL or MBQL 5 query. Query may not be normalized\n yet!\n\n This schema is not very strict because we need to handle different types of queries (legacy MBQL, pMBQL,\n super-legacy MBQL, internal audit app queries, etc.) and it might not be normalized yet.",
- "type" : "object",
- "properties" : {
- "database" : {
- "anyOf" : [ {
- "$ref" : "#/components/schemas/metabase.lib.schema.id.database"
- }, {
- "$ref" : "#/components/schemas/metabase.lib.schema.id.saved-questions-virtual-database"
- } ]
- }
- }
- },
"metabase.query-processor.schema.export-format" : {
"description" : "Schema for valid export formats for downloading query results.",
"type" : "string",
@@ -15780,11 +15811,8 @@
"metabase.transforms.schema.checkpoint-strategy" : {
"type" : "object",
"properties" : {
- "checkpoint-filter" : {
- "type" : "string"
- },
- "checkpoint-filter-unique-key" : {
- "$ref" : "#/components/schemas/metabase.lib.schema.column-unique-key"
+ "checkpoint-filter-field-id" : {
+ "$ref" : "#/components/schemas/metabase.lib.schema.id.field"
},
"type" : {
"const" : "checkpoint"
@@ -47164,6 +47192,13 @@
"type" : "null"
} ]
},
+ "checkpoint_hi_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"is_active" : {
"oneOf" : [ {
"type" : "boolean"
@@ -47182,6 +47217,13 @@
"run_method" : {
"type" : "string"
},
+ "checkpoint_lo_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"status" : {
"type" : "string",
"enum" : [ "started", "succeeded", "failed", "timeout", "canceled", "canceling" ]
@@ -47193,6 +47235,14 @@
"type" : "null"
} ]
},
+ "checkpoint_filter_field_id" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
"end_time" : {
"oneOf" : [ { }, {
"type" : "null"
@@ -47333,6 +47383,13 @@
} ]
},
"source" : { },
+ "last_checkpoint_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"target" : { },
"created_at" : { },
"creator_id" : {
@@ -47459,6 +47516,13 @@
"type" : "null"
} ]
},
+ "checkpoint_hi_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"is_active" : {
"oneOf" : [ {
"type" : "boolean"
@@ -47477,6 +47541,13 @@
"run_method" : {
"type" : "string"
},
+ "checkpoint_lo_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"status" : {
"type" : "string",
"enum" : [ "started", "succeeded", "failed", "timeout", "canceled", "canceling" ]
@@ -47488,6 +47559,14 @@
"type" : "null"
} ]
},
+ "checkpoint_filter_field_id" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
"end_time" : {
"oneOf" : [ { }, {
"type" : "null"
@@ -47628,6 +47707,13 @@
} ]
},
"source" : { },
+ "last_checkpoint_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"target" : { },
"created_at" : { },
"creator_id" : {
@@ -48934,112 +49020,6 @@
"tags" : [ "/api/transform-tag" ]
}
},
- "/api/transform/extract-columns" : {
- "post" : {
- "operationId" : "post-api-transform-extract-columns",
- "summary" : "POST /api/transform/extract-columns",
- "description" : "Extract column names suitable for incremental transform checkpoint filtering.\n\n This endpoint is specifically for populating the checkpoint column dropdown in\n incremental transforms. It only returns columns with types supported for checkpoint\n filtering: temporal (timestamp/tz) and numeric (int/float) types.\n\n Text, boolean, and other unsupported column types are filtered out.\n\n The query is compiled to native SQL using [[qp.compile/compile-with-inline-parameters]],\n which handles parameterized queries with template tags. Then extracts column names\n and types using PreparedStatement metadata.\n\n Returns a map with a :columns key containing a vector of column names (strings).\n If extraction fails, returns nil for :columns.",
- "parameters" : [ ],
- "responses" : {
- "2XX" : {
- "description" : "Successful response",
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "object",
- "properties" : {
- "columns" : {
- "oneOf" : [ {
- "type" : "array",
- "items" : {
- "type" : "string"
- }
- }, {
- "type" : "null"
- } ]
- }
- },
- "required" : [ "columns" ]
- }
- }
- }
- },
- "4XX" : {
- "description" : "Client error response"
- },
- "5XX" : {
- "description" : "Server error response"
- }
- },
- "requestBody" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "object",
- "properties" : {
- "query" : {
- "$ref" : "#/components/schemas/metabase.query-processor.schema.any-query"
- }
- },
- "required" : [ "query" ]
- }
- }
- }
- },
- "tags" : [ "/api/transform" ]
- }
- },
- "/api/transform/is-simple-query" : {
- "post" : {
- "operationId" : "post-api-transform-is-simple-query",
- "summary" : "POST /api/transform/is-simple-query",
- "description" : "Checks if a native SQL query string is simple enough for automatic checkpoint insertion",
- "parameters" : [ ],
- "responses" : {
- "2XX" : {
- "description" : "Successful response",
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "object",
- "properties" : {
- "is_simple" : {
- "type" : "boolean"
- },
- "reason" : {
- "type" : "string"
- }
- },
- "required" : [ "is_simple" ]
- }
- }
- }
- },
- "4XX" : {
- "description" : "Client error response"
- },
- "5XX" : {
- "description" : "Server error response"
- }
- },
- "requestBody" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "object",
- "properties" : {
- "query" : {
- "type" : "string"
- }
- },
- "required" : [ "query" ]
- }
- }
- }
- },
- "tags" : [ "/api/transform" ]
- }
- },
"/api/transform/run" : {
"get" : {
"operationId" : "get-api-transform-run",
@@ -49176,6 +49156,13 @@
"type" : "null"
} ]
},
+ "checkpoint_hi_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"is_active" : {
"oneOf" : [ {
"type" : "boolean"
@@ -49241,6 +49228,13 @@
"run_method" : {
"type" : "string"
},
+ "checkpoint_lo_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"status" : {
"type" : "string",
"enum" : [ "started", "succeeded", "failed", "timeout", "canceled", "canceling" ]
@@ -49252,6 +49246,14 @@
"type" : "null"
} ]
},
+ "checkpoint_filter_field_id" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
"end_time" : {
"oneOf" : [ { }, {
"type" : "null"
@@ -49335,6 +49337,13 @@
"type" : "null"
} ]
},
+ "checkpoint_hi_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"is_active" : {
"oneOf" : [ {
"type" : "boolean"
@@ -49400,6 +49409,13 @@
"run_method" : {
"type" : "string"
},
+ "checkpoint_lo_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"status" : {
"type" : "string",
"enum" : [ "started", "succeeded", "failed", "timeout", "canceled", "canceling" ]
@@ -49411,6 +49427,14 @@
"type" : "null"
} ]
},
+ "checkpoint_filter_field_id" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
"end_time" : {
"oneOf" : [ { }, {
"type" : "null"
@@ -49540,6 +49564,13 @@
"type" : "null"
} ]
},
+ "checkpoint_hi_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"is_active" : {
"oneOf" : [ {
"type" : "boolean"
@@ -49558,6 +49589,13 @@
"run_method" : {
"type" : "string"
},
+ "checkpoint_lo_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"status" : {
"type" : "string",
"enum" : [ "started", "succeeded", "failed", "timeout", "canceled", "canceling" ]
@@ -49569,6 +49607,14 @@
"type" : "null"
} ]
},
+ "checkpoint_filter_field_id" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
"end_time" : {
"oneOf" : [ { }, {
"type" : "null"
@@ -49709,6 +49755,13 @@
} ]
},
"source" : { },
+ "last_checkpoint_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"target" : { },
"created_at" : { },
"creator_id" : {
@@ -49843,6 +49896,13 @@
"type" : "null"
} ]
},
+ "checkpoint_hi_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"is_active" : {
"oneOf" : [ {
"type" : "boolean"
@@ -49861,6 +49921,13 @@
"run_method" : {
"type" : "string"
},
+ "checkpoint_lo_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"status" : {
"type" : "string",
"enum" : [ "started", "succeeded", "failed", "timeout", "canceled", "canceling" ]
@@ -49872,6 +49939,14 @@
"type" : "null"
} ]
},
+ "checkpoint_filter_field_id" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
"end_time" : {
"oneOf" : [ { }, {
"type" : "null"
@@ -50012,6 +50087,13 @@
} ]
},
"source" : { },
+ "last_checkpoint_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"target" : { },
"created_at" : { },
"creator_id" : {
@@ -50283,6 +50365,13 @@
"type" : "null"
} ]
},
+ "checkpoint_hi_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"is_active" : {
"oneOf" : [ {
"type" : "boolean"
@@ -50301,6 +50390,13 @@
"run_method" : {
"type" : "string"
},
+ "checkpoint_lo_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"status" : {
"type" : "string",
"enum" : [ "started", "succeeded", "failed", "timeout", "canceled", "canceling" ]
@@ -50312,6 +50408,14 @@
"type" : "null"
} ]
},
+ "checkpoint_filter_field_id" : {
+ "oneOf" : [ {
+ "type" : "integer",
+ "minimum" : 1
+ }, {
+ "type" : "null"
+ } ]
+ },
"end_time" : {
"oneOf" : [ { }, {
"type" : "null"
@@ -50452,6 +50556,13 @@
} ]
},
"source" : { },
+ "last_checkpoint_value" : {
+ "oneOf" : [ {
+ "type" : "string"
+ }, {
+ "type" : "null"
+ } ]
+ },
"target" : { },
"created_at" : { },
"creator_id" : {
@@ -50719,6 +50830,42 @@
"tags" : [ "/api/transform" ]
}
},
+ "/api/transform/{id}/reset-checkpoint" : {
+ "post" : {
+ "operationId" : "post-api-transform-id-reset-checkpoint",
+ "summary" : "POST /api/transform/{id}/reset-checkpoint",
+ "description" : "Reset the stored checkpoint for an incremental transform.",
+ "parameters" : [ {
+ "in" : "path",
+ "name" : "id",
+ "required" : true,
+ "schema" : {
+ "type" : "integer",
+ "minimum" : 1
+ },
+ "description" : "value must be an integer greater than zero."
+ } ],
+ "responses" : {
+ "2XX" : {
+ "description" : "Successful response",
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "null"
+ }
+ }
+ }
+ },
+ "4XX" : {
+ "description" : "Client error response"
+ },
+ "5XX" : {
+ "description" : "Server error response"
+ }
+ },
+ "tags" : [ "/api/transform" ]
+ }
+ },
"/api/transform/{id}/run" : {
"post" : {
"operationId" : "post-api-transform-id-run",