I have a simple table:
CREATE TABLE t1
(
v1 Int32,
a1 Array(Int32),
s2 Array(String)
) ENGINE = Memory
but can't figure out how to insert String array:
insert into t1 format CSV 1,"[1,2]","[a1,a2]"
fails with the following error:
Exception on client:
Code: 26. DB::Exception: Cannot parse quoted string: expected opening quote:
Could not print diagnostic info because two last rows aren't in buffer (rare case)
: (at row 1)
Sorry, re-read documentation and found that Strings in arrays should be wrapped by single quote.
insert into t1 format CSV 1,"[1,2]","['a1','a2']"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With