robin-sparkless 4.4.0

PySpark-like DataFrame API in Rust on Polars; no JVM.
Documentation
{
  "test_id": "ifnull",
  "pyspark_version": "3.5",
  "generated_at": "2025-10-27T14:13:29.172792",
  "input_data": [
    {
      "id": 1,
      "age": 25,
      "salary": 50000,
      "col1": null,
      "col2": "backup",
      "col3": "default"
    },
    {
      "id": 2,
      "age": 35,
      "salary": null,
      "col1": "primary",
      "col2": null,
      "col3": "default"
    },
    {
      "id": 3,
      "age": 45,
      "salary": 70000,
      "col1": "primary",
      "col2": "backup",
      "col3": null
    }
  ],
  "operation": "DataFrame operation: ifnull",
  "expected_output": {
    "schema": {
      "field_count": 1,
      "field_names": [
        "CASE WHEN (salary IS NULL) THEN 0 ELSE salary END"
      ],
      "field_types": [
        "long"
      ],
      "fields": [
        {
          "name": "CASE WHEN (salary IS NULL) THEN 0 ELSE salary END",
          "type": "long",
          "nullable": true
        }
      ]
    },
    "data": [
      {
        "CASE WHEN (salary IS NULL) THEN 0 ELSE salary END": 50000
      },
      {
        "CASE WHEN (salary IS NULL) THEN 0 ELSE salary END": 0
      },
      {
        "CASE WHEN (salary IS NULL) THEN 0 ELSE salary END": 70000
      }
    ],
    "row_count": 3
  }
}