Add tests.

This commit is contained in:
Manas Alekar 2023-06-30 13:16:02 -07:00
parent 3c4491b706
commit 9a35921d00
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,9 @@
performing test: select
1 2 3
performing test: select_with_append
1 2 3
performing test: select_with_truncate
1 2 3
performing test: union_all
1 2
3 4

View File

@ -21,6 +21,10 @@ function perform()
perform "select" "SELECT 1, 2, 3 INTO OUTFILE '${CLICKHOUSE_TMP}/test_into_outfile_select.out'"
perform "select_with_append" "SELECT 1, 2, 3 INTO OUTFILE '${CLICKHOUSE_TMP}/test_into_outfile_select_with_append.out' APPEND"
perform "select_with_truncate" "SELECT 1, 2, 3 INTO OUTFILE '${CLICKHOUSE_TMP}/test_into_outfile_select_with_truncate.out' TRUNCATE"
perform "union_all" "SELECT 1, 2 UNION ALL SELECT 3, 4 INTO OUTFILE '${CLICKHOUSE_TMP}/test_into_outfile_union_all.out' FORMAT TSV" | sort --numeric-sort
perform "bad_union_all" "SELECT 1, 2 INTO OUTFILE '${CLICKHOUSE_TMP}/test_into_outfile_bad_union_all.out' UNION ALL SELECT 3, 4"