snowflake.snowpark.functions.sql_expr¶
- snowflake.snowpark.functions.sql_expr(sql: str, *, is_constant: bool = False) Column[source]¶
Creates a
Columnexpression from raw SQL text. Note that the function does not interpret or check the SQL text.- Parameters:
sql – The raw SQL text to embed as a column expression.
is_constant – When
True, indicates thatsqlis a constant value (for example an object/array/scalar literal) that does not reference any input columns. This allows the SQL simplifier to treat the expression as having no column dependencies.
- Example::