Closed siddhant3030 closed 1 year ago
this seems like a good use-case for doing it with python
@fatchat you can write python in macro. That's what I'm doing
here's the macro link https://github.com/DevDataPlatform/dbt_lahi/blob/main/macros/flatten_json.sql
I'm using a dbt macro to flatten the Lahi data. There are multiple state data in the DB. check the lahi_source.yml file. Our goal is to correct the dbt macro to fix all the column names which we're pulling from raw data.
this is what the expectation is
now if this is not possible then add the prefix. There will be some other issue as well. but we should be able to add more logic into this.