File tree Expand file tree Collapse file tree 5 files changed +38
-0
lines changed
tests/queries/0_stateless Expand file tree Collapse file tree 5 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ xml
2+ Not found: merge_tree.anything_xml
3+
4+ yaml
5+ Not found: merge_tree.anything_yaml
6+
7+ File not found: I hope such path will never exists, since it does not even contain a single slash
8+ I hope such path will never exists, since it does not even contain a single slash
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ CUR_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd)
4+ # shellcheck source=../shell_config.sh
5+ . " $CUR_DIR " /../shell_config.sh
6+
7+ # NOTE: Cannot use CLICKHOUSE_EXTRACT_CONFIG, since it uses default config.
8+
9+ prefix=$CUR_DIR /" $( basename " ${BASH_SOURCE[0]} " .sh) "
10+
11+ $CLICKHOUSE_BINARY extract-from-config --key merge_tree.comment --config $prefix .xml
12+ $CLICKHOUSE_BINARY extract-from-config --key merge_tree.anything_xml --config $prefix .xml | & grep -o ' Not found: merge_tree.anything_xml'
13+ $CLICKHOUSE_BINARY extract-from-config --key merge_tree.anything_xml --config $prefix .xml --try
14+
15+ $CLICKHOUSE_BINARY extract-from-config --key merge_tree.comment --config $prefix .yaml
16+ $CLICKHOUSE_BINARY extract-from-config --key merge_tree.anything_yaml --config $prefix .yaml | & grep -o ' Not found: merge_tree.anything_yaml'
17+ $CLICKHOUSE_BINARY extract-from-config --key merge_tree.anything_yaml --config $prefix .yaml --try
18+
19+ $CLICKHOUSE_BINARY extract-from-config --key include_from --config ${prefix} _bad_include_from.xml | & grep -o ' File not found: I hope such path will never exists, since it does not even contain a single slash'
20+ $CLICKHOUSE_BINARY extract-from-config --key include_from --config ${prefix} _bad_include_from.xml --try
Original file line number Diff line number Diff line change 1+ <clickhouse >
2+ <merge_tree >
3+ <comment >xml</comment >
4+ </merge_tree >
5+ </clickhouse >
Original file line number Diff line number Diff line change 1+ merge_tree :
2+ comment : yaml
Original file line number Diff line number Diff line change 1+ <clickhouse >
2+ <include_from >I hope such path will never exists, since it does not even contain a single slash</include_from >
3+ </clickhouse >
You can’t perform that action at this time.
0 commit comments