Skip to main content

maxIntersections

Introduced in: v20.1.0 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. If start_column is NULL or 0 then the interval will be skipped. (U)Int* or Float*
  • end_column — A numeric column that represents the end of each interval. If end_column is NULL or 0 then the interval will be skipped. (U)Int* or Float*
Returned value Returns the maximum number of intersected intervals. UInt64 Examples Calculating maximum intersections
Query
Response
Last modified on July 2, 2026