cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform 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?

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