**Use case**

ClickHouse already throws exception if the data for INSERT is empty:

```
Code: 108. DB::Exception: No data to insert
```

Let's introduce a setting, enabled by default, to control this behavior.
The user will be able to disable it to allow empty INSERTs.

This is useful in some batch scripts.
else
            {
                incrementProfileEventsBlock(profile_events.last_block, block
            }
        }
        profile_events.watch.restart(
    }
}
/// Flush all buffers.
void ClientBase::resetOutput()
{
    output_format.reset(
    logs_out_stream.reset(
    if (pager_cmd)
    {
        pager_cmd->in.close(
        pager_cmd->wait(
    }
    pager_cmd = nullptr;
    if (out_file_buf)
    {
        out_file_buf->next(
        out_file_buf.reset(
    }
    if (out_logs_buf)
    {
        out_logs_buf->next(
        out_logs_buf.reset(
    }
    std_out.next(