Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
    • TableEnvironment
    • Table
    • Data Types
    • Window
    • Expressions
    • User Defined Functions
    • Descriptors
    • StatementSet
    • Catalog
  • PyFlink DataFrame
  • PyFlink Multimodal
  • PyFlink DataStream
  • PyFlink Common

pyflink.table.expression.Expression.then#

Expression.then(if_true, if_false) → pyflink.table.expression.Expression[source]#

Ternary conditional operator that decides which of two other expressions should be evaluated based on a evaluated boolean condition.

e.g. lit(42).is_greater(5).then(“A”, “B”) leads to “A”

Parameters
  • if_true – expression to be evaluated if condition holds

  • if_false – expression to be evaluated if condition does not hold

New in version 1.12.0.

previous

pyflink.table.expression.Expression.not_between

next

pyflink.table.expression.Expression.if_null

Show Source

Created using Sphinx 4.5.0.