Skip to content

Commit

Permalink
Some debugging output
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Oct 7, 2024
1 parent 7d266e7 commit 1f2fc5a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,15 @@ def test_valid_to_current(self, project):
project.run_sql(seed_dbt_valid_to_sql)
results = run_dbt(["snapshot"])
assert len(results) == 1
manifest = get_manifest(project.project_root)
print(f"--- nodes keys: {manifest.nodes.keys()}")

original_snapshot = run_sql_with_adapter(
project.adapter,
"select id, test_scd_id, test_valid_to from {database}.{schema}.snapshot_actual",
"all",
)
print(f"\n\n--- original_snapshot: {original_snapshot}")
assert original_snapshot[0][2] == datetime.datetime(2099, 12, 31, 0, 0)
assert original_snapshot[9][2] == datetime.datetime(2099, 12, 31, 0, 0)

Expand Down

0 comments on commit 1f2fc5a

Please sign in to comment.