Open svaningelgem opened 1 year ago
It is because object store tries to connect to aws. This has more to do with making this work with mojo testing than being an actual bug in the aws connection code.
Indeed, but if it's not tested, how can we (read: I) improve on it? 😁
I'm trying to make the sink_parquet work with the object_store code (ticket #11056), but if I can't test it... I can't fix it. And I don't know rust that well (better now I'm digging into it, but still)... So if it's not too much of an issue:
Thanks
@svaningelgem I observed the same issue while trying to use a ThreadedMotoServer
. Instead, you can get this to work if you launch moto_server
as a subprocess. I am currently using this as a workaround for polars + s3 testing in python.
Checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of Polars.
Reproducible example
Just re-add
(pl.scan_parquet, "parquet"),
to the parameters oftest_scan_s3
.(removed by @ritchie46 in PR #11210 )
Log output
Issue description
The call fails. I believe because the
object_store
crate doesn't likehttp
very much. So, I added (according to theobject_store
docs here:to the
s3_base
fixture (same file). (I tried with both the endpoint enabled and disabled)But this just locked (deadlock?) the test. Ie:
The
Terminated
is because I killed the process myself after a minute or so.This is fairly similar to #11372, but I created this new thread because I purely focus on the testing in here.
Expected behavior
I would expect the
scan_parquet
to read in aLazyFrame
.Installed versions