Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Oct 22, 2024
1 parent f360cd1 commit 3f22305
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/polars-plan/src/dsl/python_udf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl PythonUdfExpression {
(3, ser_py_version[0], ser_py_version[1] )
);
}
let buf = &buf[2..];
let buf = &buf[3..];

// Load UDF metadata
let mut reader = Cursor::new(buf);
Expand Down
6 changes: 2 additions & 4 deletions py-polars/tests/unit/io/cloud/test_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ def raises_2() -> pl.CredentialProviderFunctionReturn:
pl.scan_parquet("s3://bucket/path", credential_provider=raises_2).collect()


def test_scan_credential_provider_serialization(
monkeypatch: pytest.MonkeyPatch,
) -> None:
def test_scan_credential_provider_serialization() -> None:
err_magic = "err_magic_3"

class ErrCredentialProvider(pl.CredentialProvider):
Expand All @@ -74,7 +72,7 @@ def __call__(self) -> pl.CredentialProviderFunctionReturn:

lf = pl.LazyFrame.deserialize(io.BytesIO(serialized))

with pytest.raises(AssertionError, match=err_magic):
with pytest.raises(ComputeError, match=err_magic):
lf.collect()


Expand Down

0 comments on commit 3f22305

Please sign in to comment.