sql: error on internal validation query for foreign keys referencing hidden columns #59582
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
This came up in the context of adding user-defined hidden columns in #58923, but also applies to
rowid
now. On master, adding foreign key constraints referencing hidden columns doesn't work:This comes from the internal executor validating the constraint for existing rows. Here's the query we're actually executing:
This query also doesn't work on its own, so the problem isn't isolated to the schema change:
Here's the stack trace for the error when running it in the internal executor:
Should this query work? Are we generating the incorrect query in the first place?
The text was updated successfully, but these errors were encountered: