**How to reproduce**
```
for i in {1..1000}; do echo 'Hello, world!' | clickhouse-local --query "SELECT * FROM table" --structure 's String' | wc -c; done
```

This script hangs.
{
    String initial_create_query = getInitialCreateTableQuery();
    String queries_str = initial_create_query;
    if (config().has("query"))
        queries_str += config().getRawString("query");
    else
    {
        String queries_from_file;
        ReadBufferFromFile in(config().getString("queries-file"));
        readStringUntilEOF(queries_from_file, in);
        queries_str += queries_from_file;
    }
    const auto & settings = global_context->getSettingsRef();
    std::vector<String> queries;
    auto parse_res = splitMultipartQuery(queries_str, queries, settings.max_query_size, settings.max_parser_depth);