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.not_

pyflink.table.expressions.not_#

not_(expression: Expression[bool]) → Expression[bool][source]#

Inverts a given boolean expression.

This method supports a three-valued logic by preserving NULL. This means if the input expression is NULL, the result will also be NULL.

The resulting type is nullable if and only if the input type is nullable.

Examples:

>>> not_(lit(True)) # False
>>> not_(lit(False)) # True
>>> not_(lit(None, DataTypes.BOOLEAN())) # None

Added in version 1.12.0.

previous

pyflink.table.expressions.or_

next

pyflink.table.expressions.current_database

On this page
  • not_()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.