When using the datagrip, choose the clickhouse driver which version is below or equals 0.3.1.
This works for me.