Skip to content

Commit adfc573

Browse files
mehmetcankurtIsaac
andcommitted
Skip duplicate-column concat test when pyarrow is not installed
The non-pyarrow unit test jobs import pyarrow as None, so the new test failed with AttributeError instead of being skipped like its neighbors. Co-authored-by: Isaac <no-reply@databricks.com> Signed-off-by: Mehmet Can Kurt <mehmet.cankurt@databricks.com>
1 parent ca5d07c commit adfc573

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tests/unit/test_util.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def old_concat(tables, promote_options=None, **kwargs):
174174
result_table = concat_table_chunks([arrow_table1, arrow_table2])
175175
assert result_table.column("col1").to_pylist() == [1, 2, 3, 4]
176176

177+
@pytest.mark.skipif(pyarrow is None, reason="PyArrow is not installed")
177178
def test_concat_table_chunks_duplicate_column_names(self):
178179
# Duplicate column names are valid SQL (e.g. SELECT 1 AS a, 2 AS a).
179180
# Schema promotion rejects them with ArrowInvalid, so when chunk

0 commit comments

Comments
 (0)