Closed calebeaires closed 4 years ago
This error is produced by ClickHouse itself. Looks like you have different number of columns in your table (17) and in your data (16).
Also you're using wrong NULL representation which must be replaced with \N
. (Something like Null character).
I suggest to:
You can also insert you data using native http interface to be sure that your data and query is valid
cat data.tsv | curl -v \
http://localhost:8123/ \
--data-urlencode 'query=INSERT INTO "table" FORMAT TabSeparated' \
--data-binary @-
Here is the fix for command above. Sorry for wrong hint.
cat data.tsv | \
cat <(echo 'INSERT INTO "table" FORMAT TabSeparated') - | \
curl -v http://localhost:8123/ --data-binary @-
It works. thanks
This code process a simple TSV and get broken when instead of String data type it is used Int.
parsed text: <EMPTY>ERROR: garbage after Nullable(Int64): "NULL<LINE FEED>112<TAB>S"
the create table schema
code to do the magic
the TSV
the helpful but not so loved error