WIP: implementing the select object interface #143
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
S3 provides an interface for executing SQL style queries of slices of objects, see here. A basic method for this does appear in AWS.jl.
What I have here is a convenient interface for it. Unfortunately, it gets a little dicey, because AWS expects some rather elaborate arguments, that we need to provide reasonably defaults and options for, but ultimately what's here is not that much code.
For example, one should now be able to do
Unfortunately this does not seem to be working, at least it is not working for me with min.io. I get the following error from my min.io server
And in case you were wondering, yes, min.io does support this and yes, I'm using the latest version.
It seems that either AWS.jl is giving a bad request, or there is a bug in min.io causing the select interface not to conform to the AWS spec (presumably if that is the case, the bug becomes visible because of differences between AWS.jl and boto3).
To get to the bottom of it, we will need easier access to the explicit requests and receipts in the AWS.jl package. Ideally, this would already be provided by HTTP, but it isn't (at least not through debug logging) and that package is quite a lot more complicated than AWS.jl. So my next step should be to implement some useful debug logging in AWS.jl.