C:\Users\Ross\Desktop\test.txt | clickhouse-client --database=stat --query="INSERT INTO regular FORMAT txt"; Получаю ошибку: Code: 62, e.displayText() = DB::Exception: Syntax error: failed at position 30: cat C:\Users\ForumHouse\Desktop\test.txt | clickhouse-client --database=stat --query="INSERT INTO email_regular FORMAT TXT";. Expected one of: CREATE TABLE or ATTACH TABLE query, SELECT query, possibly with UNION, SHOW [TEMPORARY] TABLES|DATABASES [[NOT] LIKE 'str'], SELECT query, subquery, possibly with UNION, Query, CREATE, EXISTS, ATTACH, DETACH, DROP, SHOW, DESCRIBE, DESC, USE, SET, SELECT, WITH, KILL, SELECT subquery, list of elements, ALTER query, ALTER TABLE, Query with output, SHOW PROCESSLIST query, SHOW PROCESSLIST, RENAME query, RENAME TABLE, SET query, SYSTEM query, EXISTS or SHOW CREATE query, USE query, CHECK TABLE, DESCRIBE query, DROP query, TRUNCATE, INSERT query, INSERT INTO, KILL QUERY query, OPTIMIZE query, OPTIMIZE TABLE, SELECT query. Подскажите пожалуйста, как ее побороть?
https://clickhouse.yandex/docs/ru/interfaces/formats/ здесь есть все форматы, вроде нет txt
>DB::Exception: Syntax error: failed at position 30: cat C:\Users\ForumHouse\Desktop\test.txt cat C:\Users\Ross\Desktop\test.txt | clickhouse-client это не sql запрос, вы пытаетесь команду линукса cat .... | выполнить как sql
Обсуждают сегодня