ClickHouse/tests
Azat Khuzhin a5a8ecfe42 Fix inconsistent formatting for tupleElement (for fuzzer)
fuzzer sometimes [1] may inserts tupleElement() created from ASTLiteral:

    Function_tupleElement, 0xx
    -ExpressionList_, 0xx
    --Literal_Int64_255, 0xx
    --Literal_Int64_100, 0xx

And in this case it will be printed as "255.100", which
later will be parsed as float, and formatting will be
inconsistent.

So instead of printing it as regular tuple,
let's print it as ExpressionList instead (i.e. with ", " delimiter).

Simple reproducer:

    void ast()
    {
        auto arg1 = std::make_shared<ASTLiteral>(Field(255));
        auto arg2 = std::make_shared<ASTLiteral>(Field(100));

        auto func = makeASTFunction("tupleElement", arg1, arg2);

        auto ast = func;
        std::cerr << ast->formatForErrorMessage() << std::endl;
        std::cerr << ast->dumpTree() << std::endl;
    }

  [1]: https://clickhouse-test-reports.s3.yandex.net/23517/f1187aeb69109c88f0be978b8083080c7a843820/fuzzer_debug/report.html#fail1
2021-04-25 00:30:17 +03:00
..
ci
config Missed setting 2021-04-14 22:48:52 +03:00
external_models/catboost
fuzz [clickhouse][server][dll][alter]support fetch part 2021-04-13 12:40:33 +08:00
instructions
integration Merge pull request #23462 from zhang2014/fix/ISSUE-23310 2021-04-24 04:17:21 +03:00
jepsen.clickhouse-keeper Fix nasty bug 2021-04-16 21:31:23 +03:00
perf_drafts
performance Fix error in perf test 2021-04-22 08:43:20 +03:00
queries Fix inconsistent formatting for tupleElement (for fuzzer) 2021-04-25 00:30:17 +03:00
testflows Update regression.py 2021-04-22 01:17:26 +03:00
users.d
.gitignore
clickhouse-client.xml
clickhouse-test print errors on db creation in clickhouse-test 2021-04-19 14:03:20 +03:00
clickhouse-test-server
client-test.xml
CMakeLists.txt
decimals_dictionary.xml
ints_dictionary.xml
msan_suppressions.txt Merge branch 'master' into remove-msan-suppressions-5 2021-04-13 00:15:05 +03:00
server-test.xml
stress
strings_dictionary.xml
tsan_suppressions.txt
ubsan_suppressions.txt
users.xml