Skip to content

Commit b7280eb

Browse files
committed
spark slice function now respects inner field name
1 parent 881b33b commit b7280eb

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

python/tests/test_spark_functions.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,6 @@ def test_slice(df):
175175
assert _val(df, spark.slice(col("a"), lit(2), lit(2))) == [2, 3]
176176

177177

178-
@pytest.mark.xfail(
179-
strict=True,
180-
reason="Upstream array_slice does not preserve Spark array field names",
181-
)
182178
def test_slice_spark_array(df):
183179
arr = spark.array(lit(1), lit(2), lit(3), lit(4))
184180
assert _val(df, spark.slice(arr, lit(2), lit(2))) == [2, 3]

0 commit comments

Comments
 (0)