Skip to content

Commit

Permalink
feat(pyspark): enable multiple values in .substitute
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Nov 21, 2023
1 parent 4b28ff1 commit 291a290
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ibis/backends/tests/test_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,16 +1022,14 @@ def test_array_string_join(con):


@pytest.mark.notimpl(
["mssql", "mysql", "pyspark", "druid", "oracle"],
raises=com.OperationNotDefinedError,
["mssql", "mysql", "druid", "oracle"], raises=com.OperationNotDefinedError
)
def test_subs_with_re_replace(con):
expr = ibis.literal("hi").re_replace("i", "a").substitute({"d": "b"}, else_="k")
result = con.execute(expr)
assert result == "k"


@pytest.mark.notimpl(["pyspark"], raises=com.OperationNotDefinedError)
def test_multiple_subs(con):
m = {"foo": "FOO", "bar": "BAR"}
expr = ibis.literal("foo").substitute(m)
Expand Down

0 comments on commit 291a290

Please sign in to comment.