-
Notifications
You must be signed in to change notification settings - Fork 2.3k
dbt Constraints / model contracts #6271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
e879cdd
bd1afc7
4b2a881
e8b52e0
01a07d3
3b31a15
1a1f46a
ebaa54c
fd7a47a
7e3a9be
6df02da
bc3c5bc
4b901fd
e29b571
7d085dc
e6559d4
ca89141
2c4a4cf
1975c6b
f088a03
7421caa
a7395bb
5d06524
380bd96
e6e490d
9c498ef
bed1fec
8c466b0
547ad9e
52bd35b
7582531
7291094
b87f57d
5529334
00f12c2
76bf69c
2e51246
5891eb3
5d2867f
801b2fd
5d59cc1
92d2ea7
4f747b0
eba0b6d
ae56da1
de653e4
cfc53b0
fc7230b
e1c72ac
b215b6c
d550de4
9d87463
ce85c96
49a4120
8ffb654
f2f2707
096f3fd
eae4e76
b8c3812
bb1a6c3
b6dbcf6
751cdc8
6bbd797
d364eeb
4a58ece
ac795dd
d452cae
baf18f0
76c0e4f
10ab3cb
6253ed0
307809d
ab4f396
b99e9be
5935201
f59c9dd
7e28a31
3ddd666
fabe2ce
ffec7d7
d338f33
e34c467
44b2f18
17b1f8e
c652367
f9e020d
926e555
c6bd674
bcc35fc
880ed43
426789e
3d61eda
f163b2c
bf45243
dbef42b
c4de8f3
ad07ced
a501c29
59b0298
e46066b
e80b8cd
257eacd
391bd3b
0441417
e0bcb25
dcf7062
903a2cb
c40ee92
111683a
f8b16bc
97f0c6b
2a33baf
6806a7c
1256e7b
0304dbf
b5b1699
d338faa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -132,7 +132,7 @@ def add( | |
| column: Union[HasDocs, UnparsedColumn], | ||
| description: str, | ||
| data_type: Optional[str], | ||
| constraint: Optional[str], | ||
| constraints: Optional[List[str]], | ||
| check: Optional[str], | ||
|
||
| meta: Dict[str, Any], | ||
| ): | ||
|
|
@@ -147,7 +147,7 @@ def add( | |
| name=column.name, | ||
| description=description, | ||
| data_type=data_type, | ||
| constraint=constraint, | ||
| constraints=constraints, | ||
| check=check, | ||
|
||
| meta=meta, | ||
| tags=tags, | ||
|
|
@@ -161,10 +161,10 @@ def from_target(cls, target: Union[HasColumnDocs, HasColumnTests]) -> "ParserRef | |
| for column in target.columns: | ||
| description = column.description | ||
| data_type = column.data_type | ||
| constraint = column.constraint | ||
| constraints = column.constraints | ||
| check = column.check | ||
|
||
| meta = column.meta | ||
| refs.add(column, description, data_type, constraint, check, meta) | ||
| refs.add(column, description, data_type, constraints, check, meta) | ||
|
||
| return refs | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See
nodes.py