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 DataStream
  • PyFlink Common

pyflink.table.expressions.lit#

lit(v, data_type: Optional[pyflink.table.types.DataType] = None) → pyflink.table.expression.Expression[source]#

Creates a SQL literal.

The data type is derived from the object’s class and its value. For example, lit(12) leads to INT, lit(“abc”) leads to CHAR(3).

Example:

>>> tab.select(col("key"), lit("abc"))

New in version 1.12.0.

previous

pyflink.table.expressions.col

next

pyflink.table.expressions.range_

Show Source

Created using Sphinx 4.5.0.