Skip to content

Commit 57e2785

Browse files
committed
Attempt to fix test_storage_iceberg/test.py::test_cluster_table_function
After merging #878 Bringing tests closer to upstream.
1 parent 0e032cc commit 57e2785

File tree

1 file changed

+20
-0
lines changed
  • tests/integration/test_storage_iceberg

1 file changed

+20
-0
lines changed

tests/integration/test_storage_iceberg/test.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,26 @@ def add_df(mode):
711711
instance.query(f"SELECT * FROM {table_function_expr}").strip().split()
712712
)
713713

714+
# Cluster Query with node1 as coordinator
715+
table_function_expr_cluster = get_creation_expression(
716+
storage_type,
717+
TABLE_NAME,
718+
started_cluster,
719+
table_function=True,
720+
run_on_cluster=True,
721+
)
722+
723+
select_cluster = (
724+
instance.query(f"SELECT * FROM {table_function_expr_cluster}").strip().split()
725+
)
726+
727+
# Simple size check
728+
assert len(select_regular) == 600
729+
assert len(select_cluster) == 600
730+
731+
# Actual check
732+
assert select_cluster == select_regular
733+
714734
def make_query_from_function(
715735
run_on_cluster=False,
716736
alt_syntax=False,

0 commit comments

Comments
 (0)