Databricks-connect VSCode debugging pandas_api not working
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 12:42 AM
Hi
I am using the databricks extension on VSCode and am running against an issue since two days, prior it worked fine. I receive an error when I want to use Pandas-on-Spark during debugging.
from databricks.connect import DatabricksSession
spark = DatabricksSession.builder.getOrCreate()
df = spark.sql('select 1')
print(df.count()) # ---> printing 1
df.pandas_api().describe()If I look deeper it seems that SPARK_REMOTE was not set and therefor the error is thrown.
Can anyone pinpoint what I did wrong.
I did following steps already:
- reinstall databricks-connect
- reinstall extension
- other cluster
- other cluster with DBR 13.1 (and corresponding databricks-connect)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 01:28 AM
Additional info:
It seems that the issue comes from the 1.1.0 version of the databricks extension in VSCode.
Downgrading to 1.0.0 solves my issue.