```
$ echo '20210101,A' | clickhouse-local --input-format CSV --structure 'd Date, s String' --query "SELECT * FROM table"
Code: 27. DB::Exception: Cannot parse input: expected ',' before: '20210101,A\n': 
Row 1:
Column 0,   name: d, type: Date,   ERROR: text "20210101,A" is not like Date

: While executing ParallelParsingBlockInputFormat: While executing File. (CANNOT_PARSE_INPUT_ASSERTION_FAILED)
```

**How to solve**

Disambiguate while parsing by absense of separators between YYYY-MM-DD.
{
    
    const char * s = buf.position();
    
    static constexpr auto DateTimeStringInputSize = 19;
    bool optimistic_path_for_date_time_input = s + DateTimeStringInputSize <= buf.buffer().end();
    if (optimistic_path_for_date_time_input)
    {
        if (s[4] < '0' || s[4] > '9')
        {
            UInt16 year = (s[0] - '0') * 1000 + (s[1] - '0') * 100 + (s[2] - '0') * 10 + (s[3] - '0');
            UInt8 month = (s[5] - '0') * 10 + (s[6] - '0');
            UInt8 day = (s[8] - '0') * 10 + (s[9] - '0');
            UInt8 hour = (s[11] - '0') * 10 + (s[12] - '0');
            UInt8 minute = (s[14] - '0') * 10 + (s[15] - '0');
            UInt8 second = (s[17] - '0') * 10 + (s[18] - '0');
            if (unlikely(year == 0))
                datetime = 0;
            else
                datetime = date_lut.makeDateTime(year, month, day, hour, minute, second);
            buf.position() += DateTimeStringInputSize;