robin-sparkless 4.4.0

PySpark-like DataFrame API in Rust on Polars; no JVM.
Documentation
{
  "name": "conditional_when_otherwise",
  "pyspark_version": "3.5",
  "input": {
    "schema": [
      {
        "name": "id",
        "type": "string"
      },
      {
        "name": "age",
        "type": "string"
      },
      {
        "name": "salary",
        "type": "string"
      },
      {
        "name": "col1",
        "type": "string"
      },
      {
        "name": "col2",
        "type": "string"
      },
      {
        "name": "col3",
        "type": "string"
      }
    ],
    "rows": [
      [
        1,
        25,
        50000,
        null,
        "backup",
        "default"
      ],
      [
        2,
        35,
        null,
        "primary",
        null,
        "default"
      ],
      [
        3,
        45,
        70000,
        "primary",
        "backup",
        null
      ]
    ]
  },
  "operations": [],
  "expected": {
    "schema": [
      {
        "name": "id",
        "type": "string"
      },
      {
        "name": "age",
        "type": "string"
      },
      {
        "name": "salary",
        "type": "string"
      },
      {
        "name": "col1",
        "type": "string"
      },
      {
        "name": "col2",
        "type": "string"
      },
      {
        "name": "col3",
        "type": "string"
      }
    ],
    "rows": [
      [
        "1",
        "25",
        "50000",
        null,
        "backup",
        "default"
      ],
      [
        "2",
        "35",
        null,
        "primary",
        null,
        "default"
      ],
      [
        "3",
        "45",
        "70000",
        "primary",
        "backup",
        null
      ]
    ]
  }
}