Add tests

This commit is contained in:
Andrew Onyshchuk 2020-06-28 13:40:48 -05:00
parent 9054862dde
commit 4a9ec11a4c
2 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,7 @@ not compatible
0
1000
not found
1000
=== output
= primitive
1,1,2,3.4,5.6,"b1","s1"

View File

@ -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'