Implementing multidimensional two-sided interval joins using sampling-based input-domain demarcation
AssigneeSnowflake Inc.
InventorsMatthias Carl Adams, Spyridon Triantafyllis, Lars Volker, Kevin Wang
Life of this patent
Estimating the term…
Loading patent…
AssigneeSnowflake Inc.
InventorsMatthias Carl Adams, Spyridon Triantafyllis, Lars Volker, Kevin Wang
Estimating the term…
In an embodiment, a data platform receives a query that includes a two-sided N dimensional interval join of first and second input relations. The data platform samples, with respect to each of one or more of the N dimensions, one or both of the first input relation and the second input relation with respect to an interval size of an interval determined from the input relation. The data platform demarcates the N dimensional input domain into non-overlapping N dimensional input-domain cells based on the sampling. The data platform implements the interval join using a query-execution plan that includes an equality join that is keyed on input-domain-cell identifiers of input-domain cells that at least partially overlap bounding polygons of the intervals determined from the first and second input relations. The equality join is followed in the query-execution plan by a filter that applies the interval-join predicate. The data platform obtains results of the query by executing the query-execution plan.
A method comprising:
A data platform comprising:
One or more non-transitory computer-readable storage media storing instructions that, when executed by one or more hardware processors, cause the one or more hardware processors to perform operations comprising:
Dependencies are inferred from the claim text.