cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in inferring schema for streaming dataframe using json files

kickbuttowski
New Contributor II

Below is the pileine design in databricks and it's not working out , kindly look on this and let me know whether it will work or not , I'm getting json files of different schemas from directory under the root directory and it read all the files using inferred schema since it has same level of columns at a high level and it has changes inside the body column , post that i have tried to filter the column body based on the sink and it was working and in one type of json file there will be an array inside the body and i tried to explode it and it doesn't work and on other type of json file , it will be of single string inside the body and i tried to select as a seperate column and that doesn't work as well , so i want to understand that if im doing the infer schema , the other things will not work inside the data or not.

1 REPLY 1

AmanSehgal
Honored Contributor III

Could you please share some sample of your dataset and code snippet of what you're trying to implement?

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