You are viewing documentation about an older version (1.2.0). View latest version

snowflake.snowpark.CaseExpr.when

CaseExpr.when(condition: ColumnOrSqlExpr, value: ColumnOrLiteral) CaseExpr[source]

Appends one more WHEN condition to the CASE expression.

Parameters:
  • condition – A Column expression or SQL text representing the specified condition.

  • value – A Column expression or a literal value, which will be returned if condition is true.