Compare commits

...

5 Commits

Author SHA1 Message Date
Dave Connors
259c9d30b1 Merge branch 'negative-arg-split-part' of github.com:dbt-labs/dbt-core into negative-arg-split-part 2023-03-20 15:26:49 -05:00
Dave Connors
03836046a3 update changie 2023-03-20 15:26:49 -05:00
Dave Connors
6e5370d532 add negative test case 2023-03-20 15:26:49 -05:00
Dave Connors
ae059cd61d changie 2023-03-20 15:26:49 -05:00
Dave Connors
b46cac1a9c add negative test case 2023-03-19 15:11:19 -05:00
2 changed files with 18 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
kind: Fixes
body: add negative part_number argument for split part macro
time: 2023-03-19T15:15:33.7376-05:00
custom:
Author: dave-connors-3
Issue: "615"

View File

@@ -1,9 +1,9 @@
# split_part
seeds__data_split_part_csv = """parts,split_on,result_1,result_2,result_3
a|b|c,|,a,b,c
1|2|3,|,1,2,3
,|,,,
seeds__data_split_part_csv = """parts,split_on,result_1,result_2,result_3,result_4
a|b|c,|,a,b,c,c
1|2|3,|,1,2,3,3
,|,,,,
"""
@@ -34,6 +34,14 @@ select
{{ split_part('parts', 'split_on', 3) }} as actual,
result_3 as expected
from data
union all
select
{{ split_part('parts', 'split_on', -1) }} as actual,
result_4 as expected
from data
"""