maxIntersections
maxIntersections
Introduced in: v20.1
Aggregate function that calculates the maximum number of times that a group of intervals intersects each other (if all the intervals intersect at least once).
Syntax
Arguments
start_column— A numeric column that represents the start of each interval. Ifstart_columnisNULLor 0 then the interval will be skipped.(U)Int*orFloat*end_column— A numeric column that represents the end of each interval. Ifend_columnisNULLor 0 then the interval will be skipped.(U)Int*orFloat*
Returned value
Returns the maximum number of intersected intervals. UInt64
Examples
Calculating maximum intersections