Hello, I have two JSON objects stored as strings in a Hive table.
I would like to combine them into a single JSON object in Hive. I'm running Hive 0.7, but am planning to upgrade soon so a solution that works in Hive 0.8 could be acceptable as well. For example, here's the data now: +-------------------------------------+-------------------------------+ | col1 | col2 | +-------------------------------------+-------------------------------+ | {"age":"Over 30","gender":"female"} | {"counter":"0","version":"1" | | {"age":"Over 30","gender":"female"} | {"counter":"4","version":"1" | | {"age":"Over 30","gender":"male"} | {"counter":"10","version":"1" | +-------------------------------------+-------------------------------+ And here's what I want to select: {"age":"Over 30","gender":"female","counter":"0","version":"1"} {"age":"Over 30","gender":"female","counter":"4","version":"1"} {"age":"Over 30","gender":"male","counter":"10","version":"1"} Thanks, Ike Walker