BS_THE_ANALYST
Esteemed Contributor III

Could you build out the schema dynamically by using something like this:

BS_THE_ANALYST_0-1752761847085.png

https://docs.databricks.com/aws/en/sql/language-manual/functions/schema_of_json 

Perhaps there's a way to store your JSON in a variable and inject it into the function. I'm hopeful there'll be other routes aswell.

All the best,
BS