{
  "version" : "6.0.0",
  "timestamp" : 1588893946308,
  "path" : "query-validation-tests/table.json",
  "schemas" : {
    "CTAS_OUTPUT_0.KsqlTopic. Source" : {
      "schema" : "`K` STRING KEY, `ID` BIGINT",
      "serdeOptions" : [ ]
    },
    "CTAS_OUTPUT_0.OUTPUT" : {
      "schema" : "`K` STRING KEY, `ID` BIGINT",
      "serdeOptions" : [ ]
    }
  },
  "testCase" : {
    "name" : "should not blow up on null key",
    "inputs" : [ {
      "topic" : "test_topic",
      "key" : "1",
      "value" : "1"
    }, {
      "topic" : "test_topic",
      "key" : null,
      "value" : "2"
    }, {
      "topic" : "test_topic",
      "key" : "1",
      "value" : "3"
    } ],
    "outputs" : [ {
      "topic" : "OUTPUT",
      "key" : "1",
      "value" : "1"
    }, {
      "topic" : "OUTPUT",
      "key" : "1",
      "value" : "3"
    } ],
    "topics" : [ {
      "name" : "OUTPUT",
      "replicas" : 1,
      "numPartitions" : 4
    }, {
      "name" : "test_topic",
      "replicas" : 1,
      "numPartitions" : 4
    } ],
    "statements" : [ "CREATE TABLE INPUT (K STRING PRIMARY KEY, ID bigint) WITH (kafka_topic='test_topic', value_format='DELIMITED');", "CREATE TABLE OUTPUT as SELECT * FROM INPUT;" ],
    "post" : {
      "sources" : [ {
        "name" : "INPUT",
        "type" : "TABLE",
        "schema" : "`K` STRING KEY, `ID` BIGINT",
        "keyFormat" : {
          "format" : "KAFKA"
        },
        "serdeOptions" : [ ]
      }, {
        "name" : "OUTPUT",
        "type" : "TABLE",
        "schema" : "`K` STRING KEY, `ID` BIGINT",
        "keyFormat" : {
          "format" : "KAFKA"
        },
        "serdeOptions" : [ ]
      } ],
      "topics" : {
        "topics" : [ {
          "name" : "test_topic",
          "keyFormat" : {
            "formatInfo" : {
              "format" : "KAFKA"
            }
          },
          "valueFormat" : {
            "format" : "DELIMITED"
          },
          "partitions" : 4
        }, {
          "name" : "OUTPUT",
          "keyFormat" : {
            "formatInfo" : {
              "format" : "KAFKA"
            }
          },
          "valueFormat" : {
            "format" : "DELIMITED"
          },
          "partitions" : 4
        } ]
      }
    }
  }
}