SQL analytics endpoint
Query a lakehouse without writing its data
The SQL analytics endpoint exposes a T-SQL reading interface to supported Lakehouse Delta tables. Its read-only restriction concerns underlying table data; supported SQL metadata objects such as views can be created with appropriate permissions. To change the data, use an approved Lakehouse writer such as Spark or an ingestion process. Warehouse offers supported SQL DDL and DML. Verify the actual surface and permissions before designing a load.
Metadata sync and security boundaries
The endpoint synchronizes table definitions and data visibility from Lakehouse storage. A committed change may not immediately appear through SQL. Check the committed table version, endpoint schema, and read results independently before reporting readiness. On-demand metadata synchronization is a documented option; inspect the current capabilities rather than assume universal support or timing. SQL endpoint grants are not a blanket guarantee of authorization through other engines or OneLake paths.
Worked example 1 — read-only revenue query
Once model-ready tables exist, execute this query on the authorized SQL surface. The offline verifier uses SQLite with ISO text dates instead of Fabric DATE types. Both use the same half-open predicate.
SELECT SUM(RevenueCents) AS RevenueCentsFROM FactSalesWHERE SaleDate >= '2025-01-01' AND SaleDate < '2025-02-01';Expected January result: 16,000 cents (L1 10,000 + L2 6,000); L3 on February 1 is excluded. The query does not modify rows. queries.sql contains five read-only statements; the verifier executes them in query-only SQLite.
Worked example 2 — check endpoint readiness
Suppose the data producer adds nullable Channel to the validated table. First review the source schema and compatibility contract, then inspect the endpoint metadata with a supported catalog query, for example:
SELECT COLUMN_NAME, DATA_TYPEFROM INFORMATION_SCHEMA.COLUMNSWHERE TABLE_SCHEMA = 'dbo' AND TABLE_NAME = 'FactSales';This is an illustrative Fabric query, not executed locally. Use the actual schema/table name. Do not publish a report dependent on Channel until it is visible and typed as intended, its values have been checked, and the model is updated. A numeric-to-text change of UnitCents is incompatible for the current contract.
Read/write and consistency pitfalls
Do not send INSERT, UPDATE or DELETE against Lakehouse endpoint table data. Even a Warehouse write interface requires authorization. Fabric Warehouse supports declared key constraints with NOT ENFORCED, so they do not substitute for ETL uniqueness and orphan checks. Avoid assuming the endpoint automatically sees arbitrary Files content as tables. Test views, data types and source-to-SQL reconciliation after changes; native synchronization behavior and duration are not measured here.
Practice and references
Run the five read-only queries via python verify.py in the lab folder. Record totals, empty duplicate/orphan audits and expected SQL catalog results for the proposed schema change. Compare endpoint permissions with the loader identity. See endpoint documentation, metadata sync, performance considerations, SQL surface and permissions.