How to convert a Hive array<struct> to string?

Viewed 20

The field I have in Hive has the following structure:

array<struct<`field1`:string, `field2`:string, `field3`:array<string>, `field4`:timestamp>>

What I need is to get the JSON string out of it.

the simple case to string did't work. I then tried the brickhouse UDF (to_json) but it was throwing many errors .. probably because it's not up-to-date.

Is it ever possible?

0 Answers
Related