Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Apache Pig - Convert bytearray(json) to bag or maps?
Here X contains one column named 'metadata' of type bytearray. But the actual content is a JSON i.e. the d is a JSON (keys as sId & cId) as shown below:
grunt> describe X
X: {metadata: bytearray}
grunt> dump X
Any idea how can I generate cId & sId as separate chararray columns?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment