From 4a9ec11a4ce10e710d790be9c97aa800c6454861 Mon Sep 17 00:00:00 2001 From: Andrew Onyshchuk Date: Sun, 28 Jun 2020 13:40:48 -0500 Subject: [PATCH] Add tests --- tests/queries/0_stateless/01060_avro.reference | 1 + tests/queries/0_stateless/01060_avro.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tests/queries/0_stateless/01060_avro.reference b/tests/queries/0_stateless/01060_avro.reference index 0cf84dab914..338ffe0cf96 100644 --- a/tests/queries/0_stateless/01060_avro.reference +++ b/tests/queries/0_stateless/01060_avro.reference @@ -46,6 +46,7 @@ not compatible 0 1000 not found +1000 === output = primitive 1,1,2,3.4,5.6,"b1","s1" diff --git a/tests/queries/0_stateless/01060_avro.sh b/tests/queries/0_stateless/01060_avro.sh index fe5d91c75c0..328fef798c7 100755 --- a/tests/queries/0_stateless/01060_avro.sh +++ b/tests/queries/0_stateless/01060_avro.sh @@ -58,6 +58,8 @@ cat $DATA_DIR/empty.avro | ${CLICKHOUSE_LOCAL} --input-format Avro --output-form cat $DATA_DIR/simple.null.avro | ${CLICKHOUSE_LOCAL} --input-format Avro --output-format CSV -S 'a Int32' -q 'select count() from table' # field not found cat $DATA_DIR/simple.null.avro | ${CLICKHOUSE_LOCAL} --input-format Avro --output-format CSV -S 'b Int64' -q 'select count() from table' 2>&1 | grep -i 'not found' -o +# allow_missing_fields +cat $DATA_DIR/simple.null.avro | ${CLICKHOUSE_LOCAL} --input-format Avro --output-format CSV --input_format_avro_allow_missing_fields 1 -S 'b Int64' -q 'select count() from table'