I have a delta live table pipeline which reads from a delta table then applies 3 layers of transformations before merging the legs of the pipeline and outputting. I am getting this error when I run my pipeline against unity catalog.
```
org.apache.spark.sql.streaming.StreamingQueryException: [STREAM_FAILED] Query [id = f2bfb7c2-7e2a-4f61-9336-aaffdee60ef8, runId = af5e6775-35ad-486e-bfb6-1f0f6102c389] terminated with exception: [INSUFFICIENT_PERMISSIONS] Insufficient privileges: User does not have permission SELECT on any file.
org.apache.spark.SparkSecurityException: [INSUFFICIENT_PERMISSIONS] Insufficient privileges: User does not have permission SELECT on any file.
```
In the first step of the pipeline it applies some filters and transformation logic that is configured with an azure sql database. The second step of the pipeline it joins against data in the same azure sql database.
My pipeline is not using a cluster policy and it has photon enabled.
Steps I have done to debug
1. I shut off the join logic and just passed the input to table 2 as the output, it works fine
2. I have run the exact join code against the input table data inside of a databricks notebook with no errors
3. I have run the exact pipeline against hive metastore with no errors
4. I have compared the query execution plans from the log4j logs for the pipeline to the query plan from my notebook and there isnt anything that sticks out. I have also meticulously combed over the logs for any other clues to no avail.
also, I have gotten this error before and it was masking other issues then that were not directly related to permissions.