Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2023 06:20 AM
It appears the problem is that the json files have keys with spaces in the names, like this:
"CT App Version":"3.5.6.6"
I've checked and that is supposedly a valid json key, even though it's not standard. Unfortunately, these files are generated by a third-party, so I don't have a lot of control over the content.
It looks like there might be a solution if I use python for the auto-loader, as I think I need to do something like this:
select([col(c).alias(c.replace(" ", "_")) for c in dlt.readStream("vw_raw").columns])
However, I am a DB guy, not a python guy. Is there something equivalent available for the SQL version of the loader?