sql, jobs: schema change jobs are erroneously queued for in-txn schema changes #45985
Labels
A-schema-changes
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
In
cockroach demo
on 2863173:We shouldn't be queuing a job for new tables where schema changes are run entirely in the transaction in which the table was created. This is happening because we're calling
runSchemaChangesInTxn()
inplanner.writeTableDescToBatch()
if the table is new, but we always indiscriminately queue a schema change job before that. The job doesn't do anything because the schema change was finished, but we should still fix this and write a regression test for it.The text was updated successfully, but these errors were encountered: