The error you are encountering when querying the event log in Delta Live Tables (DLT) with Direct Publish mode is a known limitation. Specifically, the event log Table-Valued Function (TVF) does not work in Direct Publishing Mode. This is documented in the private preview guide for DLT Direct Publishing Mode.
As a workaround, you can directly query the delta table that stores the pipelineโs event log. The event log for a Direct Publishing pipeline is stored in a specific format:
- Default Catalog: The catalog specified in the pipeline settings.
- Default Schema: The schema specified in the pipeline settings.
- Underscored Pipeline ID: The pipelineโs UUID with dashes replaced by underscores.
For example, if your pipeline ID is 5e9e3c89-2a4b-4dcd-baaf-48f58c2c54ae
, and the default catalog and schema are catalog
and test
respectively, the event log table would be named catalog.test.__5e9e3c89_2a4b_4dcd_baaf_48f58c2c54ae_event_log
.