Skip to content
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

Submit scala jobs beta #8701

Closed
wants to merge 111 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
06437df
dbt 1.5.0rc1 (#7355)
aranke Apr 13, 2023
9ffe264
Bumping version to 1.5.0rc1 and generate changelog
FishtownBuildBot Apr 13, 2023
a67c14e
[Automated] Merged prep-release/1.5.0rc1_4694810085 into target 1.5.l…
FishtownBuildBot Apr 14, 2023
ffb5a8f
updating make recipe for explicit order (#7385)
mikealfare Apr 18, 2023
d6526b0
Run 'changie new' on `1.5.latest` branch (#7380)
aranke Apr 18, 2023
c1f3cc1
Update --help text for cache-related parameters (#7389) (#7409)
github-actions[bot] Apr 19, 2023
faa279d
Update docs link in ContractBreakingChangeError message (#7367) (#7392)
github-actions[bot] Apr 19, 2023
f0530e6
[Fix] safe version attribute access in _check_resource_uniqueness (#7…
github-actions[bot] Apr 20, 2023
dee5e70
sqlparse <0.4.4 (#7394) (#7398)
github-actions[bot] Apr 20, 2023
437870e
fix v0 ref resolution and latest_version configuration(#7415) (#7422)
github-actions[bot] Apr 20, 2023
1d24e94
fix target dir behavior with sources.json (#7412) (#7423)
github-actions[bot] Apr 20, 2023
1b6cf1a
Bumping version to 1.5.0rc2 and generate changelog
FishtownBuildBot Apr 20, 2023
1da608f
[Automated] Merged prep-release/1.5.0rc2_4758640507 into target 1.5.l…
FishtownBuildBot Apr 20, 2023
77867d7
fix partial parsing of versioned models - schedule child nodes if lat…
github-actions[bot] Apr 25, 2023
f37cb92
Fix groupable node partial parsing, raise DbtReferenceError in Runtim…
github-actions[bot] Apr 25, 2023
c79a658
UX improvements to model versions (#7435) (#7462)
github-actions[bot] Apr 26, 2023
dafb6ae
Bumping version to 1.5.0 and generate changelog
FishtownBuildBot Apr 27, 2023
2eaa4f0
[Automated] Merged prep-release/1.5.0_4819829606 into target 1.5.late…
FishtownBuildBot Apr 27, 2023
2519171
Back compat for previous return type of `collect_freshness` (#7535) (…
jtcohen6 May 8, 2023
0cd20ff
Fix inverted `--print/--no-print` flag (#7524) (#7547)
github-actions[bot] May 8, 2023
14796b2
Do not rewrite manifest.json during 'docs serve' command (#7554) (#7555)
github-actions[bot] May 9, 2023
70c98a5
CT 2552 pin protobuf to >=4.0.0 (#7566) (#7567)
github-actions[bot] May 9, 2023
cb9e4d5
[Fix] Typo in statically parsed ref unpacking (#7365) (#7572)
github-actions[bot] May 9, 2023
c578e5b
fix #7407: print model version in `dbt show` if specified (#7543) (#7…
github-actions[bot] May 10, 2023
2a3cab9
Backport `dbt show` enhancements into `1.5.latest` (#7578)
aranke May 11, 2023
7fa6ce8
Bumping version to 1.5.1rc1 and generate changelog
FishtownBuildBot May 12, 2023
7844ac4
[Automated] Merged prep-release/1.5.1rc1_4960109758 into target 1.5.l…
FishtownBuildBot May 12, 2023
9642789
CT 2510 Throw error for duplicate versioned and non versioned model n…
gshank May 12, 2023
9804e67
cherry pick 7fbeced315ebd11ff0419fc10624ddd4f6324193 (#7638)
emmyoop May 16, 2023
19e2f2e
Profile Jinja Rendering, 1.5 Backport (#7653)
peterallenwebb May 18, 2023
06c7a8a
Allow missing `profiles.yml` for `dbt deps` and `dbt init` (#7546) (#…
emmyoop May 22, 2023
b06a8eb
Remove `DelayedFileHandler` (#7661) (#7683)
peterallenwebb May 23, 2023
8887c0c
bugfix: Deps hangs when using relative paths via `--project-dir` (#76…
github-actions[bot] May 24, 2023
a3e6a48
Missed PR fedback (#7642) (#7691)
github-actions[bot] May 24, 2023
890bc16
CT 2516 ensure that paths in Jinja context flags object are strings (…
github-actions[bot] May 25, 2023
630681b
Bumping version to 1.5.1rc2 and generate changelog
FishtownBuildBot May 25, 2023
355f918
[Automated] Merged prep-release/1.5.1rc2_5081528232 into target 1.5.l…
FishtownBuildBot May 25, 2023
a4ed7ce
Bumping version to 1.5.1 and generate changelog
FishtownBuildBot May 30, 2023
de9ee6a
[Automated] Merged prep-release/1.5.1_5122894882 into target 1.5.late…
FishtownBuildBot May 30, 2023
f8cc136
Target path should be relative to project dir, rather than current wo…
gshank Jun 5, 2023
e5bd8b0
pass optional sql_header to empty subquery sql rendering (#7734) (#7768)
github-actions[bot] Jun 5, 2023
963a38f
[BACKPORT] Improve warning for constraints and mat types (#7806)
emmyoop Jun 7, 2023
d94d651
fix error message for empty/None: --warn-error-options handling (#773…
github-actions[bot] Jun 7, 2023
467cae0
Version 0 for model works for latest_version (#7712) (#7780)
github-actions[bot] Jun 8, 2023
3a81fa9
add --target-path to snapshot command (#7419) (#7826)
emmyoop Jun 8, 2023
66e0644
Bumping version to 1.5.2rc1 and generate changelog
FishtownBuildBot Jun 8, 2023
7f2bdbf
[Automated] Merged prep-release/1.5.2rc1_5215591201 into target 1.5.l…
FishtownBuildBot Jun 8, 2023
27eb48c
Fix constraint rendering for expressions and foreign key constraint t…
github-actions[bot] Jun 9, 2023
11d9f99
Use project directory in path selector instead of cwd (#7829) (#7850)
github-actions[bot] Jun 13, 2023
693a338
[Backport] #7779 to `1.5.latest` (#7856)
emmyoop Jun 13, 2023
83f0251
generalize BaseModelConstraintsRuntimeEnforcement (#7805) (#7852)
github-actions[bot] Jun 14, 2023
126d687
Respect column `quote` config in model contracts (#7537) (#7858)
github-actions[bot] Jun 14, 2023
49627fc
add ability to select models by access (#7739) (#7801)
github-actions[bot] Jun 14, 2023
57dacb0
Backport #7838 to 1.5.latest (#7875)
jtcohen6 Jun 14, 2023
e1a9d9f
Readd exp_path for config deprecation warnings (#7536) (#7737)
github-actions[bot] Jun 14, 2023
9776e7a
backport 7862 to 1.5.latest (#7878)
colin-rogers-dbt Jun 16, 2023
043e511
Bumping version to 1.5.2rc2 and generate changelog
FishtownBuildBot Jun 16, 2023
36e6c67
[Automated] Merged prep-release/1.5.2rc2_5291645992 into target 1.5.l…
FishtownBuildBot Jun 16, 2023
39702dc
Bumping version to 1.5.2 and generate changelog
FishtownBuildBot Jun 22, 2023
66dd15b
[Automated] Merged prep-release/1.5.2_5347682028 into target 1.5.late…
FishtownBuildBot Jun 22, 2023
b187400
Add target_path to more cli commands that use it (#7647) (#7961)
jtcohen6 Jun 28, 2023
98fcb4a
Use events.contextvar because of multiprocessing unable to pickle Con…
gshank Jun 30, 2023
a935df9
[BACKPORT to 1.5.latest] Remove pin of sqlparse to below 0.4.4 (#8008)
gshank Jun 30, 2023
3e5e693
fire proper event for inline query error (#7960) (#8021)
jtcohen6 Jul 5, 2023
b3975db
allow on_schema_change: fail for incremental models with contracts (#…
github-actions[bot] Jul 6, 2023
f466740
pin click (#8050) (#8052)
emmyoop Jul 7, 2023
2d75829
Nicer error message for contracted model missing 'columns' (#8024) (#…
github-actions[bot] Jul 11, 2023
774e905
Backport 8072 1.5.latest3 (#8084)
MichelleArk Jul 13, 2023
4bd3a40
Bumping version to 1.5.3 and generate changelog
FishtownBuildBot Jul 17, 2023
efdbb2b
[Automated] Merged prep-release/1.5.3_5578590246 into target 1.5.late…
FishtownBuildBot Jul 17, 2023
0d8f6d0
add env vars for datadog ci visibility (#8097) (#8107)
emmyoop Jul 18, 2023
d260288
[Backport 1.5.latest] Hotfix for 372: Use JSONEncoder in json.dumps (…
github-actions[bot] Jul 21, 2023
d39c53d
[CT-2594] Backport #8180 to 1.5.latest (#8198)
QMalcolm Jul 24, 2023
fac2f62
[Backport 1.5.latest] Rearrange pp_versioned_models test (#8157)
gshank Jul 26, 2023
a98b69c
[Backport 1.5.latest] Initialize sqlparse lexer and tweak order of se…
gshank Jul 27, 2023
7083c0e
Bumping version to 1.5.4rc1 and generate changelog
FishtownBuildBot Jul 27, 2023
a658072
[Automated] Merged prep-release/1.5.4rc1_5683294297 into target 1.5.l…
FishtownBuildBot Jul 27, 2023
1be5a0c
Bumping version to 1.5.4 and generate changelog
FishtownBuildBot Jul 28, 2023
ed92f13
[Automated] Merged prep-release/1.5.4_5692874947 into target 1.5.late…
FishtownBuildBot Jul 28, 2023
045a6d8
add param to control maxBytes for single dbt.log file (#8200) (#8241)
github-actions[bot] Aug 1, 2023
a848838
add env vars to tox.ini (#8365) (#8369)
github-actions[bot] Aug 11, 2023
5fc6d4d
add a node status (#8174) (#8179)
github-actions[bot] Aug 15, 2023
4b21acd
[Backport 1.5.latest] Ensure that target_schema from snapshot config …
gshank Aug 15, 2023
dd7a329
loosen the click pin (#8232) (#8252)
emmyoop Aug 15, 2023
8394bbd
pin upper bound for sqlparse (#8236) (#8239)
emmyoop Aug 16, 2023
85c77ac
Fix using project-dir with list command and path selector (#8388) (#8…
github-actions[bot] Aug 16, 2023
bdc3adc
Bumping version to 1.5.5 and generate changelog
FishtownBuildBot Aug 17, 2023
fe2a5ba
[Automated] Merged prep-release/1.5.5_5894165573 into target 1.5.late…
FishtownBuildBot Aug 17, 2023
96a2223
revert python version for docker images (#8445) (#8447)
github-actions[bot] Aug 18, 2023
46a90ca
Bumping version to 1.5.6 and generate changelog
FishtownBuildBot Aug 21, 2023
643a154
Allow for scala models to be created
pekapa Sep 24, 2023
f6359d7
Merge branch 'main' into submit-scala-jobs-beta
pekapa Sep 24, 2023
98b32ad
fix typo
pekapa Sep 24, 2023
4369ff1
Delete .changes/1.5.0.md
pekapa Sep 24, 2023
48d65ca
Delete .changes/1.5.1.md
pekapa Sep 24, 2023
b7bb707
Delete .changes/1.5.2.md
pekapa Sep 24, 2023
d0e1ad9
Delete .changes/1.5.3.md
pekapa Sep 24, 2023
f84649e
Delete .changes/1.5.4.md
pekapa Sep 24, 2023
6b53964
Delete .changes/1.5.5.md
pekapa Sep 24, 2023
8318dce
Delete .changes/1.5.6.md
pekapa Sep 24, 2023
773311f
duplicated code
pekapa Sep 24, 2023
c44c4d0
fix scala/python submission response
pekapa Sep 24, 2023
42b65d9
Update types.proto
pekapa Sep 24, 2023
5ed575f
Update manifest.py
pekapa Sep 24, 2023
243fd1f
Update utils.py
pekapa Sep 24, 2023
b4f6076
Update utils.py
pekapa Sep 24, 2023
f5e72c6
Update fixtures.py
pekapa Sep 24, 2023
057f2cb
Update test_modified_state.py
pekapa Sep 24, 2023
1fcbf1b
Update test_parser.py
pekapa Sep 24, 2023
a1d0673
Update types_pb2.py
pekapa Sep 24, 2023
1f34060
changie
pekapa Sep 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix partial parsing of versioned models - schedule child nodes if lat…
…est version has been modified (#7439) (#7460)

(cherry picked from commit 2739d5f)

Co-authored-by: Michelle Ark <MichelleArk@users.noreply.github.com>
github-actions[bot] and MichelleArk authored Apr 25, 2023

Verified

This commit was created on github.com and signed with GitHub’s verified signature. The key has expired.
commit 77867d76f8561fc0fa2228caf7e28a92c4f7160a
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20230424-164649.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Fix partial parsing of latest_version changes for downstream references
time: 2023-04-24T16:46:49.721231-04:00
custom:
Author: MichelleArk
Issue: "7369"
3 changes: 3 additions & 0 deletions core/dbt/parser/partial.py
Original file line number Diff line number Diff line change
@@ -851,6 +851,9 @@ def delete_schema_mssa_links(self, schema_file, dict_key, elem):
if self.saved_files[file_id]:
source_file = self.saved_files[file_id]
self.add_to_pp_files(source_file)
# if the node's latest version has changed - need to reparse all referencing nodes to ensure correct ref resolution
if node.is_versioned and node.latest_version != elem.get("latest_version"):
self.schedule_referencing_nodes_for_parsing(elem_unique_id)
# remove from patches
schema_file.node_patches.remove(elem_unique_id)

6 changes: 1 addition & 5 deletions test/unit/utils.py
Original file line number Diff line number Diff line change
@@ -336,11 +336,7 @@ def MockNode(package, name, resource_type=None, **kwargs):

version = kwargs.get("version")
search_name = name if version is None else f"{name}.v{version}"
unique_id = (
f"{str(resource_type)}.{package}.{name}"
# if version is None
# else f"{str(resource_type)}.{package}.{name}.v{version}"
)
unique_id = f"{str(resource_type)}.{package}.{name}"
node = mock.MagicMock(
__class__=cls,
resource_type=resource_type,
13 changes: 10 additions & 3 deletions tests/functional/partial_parsing/test_partial_parsing.py
Original file line number Diff line number Diff line change
@@ -304,36 +304,43 @@ def models(self):
return {
"model_one.sql": model_one_sql,
"model_one_v2.sql": model_one_sql,
"model_one_downstream.sql": model_four2_sql,
"schema.yml": models_versions_schema_yml,
}

def test_pp_versioned_models(self, project):
results = run_dbt(["run"])
assert len(results) == 2
assert len(results) == 3

manifest = get_manifest(project.project_root)
model_one_node = manifest.nodes["model.test.model_one.v1"]
assert not model_one_node.is_latest_version
model_two_node = manifest.nodes["model.test.model_one.v2"]
assert model_two_node.is_latest_version
# assert unpinned ref points to latest version
model_one_downstream_node = manifest.nodes["model.test.model_one_downstream"]
assert model_one_downstream_node.depends_on.nodes == ["model.test.model_one.v2"]

# update versions schema.yml block - latest_version from 2 to 1
write_file(
models_versions_updated_schema_yml, project.project_root, "models", "schema.yml"
)
results = run_dbt(["--partial-parse", "run"])
assert len(results) == 2
assert len(results) == 3

manifest = get_manifest(project.project_root)
model_one_node = manifest.nodes["model.test.model_one.v1"]
assert model_one_node.is_latest_version
model_two_node = manifest.nodes["model.test.model_one.v2"]
assert not model_two_node.is_latest_version
# assert unpinned ref points to latest version
model_one_downstream_node = manifest.nodes["model.test.model_one_downstream"]
assert model_one_downstream_node.depends_on.nodes == ["model.test.model_one.v1"]

# update versioned model
write_file(model_two_sql, project.project_root, "models", "model_one_v2.sql")
results = run_dbt(["--partial-parse", "run"])
assert len(results) == 2
assert len(results) == 3


class TestSources: