cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Databricks-connect VSCode debugging pandas_api not working

FabriceDeseyn
Contributor

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()

FabriceDeseyn_0-1689838667900.png

If I look deeper it seems that SPARK_REMOTE was not set and therefor the error is thrown.

FabriceDeseyn_1-1689838868477.png

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)

 

1 REPLY 1

FabriceDeseyn
Contributor

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.

Connect with Databricks Users in Your Area

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