diff --git a/dbms/tests/queries/0_stateless/00335_bom.reference b/dbms/tests/queries/0_stateless/00335_bom.reference new file mode 100644 index 00000000000..6622044ee6e --- /dev/null +++ b/dbms/tests/queries/0_stateless/00335_bom.reference @@ -0,0 +1,2 @@ +1 2 3 +4 5 6 diff --git a/dbms/tests/queries/0_stateless/00335_bom.sh b/dbms/tests/queries/0_stateless/00335_bom.sh new file mode 100755 index 00000000000..2aa3cf0fe8a --- /dev/null +++ b/dbms/tests/queries/0_stateless/00335_bom.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +echo 'DROP TABLE IF EXISTS test.bom' | curl -sS 'http://localhost:8123/' --data-binary @- +echo 'CREATE TABLE test.bom (a UInt8, b UInt8, c UInt8) ENGINE = Memory' | curl -sS 'http://localhost:8123/' --data-binary @- +echo -ne '1,2,3\n' | curl -sS 'http://localhost:8123/?query=INSERT+INTO+test.bom+FORMAT+CSV' --data-binary @- +echo -ne '\xEF\xBB\xBF4,5,6\n' | curl -sS 'http://localhost:8123/?query=INSERT+INTO+test.bom+FORMAT+CSV' --data-binary @- +echo 'SELECT * FROM test.bom ORDER BY a' | curl -sS 'http://localhost:8123/' --data-binary @- +echo 'DROP TABLE test.bom' | curl -sS 'http://localhost:8123/' --data-binary @-