v.18.16New Feature
New Options for Creating Join Type Tables in ClickHouse
Now you can specify the optionsjoin_use_nulls,max_rows_in_join,max_bytes_in_join, andjoin_overflow_modewhen creating aJointype table. Amos Bird
Why it matters
These options provide users with enhanced control over the behavior and resource limits ofJoin tables. This helps prevent excessive memory usage and manage join handling more effectively, avoiding potential performance degradation or failures in large join operations.How to use it
When creating a table with theJoin engine, specify the new options in the table definition. For example:CREATE TABLE join_table
(
key UInt64,
value String
)
ENGINE = Join
SETTINGS join_use_nulls = 1, max_rows_in_join = 1000000, max_bytes_in_join = 1000000000, join_overflow_mode = 'any'Adjust these settings according to your data size and join requirements to control join behavior and resource usage.