```
milovidov-desktop :) CREATE TABLE hits2 AS hits

CREATE TABLE hits2 AS hits

Query id: ef73b907-c73b-42ba-8194-db88c88cc85b

Ok.

0 rows in set. Elapsed: 0.024 sec. 

milovidov-desktop :) INSERT INTO hits2 FROM INFILE 'hits.tsv'

INSERT INTO hits2 FROM INFILE 'hits.tsv'

Query id: 0588941e-ff9e-4741-97ce-7784aee1e253

↓ Progress: 0.00 rows, 0.00 B (0.00 rows/s., 0.00 B/s.)
```

Two problems:
- no progress;
- it is displaying a fractional number of rows (`0.00`).
{
                try
                {
                    tty_buf = std::make_unique<WriteBufferFromFile>(tty_file_name, buf_size);
                    /// It is possible that the terminal file has writeable permissions
                    /// but we cannot write anything there. Check it with invisible character.
                    tty_buf->write('\0');
                    tty_buf->next();
                    return;
                }
                catch (const Exception & e)
                {
                    if (tty_buf)
                        tty_buf.reset();
                    if (e.code() != ErrorCodes::CANNOT_OPEN_FILE)
                        throw;
                    /// It is normal if file exists, indicated as writeable but still cannot be opened.
                    /// Fallback to other options.
                }
            }
        }
        if (stderr_is_a_tty)
        {
            tty_buf = std::make_unique<WriteBufferFromFileDescriptor>(STDERR_FILENO, buf_size);
        }
        else
            need_render_progress = false;
    }
}
void ClientBase::updateSuggest(const ASTPtr & ast)