From b40e005c175464333a6ef560a01fbc13a39f6993 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Fri, 28 Aug 2026 14:58:16 +0800 Subject: [PATCH] test: align computed declaration terminology --- python/python/tests/test_table.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/python/tests/test_table.py b/python/python/tests/test_table.py index f05dd148f..38a950999 100644 --- a/python/python/tests/test_table.py +++ b/python/python/tests/test_table.py @@ -4087,10 +4087,10 @@ def test_computed_column_rejects_transforms_and_computed_together(tmp_path): table.add_columns({"a": "x + 1"}, computed={"b": "x * 2"}) -def test_computed_blob_input_and_explicit_output(tmp_path): +def test_computed_column_blob_input_and_explicit_output(tmp_path): schema = pa.schema([pa.field("id", pa.int64()), lancedb.blob("image")]) db = lancedb.connect(tmp_path) - table = db.create_table("computed_blob", schema=schema) + table = db.create_table("computed_column_blob", schema=schema) table.add( [ {"id": 1, "image": b"hello"}, @@ -4118,9 +4118,9 @@ def test_computed_blob_input_and_explicit_output(tmp_path): assert copied.to_pylist() == [b"hello", b"", None] -def test_computed_blob_rejects_eager_transforms(tmp_path): +def test_blob_output_declaration_rejects_eager_transforms(tmp_path): db = lancedb.connect(tmp_path) - table = db.create_table("computed_blob_mixed", [{"x": 1}]) + table = db.create_table("computed_column_blob_mixed", [{"x": 1}]) with pytest.raises(ValueError): table.add_columns( {"a": "x + 1"},