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:ย 

Unable to fetch 3rd level array using dot notation from a json data in local spark via VS Code

Ritasree
New Contributor II

I am able to fetch 3rd level array using dot notation from a json in Databricks but same code is not working in local spark via VS Code.

Example - df.select(F.col('x.y.z')) where x is array, y is array and z is also an array.

In local spark I am getting error parameter type mismatch.

2 REPLIES 2

szymon_dybczak
Esteemed Contributor III

Hi @Ritasree ,

When you're saying about local spark you mean that you've configured it locally, or are you using Databricks Connect? If you're configured spark locally, then check what version of Spark you're using.

I have configured it locally and Spark version is 3.5.1

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now