i have a table which description is as follows:
# col_name data_type comment
id string
persona_model map<string,struct<score:double,tag:string>>
# Partition Information
# col_name data_type comment
process_date string
sample row would be something like this(tab separated):
000000E91010441BB122402A45D439E7 {"Tech":{"score":0.21678,"tag":"OTHERS"}} 2018-05-16-01
Now I want to form another table with only 2 columns id and its respective score in it.
How can i do it in scala spark?
Moreover, whats really bugging me is how can I access only a particular score and how can I store it in an integer variable lets say temp?