CREATE TABLE testjoni2
(
servingrestriction String,
time DateTime,
userid String,
ip String,
advertiserid String,
orderid String,
optimizationtype String
)
ENGINE = MergeTree(time, time, 8192);Code: 169, e.displayText() = DB::Exception: Could not find Date column: (while initializing MergeTree partition key from date column `time`) (version 19.11.2.7 (official build))
sHoWhat to about it?
Thanks
'clickhouse-client' is not recognized as an internal or external command,
operable program or batch file.cat *.csv | curl 'http://localhost:8123/?date_time_input_format=best_effort&query=INSERT%20INTO%20clickdb.testjoni3%20FORMAT%20CSV' --data-binary @-
Code: 27, e.displayText() = DB::Exception: Cannot parse input: expected , before: :53,
Row 1:
Column 0, name: servingrestriction, type: String, parsed text: <EMPTY>
Column 1, name: time, type: DateTime, parsed text: "2019-07-20-13:56"
ERROR: garbage after DateTime: ":53,,0.0.0"
ERROR: DateTime must be in YYYY-MM-DD hh:mm:ss or NNNNNNNNNN (unix timestamp, exactly 10 digits) format.
(version 19.11.2.7 (official build)) cat test.csv | curl 'http://localhost:8123/?date_time_input_format=best_effort&input_format_allow_errors_num=10&query=INSERT%20INTO%20clickdb.testjoni4%20FORMAT%20CSV' --data-binary @-
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4260 0 106 100 4154 1139 44666 --:--:-- --:--:-- --:--:-- 45806Code: 32, e.displayText() = DB::Exception: Attempt to read after eof (version 19.11.2.7 (official build))