Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: CREATE TABLE AS in an explicit txn does not flush batched rows
Fixes: #81554 Previously, when running a CREATE TABLE AS in explicit transactions, a single batch inserted all rows. This can lead to errors running into the KV command size limits. To address this, this patch will intermittently flush batches KV, so that a single gigantic batch isn't used. Release note (bug fix): CREATE TABLE AS in explicit transaction would fail with an error if the size of the source table exceeded the raft command size limit.
- Loading branch information