From 743f5d3b03afbd637d02582abea0eee852912b3d Mon Sep 17 00:00:00 2001 From: Almog Gavra Date: Wed, 24 Feb 2021 18:53:40 -0800 Subject: [PATCH] chore: remove unnecessary output schema in serde QTT (#7096) --- .../query-validation-tests/serdes.json | 57 ------------------- 1 file changed, 57 deletions(-) diff --git a/ksqldb-functional-tests/src/test/resources/query-validation-tests/serdes.json b/ksqldb-functional-tests/src/test/resources/query-validation-tests/serdes.json index f4dc072edcb8..91f025ffa88c 100644 --- a/ksqldb-functional-tests/src/test/resources/query-validation-tests/serdes.json +++ b/ksqldb-functional-tests/src/test/resources/query-validation-tests/serdes.json @@ -229,10 +229,6 @@ { "name": "input_topic", "schema": {"type": "map", "values": ["null", "int"]} - }, - { - "name": "OUTPUT", - "schema": {"type": "record", "name": "ignored", "fields": [{"name": "FOO", "type": ["null",{"type":"array","items":{"type":"record","name":"test","fields":[{"name":"key","type":["null","string"],"default":null},{"name":"value","type":["null","int"],"default":null}]}}]}]} } ], "inputs": [ @@ -266,11 +262,6 @@ "name": "input_topic", "schema": {"type": "map", "values": ["null", "int"]}, "format": "AVRO" - }, - { - "name": "OUTPUT", - "schema": {"type": "record", "name": "ignored", "fields": [{"name": "FOO", "type": ["null",{"type":"array","items":{"type":"record","name":"test","fields":[{"name":"key","type":["null","string"],"default":null},{"name":"value","type":["null","string"],"default":null}]}}]}]}, - "format": "AVRO" } ], "inputs": [ @@ -300,10 +291,6 @@ { "name": "input_topic", "schema": {"name": "ignored", "type": "record", "fields": [{"name": "FOO", "type": ["null",{"type": "map", "values": ["null", "int"]}]}]} - }, - { - "name": "OUTPUT", - "schema": {"type": "record", "name": "ignored", "fields": [{"name": "FOO", "type": ["null",{"type":"array","items":{"type":"record","name":"test","fields":[{"name":"key","type":["null","string"],"default":null},{"name":"value","type":["null","int"],"default":null}]}}]}]} } ], "inputs": [ @@ -465,12 +452,6 @@ "CREATE STREAM INPUT (foo BOOLEAN) WITH (kafka_topic='input_topic', value_format='{FORMAT}');", "CREATE STREAM OUTPUT WITH (WRAP_SINGLE_VALUE=true) AS SELECT * FROM INPUT;" ], - "topics": [ - { - "name": "OUTPUT", - "schema": {"name": "ignored", "type": "record", "fields": [{"name": "FOO", "type": ["null","boolean"]}]} - } - ], "inputs": [ {"topic": "input_topic", "value": {"FOO": true}}, {"topic": "input_topic", "value": {"FOO": null}}, @@ -506,12 +487,6 @@ "CREATE STREAM INPUT (foo ARRAY) WITH (kafka_topic='input_topic', value_format='{FORMAT}');", "CREATE STREAM OUTPUT WITH (WRAP_SINGLE_VALUE=false) AS SELECT * FROM INPUT;" ], - "topics": [ - { - "name": "OUTPUT", - "schema": {"type": "array", "items": ["null", "long"]} - } - ], "inputs": [ {"topic": "input_topic", "value": {"FOO": [12, 34, 999]}}, {"topic": "input_topic", "value": {"FOO": [12, 34, null]}}, @@ -532,12 +507,6 @@ "CREATE STREAM INPUT (foo ARRAY) WITH (kafka_topic='input_topic', value_format='{FORMAT}');", "CREATE STREAM OUTPUT WITH (WRAP_SINGLE_VALUE=true) AS SELECT * FROM INPUT;" ], - "topics": [ - { - "name": "OUTPUT", - "schema": {"name": "ignored", "type": "record", "fields": [{"name": "FOO", "type": ["null",{"type": "array", "items": ["null", "long"]}]}]} - } - ], "inputs": [ {"topic": "input_topic", "value": {"FOO": [12, 34, 999]}}, {"topic": "input_topic", "value": {"FOO": [12, 34, null]}}, @@ -575,12 +544,6 @@ "CREATE STREAM INPUT (foo MAP) WITH (kafka_topic='input_topic', value_format='{FORMAT}');", "CREATE STREAM OUTPUT WITH (WRAP_SINGLE_VALUE=false) AS SELECT * FROM INPUT;" ], - "topics": [ - { - "name": "OUTPUT", - "schema": {"type":"array","items":{"type":"record","name":"test","fields":[{"name":"key","type":["null","string"],"default":null},{"name":"value","type":["null","double"],"default":null}]}} - } - ], "inputs": [ {"topic": "input_topic", "value": {"FOO": {"a": 1.1, "b": 2.2, "c": 3.456}}}, {"topic": "input_topic", "value": {"FOO": {"a": 1.1, "b": 2.2, "c": null}}}, @@ -601,12 +564,6 @@ "CREATE STREAM INPUT (foo MAP) WITH (kafka_topic='input_topic', value_format='{FORMAT}');", "CREATE STREAM OUTPUT WITH (WRAP_SINGLE_VALUE=true) AS SELECT * FROM INPUT;" ], - "topics": [ - { - "name": "OUTPUT", - "schema": {"name": "ignored", "type": "record", "fields": [{"name": "FOO", "type": ["null",{"type":"array","items":{"type":"record","name":"test","fields":[{"name":"key","type":["null","string"],"default":null},{"name":"value","type":["null","double"],"default":null}]}}]}]} - } - ], "inputs": [ {"topic": "input_topic", "value": {"FOO": {"a": 1.1, "b": 2.2, "c": 3.456}}}, {"topic": "input_topic", "value": {"FOO": {"a": 1.1, "b": 2.2, "c": null}}}, @@ -644,12 +601,6 @@ "CREATE STREAM INPUT (foo STRUCT) WITH (kafka_topic='input_topic', value_format='{FORMAT}');", "CREATE STREAM OUTPUT WITH (WRAP_SINGLE_VALUE=false) AS SELECT * FROM INPUT;" ], - "topics": [ - { - "name": "OUTPUT", - "schema": {"type": "record", "name": "ignored", "fields": [{"name": "F0", "type": ["null", "int"]}]} - } - ], "inputs": [ {"topic": "input_topic", "value": {"FOO": {"F0": 1}}}, {"topic": "input_topic", "value": {"FOO": {"F0": null}}}, @@ -670,14 +621,6 @@ "CREATE STREAM INPUT (foo STRUCT) WITH (kafka_topic='input_topic', value_format='{FORMAT}');", "CREATE STREAM OUTPUT WITH (WRAP_SINGLE_VALUE=true) AS SELECT * FROM INPUT;" ], - "topics": [ - { - "name": "OUTPUT", - "schema": {"name": "ignored", "type": "record", "fields": [ - {"name": "FOO", "type": ["null", {"name": "ignored2", "type": "record", "fields": [{"name": "F0", "type": ["null", "int"]}]}]} - ]} - } - ], "inputs": [ {"topic": "input_topic", "value": {"FOO": {"F0": 1}}}, {"topic": "input_topic", "value": {"FOO": {"F0": null}}},