From c7288e3a4e283bca52eae2157fd91e9f0cbd9bb3 Mon Sep 17 00:00:00 2001 From: Jakub Martin Date: Mon, 25 Jul 2022 01:04:11 +0200 Subject: [PATCH] Fix snapshot tests. --- tests/scenarios/stdin/multi_stdin.err | 26 -------------------------- tests/scenarios/stdin/multi_stdin.in | 1 - tests/scenarios/stdin/multi_stdin.out | 0 tests/scenarios/stdin/seqsum.in | 2 +- tests/scenarios/stdin/seqsum.out | 6 +----- 5 files changed, 2 insertions(+), 33 deletions(-) delete mode 100644 tests/scenarios/stdin/multi_stdin.err delete mode 100644 tests/scenarios/stdin/multi_stdin.in delete mode 100644 tests/scenarios/stdin/multi_stdin.out diff --git a/tests/scenarios/stdin/multi_stdin.err b/tests/scenarios/stdin/multi_stdin.err deleted file mode 100644 index db77c6e1..00000000 --- a/tests/scenarios/stdin/multi_stdin.err +++ /dev/null @@ -1,26 +0,0 @@ -Usage: - octosql [flags] - octosql [command] - -Examples: -octosql "SELECT * FROM myfile.json" -octosql "SELECT * FROM mydir/myfile.csv" -octosql "SELECT * FROM plugins.plugins" - -Available Commands: - completion Generate the autocompletion script for the specified shell - help Help about any command - plugin - -Flags: - --describe Describe query output schema. - --explain int Describe query output schema. - -h, --help help for octosql - --optimize Whether OctoSQL should optimize the query. (default true) - -o, --output string Output format to use. Available options are live_table, batch_table, csv, json and stream_native. (default "live_table") - --profile string Enable profiling of the given type: cpu, memory, trace. - -v, --version version for octosql - -Use "octosql [command] --help" for more information about a command. - -Error: couldn't run query: couldn't run left stream join source: couldn't open local file: couldn't open stdin: stdin already opened diff --git a/tests/scenarios/stdin/multi_stdin.in b/tests/scenarios/stdin/multi_stdin.in deleted file mode 100644 index 56173514..00000000 --- a/tests/scenarios/stdin/multi_stdin.in +++ /dev/null @@ -1 +0,0 @@ -echo '{"hello": "world"}' | octosql "SELECT * FROM stdin.json, stdin.json" diff --git a/tests/scenarios/stdin/multi_stdin.out b/tests/scenarios/stdin/multi_stdin.out deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/scenarios/stdin/seqsum.in b/tests/scenarios/stdin/seqsum.in index 00a34093..e4f944ec 100644 --- a/tests/scenarios/stdin/seqsum.in +++ b/tests/scenarios/stdin/seqsum.in @@ -1 +1 @@ -seq 100 | octosql "SELECT SUM(int(text)) FROM lines.stdin" +seq 100 | octosql "SELECT SUM(int(text)) FROM lines.stdin" -ojson diff --git a/tests/scenarios/stdin/seqsum.out b/tests/scenarios/stdin/seqsum.out index 7befba2c..35e0f172 100644 --- a/tests/scenarios/stdin/seqsum.out +++ b/tests/scenarios/stdin/seqsum.out @@ -1,5 +1 @@ -+------+ -| sum | -+------+ -| 5050 | -+------+ +{"sum":5050}