ā01-30-2022 08:01 AM
I tried to benchmark the Powerbi Databricks connector vs the powerbi Delta Lake reader on a dataset of 2.15million rows. I found that the delta lake reader used 20 seconds, while importing through the SQL compute endpoint took ~75 seconds.
When I look at the query profile in SQL compute I see that 50 seconds are spendt in the "Columnar To Row" step. This makes me rather suspicios, since I got the impression that with an updated PowerBI we would take advantage of "cloud fetch" which creates files containing Apache Arrow batches, which is a columnar format. So why the conversion to rows? Maybe it is not actually using cloud fetch? Is there any way to verify that I am actually using cloud fetch? Either in PowerBi logs or in the Databricks SQL compute endpoint web interface?
ā02-01-2022 06:28 AM
Hey @Kaniz Fatmaā, you are usually so fast to write that the community will probably help, and otherwise you will find someone at Databricks to help. But now it's been several days. Is everything OK with you?
ā02-07-2022 08:28 AM
@Erik Parmannā - We are looking for someone to help you. Thank you for your continued patience.
ā02-08-2022 01:44 AM
Hi everyone, we are facing exactly the same problem, result fetching takes far too long by connecting remotely via R Studio and ODBC for interactive workloads. We made sure to use the latest version of the ODBC Databicks connector together with the latest Databricks runtime with Cloud Fetch enabled. Unfortunately, without any effect. We tried:
ā02-14-2022 02:19 AM
WRT databricks-connect, we were able to fix the OOM error by increasing the memory of the local Spark driver instance which is used for the remote communication and runs in the background:
conf <- spark_config()
conf$`sparklyr.shell.driver-memory` <- "10G"
databricks_connect_spark_home <- system("databricks-connect get-spark-home", intern = TRUE)
sc <-
spark_connect(
method = "databricks",
spark_home = databricks_connect_spark_home,
config=conf
)
ā02-14-2022 03:20 AM
Thanks, but I have read that as well, which is why I am looking for a way to confirm that cloud fetch is actually working.
Databricks representative said that if we are using an update powerbi desktop version (I am using "2.100.1401.0 64-bit (desember 2021)") then this includes an updated version of the ODBC driver which sould use cloud fetch. Source. Can you confirm if this is right or wrong?
This is important for us because we have many users on powerbi, and it is a big difference for us if we just need to update their powerbi innstalation vs installing a custom odbc driver.
ā02-28-2022 06:52 AM
So I am on the latest version of Power BI Desktop and if I go to ODBC-Drivers and check the Simba driver it still shows 2.06.16.1019 which does not yet support cloudfetch
ā02-28-2022 07:10 AM
just an update after re-installing Power BI Desktop (download-able version):
if you check under C:\Program Files\Microsoft Power BI Desktop\bin\ODBC Drivers\Simba Spark ODBC Driver
you will see that it is actually a more recent version (2.6.18.1030) which should support cloud fetch
I had an older version of Simba Spark driver installed manually before - dont know which version Power BI was using then - but I uninstalled this one now and now Power BI can only use the most recent one it comes with
ā03-07-2022 03:02 AM
Thanks for the tip! I ventured into the powerbi folder (inside WindowsApps), and in the subfolder "bin\ODBC Drivers\Simba Spark ODBC Driver" I found the version by running "cat SparkODBC_sb64.dll | findstr Version". It printed "ProductVersion2.6.18.1030".
So this *should* support cloudfetch, but I still see the odd performance characteristics as described above. So my question still stands ( @Piper Wilsonā ), is there any way to *confirm* that cloud fetch has been used? This really seems like a thing one should be able to see some traces of in the Query Profile inside databricks.
ā05-24-2022 11:39 AM
@Arjun Kaimaparambil Rajanā can you maybe check the query with ID 01ecdb90-5d68-1f39-a597-c1ce377fab5a with
Start time: 2022-05-24 20:36:03.058 (UTC+2)
End time: 2022-05-24 20:37:37.461 (UTC+2)
?
ā05-25-2022 03:12 PM
@Erik Parmannā Yes. This query result fetch has cloud fetch enabled.
ā03-06-2022 04:13 PM
@Erik Parmannā - Does @Gerhard Bruecklā's answer help?
ā03-07-2022 03:02 AM
It helps, but it did not solve it. See my reply to him.
ā05-18-2022 02:41 AM
Hi @Erik Parmannā did you have a chance to look at this document?
https://docs.databricks.com/integrations/bi/jdbc-odbc-bi.html#arrow-serialization-in-odbc
ā05-24-2022 11:31 AM
Yes, thanks. In my case we are using Azure databricks, and I am not able to find an equally detailed description of cloud fetch on azure databricks, and if there are any settings we might have which dissables it.
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonāt want to miss the chance to attend and share knowledge.
If there isnāt a group near you, start one and help create a community that brings people together.
Request a New Group