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.