how do I set the charset when using clickhouse-client import CSV

864 Views Asked by At

how do I set the charset when using clickhouse-client import CSV

clickhouse-client --query="INSERT INTO test FORMAT CSV" < test.csv

I want to set charset="UTF-8" but not find A option

1

There are 1 best solutions below

0
On

No such feature.

CH does not have charsets. CH stores Strings as is.

CH understands BOM automatically.

Just execute clickhouse-client --query="INSERT INTO test FORMAT CSV" < test.csv It should work.