Skip to content

Creating a File With Json and Bson Columns

Selfeer edited this page Nov 12, 2024 · 1 revision

JSON and BSON

Full example here

    {
      "name": "json_field",
      "schemaType": "optional",
      "physicalType": "BINARY",
      "logicalType": "JSON",
      "data": [
        "{\"key1\": \"value1\"}",
        "{\"key2\": \"value2\"}",
        "{\"key3\": \"value3\"}",
        "{\"key4\": \"value4\"}",
        "{\"key5\": \"value5\"}"
      ]
    },
    {
      "name": "bson_field",
      "schemaType": "optional",
      "physicalType": "BINARY",
      "logicalType": "BSON",
      "data": [
        "{\"key1\": \"value1\"}",
        "{\"key2\": \"value2\"}",
        "{\"key3\": \"value3\"}",
        "{\"key4\": \"value4\"}",
        "{\"key5\": \"value5\"}"
      ]
    }