[CT-2519] [CT-2442] [Bug] Foreign key constraint templating #7417
Labels
bug
Something isn't working
jira
model_contracts
Team:Adapters
Issues designated for the adapter area of the code
Milestone
The most common syntax I see is:
references {expression}
foreign key {column_list} references {expression}
Right now we're templating this out as
foreign_key
, instead ofreferences
.Docs:
FWIW on BigQuery it does seem to be
foreign_key
and NOTreferences
: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#syntax_2If we were to take FK constraints more seriously, we're missing a pretty important ingredient, which is the ability to include & template
ref
inside theexpression
field — or providing more structure, i.e.Per #6754 (comment), we kicked that out of scope for v1.5, and we're unlikely to prioritize it while this remains a metadata-only (nonfunctional & unenforceable) feature on the majority of data platforms.
The text was updated successfully, but these errors were encountered: