ClickHouse/tests/queries/0_stateless/03140_client_subsequent_external_tables.reference
Azat Khuzhin 119e000873 Fix subsequent use of external tables in client
Before this patch it fails on the second and all other invocations:

    $ chc --external --file=/tmp/test-no-lf.tsv --name=t --structure='x String'
    azat.local$ select * from t limit 1
       ┌─x───┐
    1. │ foo │
       └─────┘

    azat.local$ select * from t limit 1
    Exception on client:
    Code: 27. DB::Exception: Cannot parse input: expected '\t' at end of stream.: (at row 1)
    : Buffer has gone, cannot extract information about what has been parsed.: (in file/uri /tmp/test-no-lf.tsv): While executing TabSeparatedRowInputFormat. (CANNOT_PARSE_INPUT_ASSERTION_FAILED)

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-04-29 11:43:29 +02:00

3 lines
8 B
Plaintext