Hi @shan_chandra, unfortunately this is in the context of creating a DLT, so if I update as suggested, I get the following error:

```

org.apache.spark.sql.AnalysisException: The following code at '/Repos/services+databricks@umccr.org/data-portal-analytics/delta_live_tables/silver/silver_portal_dlt' is not supported in a DLT pipeline: CREATE OR REPLACE FUNCTION silver.portal.get_workf... Please correct your code and make sure you only have DLT statements. For reference: DLT currently accepts 'CREATE MATERIALIZED VIEW', 'CREATE STREAMING TABLE', 'APPLY CHANGES INTO', and 'SET' statements.

```