создать таблицу следующим образом:
create table xxx:
(
user_id bigint comment '',
order_count map<string,string> comment ''
) comment ''
PARTITIONED BY (`partition_date` string comment "")
row format delimited fields terminated by '\t' collection items
terminated by ',' map keys terminated by ':' lines terminated by '\n'
вставка sql this:
str_to_map(concat_ws(",",collect_set(concat_ws(':', datetime_type, cast(order_count as string)))),',',':')
при выборе показывает:
{"30d=2","365d"=3,"60d"="3","90d"="3","180d"="3"}
введите описание изображенияздесь
Я определил разделитель для каждой пары КВ ":", но почему по-прежнему показывался разделитель по умолчанию «=» и как показывать как {"30d:2","365d":3,"60d":"3","90d":"3","180d":"3"}
спасибо.