Skip to content

Commit 320acdb

Browse files
committed
chore: update snapshots
1 parent f704dfc commit 320acdb

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

python/xorq/common/utils/node_utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ def get_typs(maybe_typs):
4646

4747
def find_by_expr_hash(expr, to_replace_hash, typs=None):
4848
typs = get_typs(typs)
49+
50+
with open("nodes.txt", mode="a+") as f:
51+
for node in walk_nodes(typs, expr):
52+
print(node, node.to_expr().ls.tokenized, to_replace_hash, file=f)
53+
4954
(to_replace, *rest) = (
5055
node
5156
for node in walk_nodes(typs, expr)

python/xorq/ibis_yaml/tests/snapshots/test_compiler/test_build_file_stability_https/expected.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"6c96e9dd3dae.sql": "64898e4816b436c2c6c5d534e2005d8f",
44
"d4c7b4371895.sql": "0a5e02a1eb1b6acd8dac809e7105f589",
55
"d9167e92b15e.sql": "677d396e365f6dcbda3f20b588d6a064",
6-
"deferred_reads.yaml": "2071b575cb177bf052db248eb0687837",
7-
"expr.yaml": "a4dde8e66fbedeb8eec582967e8dd35a",
8-
"profiles.yaml": "7cbd1ea3f1c556b4abf9d8bbd67b60c1",
9-
"sql.yaml": "b0661523156d4147370b968f29cbc27c"
6+
"deferred_reads.yaml": "8d747fc27b9af8c665c30e729a064775",
7+
"expr.yaml": "2c870412516ac1586ea0199f90609108",
8+
"profiles.yaml": "3d8d71cd62a830bf98ce18638406edcb",
9+
"sql.yaml": "79a7285bd0391cea1f7c2a542e2cd65e"
1010
}

python/xorq/tests/test_cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,9 @@ def test_init_uv_build_uv_run(template, tmpdir):
485485

486486
serve_hashes = (
487487
"323f89d94c90d1dcf0660baefd813658", # batting, rel.Read
488-
"d5ca7be107d6b69cd11715fa9bb628b9", # awards_players, rel.Read
488+
"e6d438bd87aa3d84babd6f4c2956312f", # awards_players, rel.Read
489489
"3c1b0dc766c6d217ab921fc73ebfe933", # left, ops.Filter
490-
"8cd7850627df82fc184a152d770eb205", # right, ops.DropColumns
490+
"c3950f7f9ab98a9e943e02f761db7c2a", # right, ops.DropColumns
491491
)
492492

493493

@@ -544,7 +544,7 @@ def hit_server(port, expr):
544544
@pytest.mark.parametrize("serve_hash", serve_hashes)
545545
def test_serve_unbound_hash(serve_hash, pipeline_https_build):
546546
lookup = {
547-
"8cd7850627df82fc184a152d770eb205": "xorq.vendor.ibis.expr.operations.DropColumns",
547+
"c3950f7f9ab98a9e943e02f761db7c2a": "xorq.vendor.ibis.expr.operations.DropColumns",
548548
"3c1b0dc766c6d217ab921fc73ebfe933": "xorq.vendor.ibis.expr.operations.Filter",
549549
}
550550
expr = load_expr(pipeline_https_build)
@@ -707,7 +707,7 @@ def test_serve_penguins_template(tmpdir, tmp_path):
707707
assert returncode == 0, stderr
708708

709709
if match := re.search(f"{target_dir}/([0-9a-f]+)", stdout.decode("ascii")):
710-
serve_hash = "da8ba93cc97709f4ad9502e16d71e8e3" # RemoteTable 2
710+
serve_hash = "9ee03c12dbe2989290d22b98dddd6a8f" # RemoteTable 2
711711

712712
serve_args = (
713713
"xorq",

0 commit comments

Comments
 (0)