robin-sparkless 4.4.0

PySpark-like DataFrame API in Rust on Polars; no JVM.
Documentation
{
  "name": "struct_test",
  "pyspark_version": "3.5.0",
  "input": {
    "schema": [
      {
        "name": "id",
        "type": "bigint"
      },
      {
        "name": "a",
        "type": "int"
      },
      {
        "name": "b",
        "type": "string"
      }
    ],
    "rows": [
      [
        1,
        10,
        "x"
      ],
      [
        2,
        20,
        "y"
      ]
    ]
  },
  "operations": [
    {
      "op": "withColumn",
      "column": "st",
      "expr": "struct(col('a'), col('b'))"
    },
    {
      "op": "select",
      "columns": [
        "id",
        "a",
        "b",
        "st"
      ]
    }
  ],
  "expected": {
    "schema": [
      {
        "name": "id",
        "type": "bigint"
      },
      {
        "name": "a",
        "type": "int"
      },
      {
        "name": "b",
        "type": "string"
      },
      {
        "name": "st",
        "type": "struct<a:int,b:string>"
      }
    ],
    "rows": [
      [
        1,
        10,
        "x",
        [
          10,
          "x"
        ]
      ],
      [
        2,
        20,
        "y",
        [
          20,
          "y"
        ]
      ]
    ]
  }
}