Leverage Bucket Join for optimized joins
mainWhen joining two large tables, Spark typically performs a Sort Merge Join, which requires an expensive shuffle and sort by the join key.
If the ClickHouse tables are already collocated by their join keys (using a layout compatible with Storage-Partitioned Join or V2 Bucket Join), the connector can leverage this existing ClickHouse table layout. This allows Spark to perform a Bucket Join, eliminating the need for the expensive shuffle and sort operations typically required by a standard Sort Merge Join.