NB: the EXCEPT clause works with ephemeral types rather strangely (see the tests). It is also possible to exclude every single column via HTTP + streams, and the query does not fail, though the data is not inserted - I couldn't simulate that via CLI as it does not allow empty values. It is also possible to exclude a column that does not exist (same in the CLI). All of this is to be investigated.
Checklist
[x] Unit and integration tests covering the common scenarios were added
[x] A human-readable description of the changes was provided to include in CHANGELOG
Summary
It is now possible to either specify a list of columns to insert the data into or a list of excluded columns:
Added more examples:
Resolves https://github.com/ClickHouse/clickhouse-js/issues/217
NB: the
EXCEPT
clause works with ephemeral types rather strangely (see the tests). It is also possible to exclude every single column via HTTP + streams, and the query does not fail, though the data is not inserted - I couldn't simulate that via CLI as it does not allow empty values. It is also possible to exclude a column that does not exist (same in the CLI). All of this is to be investigated.Checklist