Forum Discussion
amaaiia
2 years agoSkilled Sharer
Duplicated rows between notebook and SQL Endpoint
I'm having troubles when trying to count the number of rows in my table from Lakehouse. If I count the rows from SQL Endpoint, I get 221555 rows, if I read the table from notebook and then I coun...
- 2 years ago
Hi all, there's apparently a bug where the metadata on which parquet file is the latest and greatest can get hosed up between the lakehouse SQL endpoint and the notebooks. I worked a ticket with Microsoft and they had me run the following code. After running it, wait 30 minutes or so to retry running the notebook. In my case this perfectly fixed the issue.
mssparkutils.fs.unmount("/default", {"scope": "default_lh"})sc._jvm.com.microsoft.spark.notebook.common.trident.TridentRuntimeContext.reset()sc._jvm.com.microsoft.spark.notebook.common.trident.TridentRuntimeContext.personalizeSession()Hope this helps,Scott
frithjof_v
2 years agoCommunity Champion
I created an idea: https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=cea60fc6-93f2-ee11-a73e-6045bd7cb2b6
Please vote if you want this issue to be fixed