cancel
Showing results for 
Search instead for 
Did you mean: 
Community Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
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 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!