Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
  • PyFlink DataFrame
    • DataFrame
    • DataFrame Creation
    • Input/Output
    • SQL
    • Data Types
    • User Defined Functions
    • Configuration
    • Catalog
    • GPU Support
    • AI / LLM
  • PyFlink Multimodal
  • PyFlink DataStream
  • PyFlink Common

pyflink.dataframe.lit#

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

Create a literal expression.

Parameters
  • value – The literal value.

  • data_type – Optional data type for the literal.

Returns

Expression representing the literal.

Example::
>>> import pyflink.dataframe as pf
>>> pf.lit(1)
>>> pf.lit("hello")
>>> pf.lit(1.5, DataTypes.DOUBLE())

previous

pyflink.dataframe.col

next

pyflink.dataframe.proctime

Show Source

Created using Sphinx 4.5.0.