robin-sparkless 4.4.0

PySpark-like DataFrame API in Rust on Polars; no JVM.
Documentation
{
  "name": "format_string",
  "pyspark_version": "3.5.0",
  "input": {
    "schema": [
      {
        "name": "id",
        "type": "bigint"
      },
      {
        "name": "a",
        "type": "bigint"
      },
      {
        "name": "b",
        "type": "string"
      }
    ],
    "rows": [
      [
        1,
        5,
        "hello"
      ],
      [
        2,
        100,
        "world"
      ]
    ]
  },
  "operations": [
    {
      "op": "withColumn",
      "column": "v",
      "expr": "format_string('%d %s', col('a'), col('b'))"
    },
    {
      "op": "select",
      "columns": [
        "id",
        "a",
        "b",
        "v"
      ]
    }
  ],
  "expected": {
    "schema": [
      {
        "name": "id",
        "type": "bigint"
      },
      {
        "name": "a",
        "type": "bigint"
      },
      {
        "name": "b",
        "type": "string"
      },
      {
        "name": "v",
        "type": "string"
      }
    ],
    "rows": [
      [
        1,
        5,
        "hello",
        "5 hello"
      ],
      [
        2,
        100,
        "world",
        "100 world"
      ]
    ]
  }
}