robin-sparkless 4.4.0

PySpark-like DataFrame API in Rust on Polars; no JVM.
Documentation
{
  "name": "named_struct_test",
  "pyspark_version": "3.5.0",
  "input": {
    "schema": [
      {
        "name": "id",
        "type": "bigint"
      },
      {
        "name": "x",
        "type": "int"
      },
      {
        "name": "y",
        "type": "int"
      }
    ],
    "rows": [
      [
        1,
        100,
        200
      ],
      [
        2,
        300,
        400
      ]
    ]
  },
  "operations": [
    {
      "op": "withColumn",
      "column": "st",
      "expr": "named_struct('foo', col('x'), 'bar', col('y'))"
    },
    {
      "op": "select",
      "columns": [
        "id",
        "x",
        "y",
        "st"
      ]
    }
  ],
  "expected": {
    "schema": [
      {
        "name": "id",
        "type": "bigint"
      },
      {
        "name": "x",
        "type": "int"
      },
      {
        "name": "y",
        "type": "int"
      },
      {
        "name": "st",
        "type": "struct<foo:int,bar:int>"
      }
    ],
    "rows": [
      [
        1,
        100,
        200,
        [
          100,
          200
        ]
      ],
      [
        2,
        300,
        400,
        [
          300,
          400
        ]
      ]
    ]
  }
}