---
title: Lakehouse Real-Time
description: Lakehouse Real-Time (Lakehouse//RT) is a serverless SQL warehouse type for sub-second, high-concurrency read queries on Unity Catalog tables.
canonical_url: https://docs.databricks.com/aws/en/compute/sql-warehouse/real-time
---

# Lakehouse Real-Time

> [!NOTE]
> **Beta**
>
> This feature is in [Beta](https://docs.databricks.com/aws/en/release-notes/release-types.md). Reach out to your Databricks account team to enable this feature in your account.
>
> Lakehouse//RT is in active development. Performance characteristics and the supported feature set can change.

Lakehouse Real-Time (Lakehouse//RT) is a serverless SQL warehouse type built for low-latency, high-concurrency workloads, such as serving analytical data to custom applications and AI agents, running operational analytics, or powering BI dashboards that require sub-second responses for hundreds to thousands of concurrent users.

Lakehouse//RT offers sub-second latency on SQL read queries against your Unity Catalog tables that use Delta Lake or Apache Iceberg formats in cloud storage. It queries your tables in place, so you don't need to copy data into a separate low-latency serving database to get fast responses. You create and manage Lakehouse//RT much like you do other SQL warehouses. A workspace admin or privileged user creates one or more per workspace and assigns permissions to users.

## When to use Lakehouse//RT

Lakehouse//RT fits workloads that send many concurrent, selective read queries and need each one to return in under a second. Use the following table to choose compute for a workload:

| Workload                                                                                                                                        | Recommended compute                                                                                     |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| Selective `SELECT` queries that need sub-second responses at high concurrency, such as application backends and AI agent tools                  | Lakehouse//RT                                                                                           |
| Long-running queries, joins across large tables, extract, transform, and load (ETL) jobs, writes, or queries that rely on non-ANSI SQL behavior | [Serverless SQL warehouse](https://docs.databricks.com/aws/en/compute/sql-warehouse/warehouse-types.md) |
| Transactional workloads with frequent row-level inserts, updates, and deletes                                                                   | [Lakebase](https://docs.databricks.com/aws/en/oltp/projects/index.md)                                   |

## Requirements

To use Lakehouse//RT, you must:

* Be in a [supported region](https://docs.databricks.com/aws/en/resources/feature-region-support.md#serverless-aws).
* Have the Lakehouse//RT Beta enabled in your workspace.

## Enable Lakehouse//RT in your workspace

Workspace admins can enable the Lakehouse//RT Beta in your workspace:

1. In your workspace menu (top-right corner), go to **Previews**.
2. Search for **Lakehouse RT**.
3. Enable the preview.

After you enable the preview, the **Real-Time** warehouse type becomes available in the SQL warehouse creation flow for your workspace.

## <a id="create" />Create a Lakehouse//RT warehouse

To create a Lakehouse//RT warehouse:

1. Go to **Compute** > **SQL Warehouses** > **Create SQL Warehouse**.
2. Select **Real-Time**.
3. Select a **Query size**: **Small**, **Medium**, **Large**, or **X-Large**, depending on the performance your queries require.
4. Configure the **Autoscaling** to determine the maximum DBUs you can be billed per hour.
5. Set **Auto stop** to control when an idle warehouse stops.
6. Enter a name for the warehouse.
7. Click **Create**.

To assign permissions, grant **Can use**, **Can monitor**, or **Can manage** to users and groups, the same as a SQL warehouse. See [SQL warehouse ACLs](https://docs.databricks.com/aws/en/security/auth/access-control/index.md#sql-warehouses). For the settings that apply to every SQL warehouse type, see [Create a SQL warehouse](https://docs.databricks.com/aws/en/compute/sql-warehouse/create.md).

> [!NOTE]
>
> You cannot upgrade an existing SQL warehouse to Lakehouse//RT or downgrade an existing Lakehouse//RT warehouse to another warehouse type.

## Size and scale a Lakehouse//RT warehouse

Lakehouse//RT has settings that control performance and cost:

* **Query size** controls the compute available to a single query.
* **Autoscaling** controls how much the warehouse scales out to serve concurrent queries.
* **Auto stop** controls how long an idle warehouse keeps running before it stops.

Query size and autoscaling work differently from the sizing and scaling settings on a [serverless SQL warehouse](https://docs.databricks.com/aws/en/compute/sql-warehouse/warehouse-types.md).

### Query size

The query size sets the maximum compute a single query can use, which determines how fast an individual query can run. It also sets the minimum compute the warehouse runs on, and the minimum you are billed for, while the warehouse is up.

You set the query size when you create the warehouse. Choose **Small**, **Medium**, **Large**, or **X-Large**. A larger size gives each query more compute for faster results, at a higher minimum cost.

This setting is similar in concept to the size of a serverless SQL warehouse, which also sets the compute available to a single query.

### Autoscaling

Autoscaling lets a warehouse add compute to serve more concurrent queries, then release it when demand drops. You set the maximum compute the warehouse can scale up to, measured in DBUs. You can set the maximum up to 960 DBUs per hour.

Autoscaling on Lakehouse//RT differs from cluster scaling on a serverless SQL warehouse in a few ways:

* It is measured in DBUs, not clusters.
* The maximum is independent of query size. See [Size for concurrency](https://docs.databricks.com/aws/en/compute/sql-warehouse/real-time.md#size-for-concurrency).
* Lakehouse//RT autoscaling adds and removes just the compute needed, instead of in increments of clusters.

To see how much a warehouse is scaling, use its [monitoring page](https://docs.databricks.com/aws/en/compute/sql-warehouse/monitor/index.md).

### <a id="size-for-concurrency" />Size for concurrency

To serve many concurrent queries, scale out with autoscaling rather than choosing a larger query size:

1. Choose the smallest query size that meets your latency target for a single query.
2. Set the autoscaling maximum high enough to serve your peak number of concurrent queries.
3. Watch the queued queries on the [monitoring page](https://docs.databricks.com/aws/en/compute/sql-warehouse/monitor/index.md). If queries queue at peak load, raise the autoscaling maximum.

A single Lakehouse//RT warehouse with a high autoscaling maximum can scale to serve many concurrent queries without you adding warehouses. If you need higher concurrency, contact your Databricks account team.

### Auto stop

Auto stop terminates the warehouse after it's idle for a set number of minutes, so an idle warehouse doesn't keep accruing charges. You set the idle timeout when you create the warehouse.

Auto stop on Lakehouse//RT works the same as on a serverless SQL warehouse. For the default and minimum values, see [Configure SQL warehouse settings](https://docs.databricks.com/aws/en/compute/sql-warehouse/create.md#settings).

## Monitor Lakehouse//RT activity

You can monitor Lakehouse//RT warehouses and the queries they run the same as any other SQL warehouse:

* **Query history**: Lakehouse//RT queries appear in the [query history UI](https://docs.databricks.com/aws/en/sql/user/queries/query-history.md) and the [query history system table](https://docs.databricks.com/aws/en/admin/system-tables/query-history.md).
* **Query profiles**: Open a Lakehouse//RT query in the query history UI to view its [query profile](https://docs.databricks.com/aws/en/sql/user/queries/query-profile.md).
* **Monitoring page**: Monitor query throughput, queued queries, and query history on the [monitoring page](https://docs.databricks.com/aws/en/compute/sql-warehouse/monitor/index.md) for each Lakehouse//RT warehouse.
* **Warehouses**: Lakehouse//RT warehouses appear in the [warehouses system table](https://docs.databricks.com/aws/en/admin/system-tables/warehouses.md).
* **Warehouse events**: Events for Lakehouse//RT warehouses appear in the [warehouse events system table](https://docs.databricks.com/aws/en/admin/system-tables/warehouse-events.md).
* **Billing**: Lakehouse//RT usage appears in the [billable usage system table](https://docs.databricks.com/aws/en/admin/system-tables/billing.md) with a `billing_origin_product` value of `LAKEHOUSE_REAL_TIME`.

## <a id="evaluate-your-workload" />Evaluate your workload

Before you move a workload to Lakehouse//RT, test it with your own queries and compare latency against your current warehouse:

1. Pick the queries that your application or dashboard runs most often, and confirm that they run in a few seconds on a serverless SQL warehouse.
2. Create a Lakehouse//RT warehouse and run the same queries on it. Use the same tables, so no data movement is required.
3. Fix any query that fails because it uses an [unsupported feature](https://docs.databricks.com/aws/en/compute/sql-warehouse/real-time.md#limitations) or exceeds a [guardrail](https://docs.databricks.com/aws/en/compute/sql-warehouse/real-time.md#guardrails).
4. Compare latency between the two warehouses in the [query history system table](https://docs.databricks.com/aws/en/admin/system-tables/query-history.md).

To compare median and 90th percentile latency between the two warehouses, run the following query and replace the placeholder IDs with your warehouse IDs. You need the `SELECT` privilege on the `system.query.history` table:

```sql
SELECT
  compute.warehouse_id,
  count(*) AS queries,
  percentile(total_duration_ms, 0.5) AS p50_ms,
  percentile(total_duration_ms, 0.9) AS p90_ms
FROM system.query.history
WHERE compute.warehouse_id IN ('<serverless-warehouse-id>', '<real-time-warehouse-id>')
  AND execution_status = 'FINISHED'
  AND start_time >= current_timestamp() - INTERVAL 1 DAY
GROUP BY compute.warehouse_id;
```

The query compares every finished query on each warehouse over the last day, so the results are comparable only when both warehouses ran the same workload. To limit the comparison to your test queries, set a [query tag](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-aux-conf-mgmt-set-query-tags.md) on them and filter on the `query_tags` column. See [Query history system table reference](https://docs.databricks.com/aws/en/admin/system-tables/query-history.md).

## <a id="guardrails" />Guardrails

To protect low latency for all queries, Lakehouse//RT enforces per-query resource limits. A query that exceeds a guardrail returns an error instead of running slowly, so design queries to stay well within these limits.

| Guardrail                       | Limit                                                                             | Error                                                             |
| ------------------------------- | --------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| Query runtime                   | 2 minutes                                                                         | `QUERY_RESOURCE_LIMIT_EXCEEDED` with the `QUERY_RUNTIME` subclass |
| Statement timeout               | 1 minute by default. You can configure it up to the 2-minute query runtime limit. | `QUERY_EXECUTION_TIMEOUT_EXCEEDED`                                |
| Shuffle bytes written per stage | 300 GB                                                                            | `QUERY_RESOURCE_LIMIT_EXCEEDED` with the `SHUFFLE_SIZE` subclass  |
| Spill size                      | 30 GB, when spill is enabled                                                      | `QUERY_RESOURCE_LIMIT_EXCEEDED` with the `SPILL_SIZE` subclass    |
| Files listed after pruning      | 10,000 files, adjustable up to 50,000                                             | `QUERY_RESOURCE_LIMIT_EXCEEDED` with the `FILE_LIMIT` subclass    |

Databricks can change these limits. The `QUERY_RESOURCE_LIMIT_EXCEEDED` error returns SQLSTATE `53400`.

Use the following approaches to stay within the limits:

* **Query runtime**: A query that approaches the limit doesn't meet the sub-second target even if it completes. Filter more or pre-aggregate.
* **Shuffle bytes**: Wide joins or aggregations across large tables can exceed the limit. Pre-aggregate with materialized views instead of joining large tables at query time.
* **Files listed**: Filter on partition or [liquid clustering](https://docs.databricks.com/aws/en/tables/clustering.md) columns so that the query reads only the files it needs.

## Data freshness

To keep latency low, Lakehouse//RT reuses recently cached table metadata. Query results can lag the latest commits to a table by a few seconds.

## <a id="prepare-your-workloads" />Prepare your workloads for Lakehouse//RT

Prepare your workloads before you move them to Lakehouse//RT. To test a workload end to end, see [Evaluate your workload](https://docs.databricks.com/aws/en/compute/sql-warehouse/real-time.md#evaluate-your-workload).

* Use Unity Catalog managed tables. Managed tables with [predictive optimization](https://docs.databricks.com/aws/en/optimizations/predictive-optimization.md) and [liquid clustering](https://docs.databricks.com/aws/en/tables/clustering.md) keep your data clustered for your query patterns.
* Verify queries are selective. For sub-second latency, verify that your queries scan less data. Filter early with `WHERE` clauses, select only the columns you require, and lean on aggregations. Joining across tables is supported, but if you find your query getting complex or slow, consider using materialized views that pre-aggregate your data for faster latencies.
* Check SQL coverage. Lakehouse//RT supports ANSI-compliant read queries and `CREATE TABLE AS SELECT` (CTAS) only. Confirm that your workloads are [ANSI compliant](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-ansi-compliance.md#sql-functions) and avoid the unsupported statements, functions, and data types listed under [Limitations](https://docs.databricks.com/aws/en/compute/sql-warehouse/real-time.md#limitations).

## Supported features

This section lists the tools, table types, and connection methods that Lakehouse//RT supports. For what it does not support, see [Limitations](https://docs.databricks.com/aws/en/compute/sql-warehouse/real-time.md#limitations).

### <a id="tools-and-interfaces" />Tools and interfaces

You can select Lakehouse//RT from the compute picker for any of the following Databricks features:

* [SQL editor](https://docs.databricks.com/aws/en/sql/user/sql-editor/index.md)
* [SQL notebooks](https://docs.databricks.com/aws/en/notebooks/notebook-compute.md#notebook-sql-warehouse)
* [AI/BI dashboards](https://docs.databricks.com/aws/en/ai-bi/index.md)
* [Catalog Explorer](https://docs.databricks.com/aws/en/catalog-explorer/index.md)
* [Alerts](https://docs.databricks.com/aws/en/sql/user/alerts/index.md)

To build AI/BI dashboards on a Lakehouse//RT warehouse, including guardrails and dashboard-specific limitations, see [Build AI/BI dashboards on Lakehouse Real-Time](https://docs.databricks.com/aws/en/compute/sql-warehouse/real-time-dashboards.md).

### Table types

Lakehouse//RT queries Unity Catalog data only. For best performance, use Unity Catalog [managed tables](https://docs.databricks.com/aws/en/tables/managed.md), which provide the engine with the data layout it needs for low latency.

Lakehouse//RT supports the following table types:

* [Managed tables](https://docs.databricks.com/aws/en/tables/managed.md) ([Delta Lake](https://docs.databricks.com/aws/en/delta/index.md) and [Apache Iceberg](https://docs.databricks.com/aws/en/iceberg/index.md) tables)
* [Materialized views](https://docs.databricks.com/aws/en/ldp/concepts/materialized-views.md) and [streaming tables](https://docs.databricks.com/aws/en/ldp/concepts/streaming-tables.md)
* [Metric views](https://docs.databricks.com/aws/en/uc-semantics/metric-views/index.md)
* [System tables](https://docs.databricks.com/aws/en/admin/system-tables/index.md). Access requires the `SELECT` privilege on the system tables you query.
* Lakebase tables in a catalog registered from a Lakebase database (Beta). Lakehouse//RT performs live, transactionally consistent reads on Lakebase tables directly from storage, with no pipeline and no load on your Lakebase compute. See [Query Lakebase tables with Lakehouse//RT](https://docs.databricks.com/aws/en/oltp/projects/query-lakehouse-rt.md).

### <a id="connectivity" />Connectivity

Lakehouse//RT only accepts connections that use the [Statement Execution API](https://docs.databricks.com/api/statement-execution/v2/statement-execution). It does not support the legacy Thrift protocol. A driver that sends queries to a Lakehouse//RT warehouse over Thrift receives an error with SQLSTATE `KP001`.

To connect a custom application or AI agent, see [Build applications and agents on Lakehouse Real-Time](https://docs.databricks.com/aws/en/compute/sql-warehouse/real-time-applications.md).

You can connect to a Lakehouse//RT warehouse in the following ways:

* **Statement Execution API:** Call the API directly from external applications. See [Statement Execution API: Run SQL on warehouses](https://docs.databricks.com/aws/en/dev-tools/sql-execution-tutorial.md). Two versions are available:
  * **[Statement Execution API version 2](https://docs.databricks.com/api/statement-execution/v2/statement-execution):** Use this version for the best Lakehouse//RT performance. It is optimized for Lakehouse//RT warehouses, with lower latency and higher concurrency, and takes `warehouse_id` as a path parameter on every call. It currently supports Lakehouse//RT warehouses only.
  * **[Statement Execution API version 1](https://docs.databricks.com/api/statement-execution/v1/statement-execution):** Works with all SQL warehouse types. You can also run statements on Lakehouse//RT warehouses with version 1, but version 2 is optimized for them.

* **Databricks drivers:** Point the driver's HTTP path at your Lakehouse//RT warehouse and use at least the version listed for the driver. From these versions, the driver detects Lakehouse//RT automatically and uses the connection path optimized for it, with no setting required. Earlier versions can connect with the setting listed, but with lower performance. Databricks recommends the latest driver version for full features and best performance.

  * **[Databricks SQL Connector for Python](https://docs.databricks.com/aws/en/dev-tools/python-sql-connector.md#statement-execution-api):** 4.9.0, installed with the `kernel` extra. Earlier versions: set `use_kernel=True`.
  * **[Databricks SQL Driver for Node.js](https://docs.databricks.com/aws/en/dev-tools/nodejs-sql-driver.md#statement-execution-api):** 3.0.0. Earlier versions: set `useKernel: true`.
  * **[Databricks SQL Driver for Go](https://docs.databricks.com/aws/en/dev-tools/go-sql-driver.md#statement-execution-api):** 1.19.0, built with the `databricks_kernel` tag. Earlier versions: set `WithUseKernel(true)`.
  * **[JDBC](https://docs.databricks.com/aws/en/integrations/jdbc-oss/properties.md):** 3.4.5. Earlier versions: set `UseThriftClient=0` in the connection URL.
  * **[Databricks OSS ODBC Driver (Beta)](https://docs.databricks.com/aws/en/integrations/odbc-oss/index.md):** 0.8.0. No additional configuration is required.

  > [!NOTE]
  >
  > A driver explicitly set to use Thrift, with `use_kernel=False`, `useKernel: false`, `WithUseKernel(false)`, or `UseThriftClient=1`, fails against a Lakehouse//RT warehouse with SQLSTATE `KP001`.

* **Supported tools:** The following tools connect to Lakehouse//RT through their own connectors:
  * **[Power BI (via ADBC driver)](https://docs.databricks.com/aws/en/partners/bi/power-bi/adbc.md#real-time):** Set `Implementation=2.0` and `Protocol=REST(SEA)` under **Advanced options**.
  * **[Databricks Excel Add-in](https://docs.databricks.com/aws/en/integrations/excel/index.md):** Select your Lakehouse//RT warehouse in the add-in's compute selector. Only imports are supported.

### Geospatial

Lakehouse//RT supports the `GEOGRAPHY` and `GEOMETRY` data types and the `st_` and `h3_` functions, except those listed under [Limitations](https://docs.databricks.com/aws/en/compute/sql-warehouse/real-time.md#limitations).

## <a id="fine-grained-access-control" />Fine-grained access control

Lakehouse//RT supports read queries on tables, materialized views, and streaming tables protected by row filters and column masks, including Unity Catalog built-in filters and masks. The filters and masks can be assigned directly to a table or applied through attribute-based access control (ABAC) policies. See [Row filters and column masks](https://docs.databricks.com/aws/en/data-governance/unity-catalog/filters-and-masks/index.md) and [Attribute-based access control in Unity Catalog](https://docs.databricks.com/aws/en/data-governance/unity-catalog/abac/index.md).

Use compute that supports policy management, such as a serverless SQL warehouse, to create or change row filters, column masks, and ABAC policies. Lakehouse//RT applies existing policies when reading tables. It does not support policy management statements or writes to tables with policies. For query restrictions, see [Fine-grained access control limitations](https://docs.databricks.com/aws/en/compute/sql-warehouse/real-time.md#fine-grained-access-control-limitations).

### <a id="column-mask-result-types" />Column mask result types

Lakehouse//RT casts the result of a column mask back to the column's declared data type using ANSI semantics. This applies to both table-level masks and ABAC masks. If the result cannot be cast to the column's type, the query fails.

For example:

* A mask that returns the string `'REDACTED'` for a `BOOLEAN` column causes the query to fail because the string cannot be cast to `BOOLEAN`.
* A mask that returns `FALSE` for an `INT` column produces the integer `0`.

On Databricks Runtime, a table-level column mask exposes the mask's return type to the query. Moving the same query to Lakehouse//RT can change its result type or cause a cast error. ABAC masks cast results back to the column type on both Databricks Runtime and Lakehouse//RT. Databricks recommends masking functions that return the same type as the column.

### Query plans and profiles for protected tables

For queries that use row filters or column masks, Lakehouse//RT limits the details shown in `EXPLAIN` output and [query profiles](https://docs.databricks.com/aws/en/sql/user/queries/query-profile.md) to protect information about the underlying data and policy logic:

* `EXPLAIN` output hides query steps that read protected data or apply policies. It also omits plan statistics.
* Query profiles hide these query steps and omit statistics for protected tables.

## <a id="troubleshooting" />Troubleshooting

The following table lists common errors and how to resolve them:

| Error                                                                                                                            | Cause                                                                                                                               | Resolution                                                                                                                                                                                                      |
| -------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Thrift protocol error (SQLSTATE `KP001`)                                                                                         | The driver connects over Thrift.                                                                                                    | Configure the driver to use the Statement Execution API. See [Connectivity](https://docs.databricks.com/aws/en/compute/sql-warehouse/real-time.md#connectivity).                                                |
| [`UNSUPPORTED_FEATURE`](https://docs.databricks.com/aws/en/error-messages/unsupported-feature-error-class.md) (SQLSTATE `0A000`) | The query uses a statement, function, data type, or table type that Lakehouse//RT doesn't support. The message names the feature.   | Rewrite the query to avoid the feature, or run it on a serverless SQL warehouse. See [Limitations](https://docs.databricks.com/aws/en/compute/sql-warehouse/real-time.md#limitations).                          |
| `QUERY_RESOURCE_LIMIT_EXCEEDED` (SQLSTATE `53400`)                                                                               | The query exceeds a guardrail. The error subclass (`QUERY_RUNTIME`, `SHUFFLE_SIZE`, `SPILL_SIZE`, or `FILE_LIMIT`) names the limit. | Filter earlier, select fewer columns, or pre-aggregate with materialized views. See [Guardrails](https://docs.databricks.com/aws/en/compute/sql-warehouse/real-time.md#guardrails).                             |
| `QUERY_EXECUTION_TIMEOUT_EXCEEDED`                                                                                               | The query runs longer than the statement timeout.                                                                                   | Optimize the query, or raise the statement timeout up to the query runtime limit.                                                                                                                               |
| A cast error on a table with a column mask                                                                                       | The mask returns a value that can't be cast to the column's type.                                                                   | Use a masking function that returns the column's data type. See [Column mask result types](https://docs.databricks.com/aws/en/compute/sql-warehouse/real-time.md#column-mask-result-types).                     |
| `403 Forbidden` when reading storage                                                                                             | A storage firewall blocks serverless compute.                                                                                       | Configure your firewall for serverless compute. See [Serverless compute firewall configuration](https://docs.databricks.com/aws/en/security/network/serverless-network-security/serverless-firewall-config.md). |

If an issue persists, collect the following information and contact Databricks support:

* The error message.
* An export of the query profile, including the raw query text.
* If the query runs in an AI/BI dashboard, a link to the dashboard.
* Confirmation that the same query runs on a serverless SQL warehouse.

## Pricing

For pricing information, see the [Databricks pricing page](https://www.databricks.com/product/pricing/databricks-lakehouse).

## <a id="limitations" />Limitations

When a query uses an unsupported feature, Lakehouse//RT returns an error naming the feature. To successfully run the query, use a serverless SQL warehouse instead.

### Tools and features

Lakehouse//RT does not support the following features:

* [Genie](https://docs.databricks.com/aws/en/genie/index.md), including Genie Agents
* Jobs tasks

### Table types

Lakehouse//RT does not support the following table types:

* Tables in Unity Catalog default storage
* External tables in Unity Catalog
* Hive metastore tables (managed or external)
* Foreign tables and query federation (Lakehouse Federation), except for catalogs registered from Lakebase databases, which are supported. See [Query Lakebase tables with Lakehouse//RT](https://docs.databricks.com/aws/en/oltp/projects/query-lakehouse-rt.md).
* Delta Sharing tables
* Temporary tables
* Tables that use other data formats (CSV, JSON, Avro, Parquet, ORC, and text)

### <a id="fine-grained-access-control-limitations" />Fine-grained access control limitations

Queries involving row filters or column masks have the following limitations:

* Change data feed reads using `table_changes` are not supported on protected tables.
* ABAC policies attached to views are not supported.
* Multiple `DISTINCT` argument sets in an aggregate inside a policy function fail with `UNSUPPORTED_FEATURE`. Aggregates that share the same `DISTINCT` arguments and aggregates in the outer query remain supported.

### Drivers and connectors

Lakehouse//RT does not support the Simba Spark ODBC Driver or the Databricks ODBC Driver. Use the [Databricks OSS ODBC Driver](https://docs.databricks.com/aws/en/integrations/odbc-oss/index.md) instead.

### SQL language

Lakehouse//RT runs SQL read queries in [ANSI mode](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-ansi-compliance.md) only. It evaluates all implicit type coercions and casts according to strict ANSI SQL rules, and this behavior cannot be turned off. Under ANSI semantics, queries that relied on non-ANSI behavior might:

* Raise a runtime error instead of silently producing `NULL`. For example, casting a non-numeric string to a number.
* Raise an analysis-time error when there is no safe common type. For example, `COALESCE`, `CASE`, `IN`, or set operations across incompatible types.
* Return a different result type than legacy mode, because ANSI string promotion and numeric widening choose safe, lossless types.

To get predictable results, use explicit `CAST` expressions when ANSI mode implicit conversions don't produce the behavior you expect.

Lakehouse//RT does not support the following:

* **Functions**: AI functions, Python UDFs, and XPath and XML functions.
* **Spatial functions**: `st_buffer`, `st_concavehull`, `st_simplify`, `st_envelope_agg`, and `st_union_agg`.
* **H3 functions**: `h3_tessellateaswkb`, `h3_try_tessellateaswkb`, and `h3_getpentagoncellids`.

Lakehouse//RT is for read (`SELECT`) queries and `CREATE TABLE AS SELECT` (CTAS). Other write and ETL commands are not supported, including:

* **Write operations**: `INSERT`, `UPDATE`, `DELETE`, and `MERGE`.
* **DDL**: `CREATE` (other than CTAS), `ALTER`, `DROP`, and other statements that create or modify objects.
* **Security statements**: `GRANT` and `REVOKE`.
* **Scripting, stored procedures, temporary tables, and multi-statement transactions.**
* **Delta Lake maintenance**: `OPTIMIZE`, `ANALYZE`, `VACUUM`, and `REFRESH`.

### Compliance

Lakehouse//RT does not support [compliance security profiles](https://docs.databricks.com/aws/en/security/privacy/security-profile.md).
