So, I have external tabulated delimited data tables. A simple table looks like this:
create external table if not exists categories (id string, tag string, legid string, image string, parent string, created_date string, time_stamp int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' LOCATION 's3n://somewhere/';
Now I add another field to the end, it will be a comma separated list of values.
Is there a way to indicate this in the same way that I specify a field terminator, or do I need to rely on one of the seds?
eg:
...list_of_names ARRAY<String>) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' ARRAY ELEMENTS SEPARATED BY ',' ...
(I assume that I will need to use a heart for this, but I decided that there was no harm in the request)
source share