Skip to main content
Ctrl+K
PyFlink 1.20+vvr.11.7.dev0 documentation - Home PyFlink 1.20+vvr.11.7.dev0 documentation - Home
  • API Reference
  • Examples
  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
    • TableEnvironment
    • Table
    • Data Types
    • Window
    • Expressions
    • User Defined Functions
    • Descriptors
    • StatementSet
    • Catalog
  • PyFlink DataStream
  • PyFlink DataFrame
  • PyFlink Common
  • API Reference
  • PyFlink Table
  • Expressions
  • pyflink.table.expressions.temporal_overlaps

pyflink.table.expressions.temporal_overlaps#

temporal_overlaps(left_time_point, left_temporal, right_time_point, right_temporal) → Expression[source]#

Determines whether two anchored time intervals overlap. Time point and temporal are transformed into a range defined by two time points (start, end). The function evaluates left_end >= right_start && right_end >= left_start.

e.g.
temporal_overlaps(

lit(“2:55:00”).to_time, lit(1).hours, lit(“3:30:00”).to_time, lit(2).hours) leads to true.

Parameters:
  • left_time_point – The left time point

  • left_temporal – The time interval from the left time point

  • right_time_point – The right time point

  • right_temporal – The time interval from the right time point

Returns:

An expression which indicates whether two anchored time intervals overlap.

Added in version 1.12.0.

previous

pyflink.table.expressions.to_timestamp_ltz

next

pyflink.table.expressions.date_format

On this page
  • temporal_overlaps()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.