-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for downloading result from s3 #66
Open
jankaifer
wants to merge
8
commits into
uber:master
Choose a base branch
from
jan2893:jankaifer/add-support-for-downloading-result-from-s3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c55e2b1
Feat: add support for getting result from S3 if there is more than 1 …
jankaifer 8e536d2
Feat: use separate config for s3 bucket configuration for result down…
jankaifer 96e6de7
Update go/rows.go
jan2893 17eb142
Add custom csv parser that understands empty values
4ce8285
Use IsValueMissing method in rows.go
dd232e6
remove extra logs
d6b30d5
Fix: abort queries that generate more than 1 GB of data
d90deb8
Feat: decrease max s3 file limit to 100MB
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,76 @@ | ||
module github.com/uber/athenadriver | ||
|
||
go 1.13 | ||
go 1.21 | ||
|
||
toolchain go1.23.0 | ||
|
||
require ( | ||
github.com/DATA-DOG/go-sqlmock v1.4.1 | ||
github.com/aws/aws-sdk-go v1.51.3 | ||
github.com/cactus/go-statsd-client/statsd v0.0.0-20200423205355-cb0885a1018c | ||
github.com/jedib0t/go-pretty/v6 v6.2.7 | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/stretchr/testify v1.7.0 | ||
github.com/uber-go/tally v3.3.17+incompatible | ||
github.com/xwb1989/sqlparser v0.0.0-20180606152119-120387863bf2 | ||
go.uber.org/config v1.4.0 | ||
go.uber.org/fx v1.12.0 | ||
go.uber.org/zap v1.15.0 | ||
) | ||
|
||
require ( | ||
github.com/BurntSushi/toml v0.3.1 // indirect | ||
github.com/aws/aws-sdk-go-v2 v1.32.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 // indirect | ||
github.com/aws/aws-sdk-go-v2/config v1.27.43 // indirect | ||
github.com/aws/aws-sdk-go-v2/credentials v1.17.41 // indirect | ||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.17 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.21 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.21 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.21 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/s3 v1.65.3 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sso v1.24.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sts v1.32.2 // indirect | ||
github.com/aws/smithy-go v1.22.0 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/google/renameio v0.1.0 // indirect | ||
github.com/jmespath/go-jmespath v0.4.0 // indirect | ||
github.com/jmespath/go-jmespath/internal/testify v1.5.1 // indirect | ||
github.com/kisielk/gotool v1.0.0 // indirect | ||
github.com/kr/pretty v0.1.0 // indirect | ||
github.com/kr/pty v1.1.1 // indirect | ||
github.com/kr/text v0.1.0 // indirect | ||
github.com/mattn/go-runewidth v0.0.13 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/pkg/profile v1.6.0 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/rivo/uniseg v0.2.0 // indirect | ||
github.com/rogpeppe/go-internal v1.3.0 // indirect | ||
github.com/stretchr/objx v0.1.0 // indirect | ||
github.com/yuin/goldmark v1.4.13 // indirect | ||
go.uber.org/atomic v1.6.0 // indirect | ||
go.uber.org/dig v1.9.0 // indirect | ||
go.uber.org/goleak v0.10.0 // indirect | ||
go.uber.org/multierr v1.5.0 // indirect | ||
go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee // indirect | ||
golang.org/x/crypto v0.14.0 // indirect | ||
golang.org/x/lint v0.0.0-20190930215403-16217165b5de // indirect | ||
golang.org/x/mod v0.8.0 // indirect | ||
golang.org/x/net v0.17.0 // indirect | ||
golang.org/x/sync v0.1.0 // indirect | ||
golang.org/x/sys v0.13.0 // indirect | ||
golang.org/x/term v0.13.0 // indirect | ||
golang.org/x/text v0.13.0 // indirect | ||
golang.org/x/tools v0.6.0 // indirect | ||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 // indirect | ||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect | ||
gopkg.in/errgo.v2 v2.1.0 // indirect | ||
gopkg.in/yaml.v2 v2.2.8 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect | ||
honnef.co/go/tools v0.0.1-2019.2.3 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An interesting detail is that I fetch that s3 file only if there are multiple pages. If all results are present on the first page, then we don't need to download the S3 file.
I fetch the first page every time because we need metadata information anyway (like types of columns etc.). And doing one extra request is not that problematic for large queries anyway.