aliyun-maxcompute-data-collectors
aliyun-maxcompute-data-collectors copied to clipboard
【Spark-connector】datatype json not support
RT. ============= In MaxCompute =============== CREATE TABLE json_table ( json_val json );
CREATE TABLE string_table ( string_val STRING );
INSERT INTO string_table VALUES ('{"a":1, "b":2}') ,('{"a":"key", "b":2}') ,('{"c":3}');
INSERT INTO json_table SELECT json_parse(string_val) FROM string_table;
============ In spark ================
select * from json_table with error " json not supportes"
OK, we will support this feature in future versions, thank you