Skip to main content
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
abm_chris
New Contributor III

Python Notebook duckdb/delta intermittent permission errors

Hi, 

I have been having intermittent issues over the past couple of weeks with duckdb executing sql queries and getting the below error:

IOException: IO Error: Hit DeltaKernel FFI error (from: While trying to read from delta table: '{table}'): Hit error: 8 (ObjectStoreError) with message (Error interacting with object store: Generic LocalFileSystem error: Unable to open file {table}/_delta_log/00000000000000000228.json: Permission denied (os error 13))

This isn't isolated to one table or file but seems to randomly happen at any point in time. I have had a period of around 10 days it hasn't reoccured until yesterday.

 

Has anyone had experience with this issue before?

1 ACCEPTED SOLUTION
Shahid12523
Honored Contributor

The error is from DuckDBโ€™s Delta Kernel when reading _delta_log files โ€” itโ€™s not a real permission issue, but an intermittent I/O/concurrency bug in Fabric.

โœ… Fixes 

Add retry logic around DuckDB queries.

Avoid concurrent Spark + DuckDB reads on the same table.

Keep DuckDB/Fabric runtime updated.

If critical, use Spark SQL instead of DuckDB for stability.

๐Ÿ‘‰ Itโ€™s a platform-side intermittent bug, not your config.

Shahed Shaikh

View solution in original post

7 REPLIES 7
BhaveshPatel
Honored Contributor

You can observe such issues with Microsoft Fabric Delta Lake. It is an open source & relatively new platform. But my question is why are you using Duckdb. 

Instead use pyspark and delta lake to get in memory engine features.



python --> pyspark --> delta lake. This is how databricks has designed the data architecture.

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.
cvonredapt
New Contributor

I will admit to not knowing anything about DuckDB, but since this sounds like an intermittent issue, it may be a concurrency issue. I have encountered concurrency issues in Databricks, and this sounds like it may be a similar issue. Thank you for poking my curiousity on DuckDB. I am a fan of pyspark, but it is always good to have my horizons expanded. 

 

v-lgarikapat
Valued Contributor III

Hi @abm_chris ,

Thanks for reaching out to the Microsoft fabric community forum.,

@cvonredapt , @BhaveshPatel , 

Thanks for your prompt response

@abm_chris ,  

 

I wanted to follow up and confirm whether youโ€™ve had the opportunity to review the information provided by @cvonredapt , @BhaveshPatel . If you have any questions or need further clarification, please donโ€™t hesitate to reach out.

 

We appreciate your collaboration and support!

Best regards,
Lakshmi.

Shahid12523
Honored Contributor

The error is from DuckDBโ€™s Delta Kernel when reading _delta_log files โ€” itโ€™s not a real permission issue, but an intermittent I/O/concurrency bug in Fabric.

โœ… Fixes 

Add retry logic around DuckDB queries.

Avoid concurrent Spark + DuckDB reads on the same table.

Keep DuckDB/Fabric runtime updated.

If critical, use Spark SQL instead of DuckDB for stability.

๐Ÿ‘‰ Itโ€™s a platform-side intermittent bug, not your config.

Shahed Shaikh

This is what I was expecting it to be. Have added retry logic in for now and hopefully gets fixed soon.

Data is too small to consider spark which is why we went with the DuckDB pattern, just strange it has been fine for months and suddenly an issue.

v-lgarikapat
Valued Contributor III

Hi @abm_chris  Thank you for sharing this workaround it's truly appreciated and will be incredibly helpful for others in the community.

 

We truly appreciate your continued engagement and thank you for being an active and valued member of the community.

 

Best Regards,

Lakshmi.

I'll still be waiting for a fix from PG ๐Ÿ‘

Helpful resources

Announcements
Users online (9,586)