databricks_online_table (Resource)

This resource allows you to create Online Table in Databricks. An online table is a read-only copy of a Delta Table that is stored in row-oriented format optimized for online access. Online tables are fully serverless tables that auto-scale throughput capacity with the request load and provide low latency and high throughput access to data of any scale. Online tables are designed to work with Databricks Model Serving, Feature Serving, and retrieval-augmented generation (RAG) applications where they are used for fast data lookups.

Example Usage

resource "databricks_online_table" "this" {
  name = "main.default.online_table"
  spec {
    source_table_full_name = "main.default.source_table"
    primary_key_columns = [
      "id"
    ]
    run_triggered {
    }
  }
}

Argument Reference

The following arguments are supported - check API docs for all supported parameters:

Attribute Reference

In addition to all arguments above, the following attributes are exported:

Import

The resource can be imported using the name of the Online Table:

terraform import databricks_online_table.this <endpoint-name>