Hyperjoin examples
Join tables from different clusters and different types of data sources in one query.
Joins in Cloudera SQL Stream Builder (SSB) are called hyperjoins, because SSB can join several tables in a single query. Because each Kafka table is created from a data source, a join can span several Kafka clusters, and several types of sources, for example Kafka and a database. Each Kafka cluster in a join must be reachable from the engine instance. For the clusters that SSB can reach, see Kafka clusters that you can connect to.
Join Kafka clusters in different zones
The following query joins the user scores of two Kafka clusters in different zones:
SELECT us_west.user_score + ap_south.user_score
FROM kafka_in_zone_us_west us_west
FULL OUTER JOIN kafka_in_zone_ap_south ap_south
ON us_west.user_id = ap_south.user_id;
