It is basically get the first word in uppercase from table2.col2.
The TOS gives the error "type of the expression must be an array but it resolved to string"
How do I resolve this?
The generated Select statement runs through Hive command line successfully.