mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Add tests
This commit is contained in:
parent
9054862dde
commit
4a9ec11a4c
@ -46,6 +46,7 @@ not compatible
|
||||
0
|
||||
1000
|
||||
not found
|
||||
1000
|
||||
=== output
|
||||
= primitive
|
||||
1,1,2,3.4,5.6,"b1","s1"
|
||||
|
@ -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'
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user