skip to Main Content

snowflake json data flatten in existing table fields

I have a snowflake table as below table name: raw_data id conv_type transcript 1 chat [{"by":"sys", "text":" can I help you?", "time":"2023-01-01 11:11:11", "comments":""},{"by":"person1", "text":" yes tell me", "time":"2023-01-01 11:12:11", "comments":""}] 2 phone [{"by":"sys", "text":" can I help you with?",…

VIEW QUESTION

Converting JSON/dict to flatten string with indicator tokens

Given an input like: {'example_id': 0, 'query': ' revent 80 cfm', 'query_id': 0, 'product_id': 'B000MOO21W', 'product_locale': 'us', 'esci_label': 'I', 'small_version': 0, 'large_version': 1, 'split': 'train', 'product_title': 'Panasonic FV-20VQ3 WhisperCeiling 190 CFM Ceiling Mounted Fan', 'product_description': None, 'product_bullet_point': 'WhisperCeiling fans feature…

VIEW QUESTION
Back To Top
Search