I have a table in athena with this structure
CREATE EXTERNAL TABLE `json_test`(
`col0` string ,
`col1` string ,
`col2` string ,
`col3` string ,
`col4` string ,
)
ROW FORMAT SERDE
'org.apache.hadoop.hive.serde2.OpenCSVSerde'
WITH SERDEPROPERTIES (
'quoteChar'='\"',
'separatorChar'='\;')
A Json String like this is stored in "col4":
{'email': 'test_email@test_email.com', 'name': 'Andrew', 'surname': 'Test Test'}
I´m trying to make a json_extract query:
SELECT json_extract(col4 , '$.email') as email FROM "default"."json_test"
But the query returns empty values.
Any help would be appreciated.