-
Notifications
You must be signed in to change notification settings - Fork 149
[DEV-13726] Implement File B downloads in DuckDB #4548
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
Merged
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
445d412
[DEV-13726] Add DuckDB dependency
aguest-kc 9a0f694
[DEV-13726] Add DuckDB download strategy
aguest-kc 1c48b93
[DEV-13726] Update number formatting and import order
aguest-kc 5cf9413
[DEV-13726] Add DuckDB type hints and imports
aguest-kc 55a2ea9
[DEV-13726] Make Spark downloads work with DuckDB
aguest-kc b4f9340
[DEV-13726] Clean up write CSV function
aguest-kc 51c4762
[DEV-13726] Pin DuckDB version and install extensions
aguest-kc 1a9a320
[DEV-13726] Time the entire download process
aguest-kc 28c5185
[DEV-13726] Remove DuckDB flag from viewset
aguest-kc 8091b75
[DEV-13726] Manually set memory limit for DuckDB
aguest-kc ee83d50
[DEV-13726] Update AWS config
aguest-kc f8b857d
[DEV-13726] Use env vars for AWS secret
aguest-kc ee645b9
[DEV-13726] Update the Broker DB URL env variable name
aguest-kc 7b05e11
[DEV-13726] Update Broker env var name
aguest-kc cb264a3
Merge branch 'qat' into ftr/dev-13726-duckdb-file-b-downloads
aguest-kc b4e4ec3
[DEV-13726] Add comment
aguest-kc 37c4a5b
[DEV-13726] Update S3 auth and CSV generation
aguest-kc cf75a9c
[DEV-13726] Fix typo in DuckDB secret
aguest-kc ea2cb08
[DEV-13726] Remove test CSV file row limit
aguest-kc 6a40043
Merge branch 'qat' into ftr/dev-13726-duckdb-file-b-downloads
aguest-kc 8b01fc4
[DEV-13726] Consolidate SQL statements
aguest-kc 39e614f
[DEV-13726] Update federal account dataframe
aguest-kc 3b5bc75
[DEV-13726] Update federal account dataframe
aguest-kc 24881dc
Merge branch 'qat' into ftr/dev-13726-duckdb-file-b-downloads
aguest-kc ba1ca86
[DEV-13726] Flake8 fixes and comment clean up
aguest-kc 29c25f6
[DEV-13726] black formatting fixes
aguest-kc 1444a70
Merge branch 'qat' into ftr/dev-13726-duckdb-file-b-downloads
aguest-kc 325b000
[DEV-13726] Update SQL functions
aguest-kc dce5833
[DEV-13726] Add spark parameter
aguest-kc 52960bd
[DEV-13726] Black format fix
aguest-kc 777bce2
[DEV-13726] Revert default Spark strategy to Databricks
aguest-kc faa7e16
[DEV-13726] Use LocalStrategy instead of DatabricksStrategy
aguest-kc 8b15fa4
[DEV-13726] Only use Spark for File A downloads
aguest-kc 990e37b
Merge branch 'qat' into ftr/dev-13726-duckdb-file-b-downloads
aguest-kc 6522b80
[DEV-13726] Move DuckDB setup to setup_spark_session() method
aguest-kc ac7e90f
[DEV-13726] Convert to UNIX line endings
aguest-kc 8e402f3
[DEV-13726] Revert Spark table logic
aguest-kc d12f8a8
[DEV-13726] Replaced hardcoded values with variables
aguest-kc 6fb3e58
[DEV-13726] Remove case that would never be reached
aguest-kc c0adbd1
Merge branch 'qat' into ftr/dev-13726-duckdb-file-b-downloads
aguest-kc 41fab45
[DEV-13726] Explain why DuckDB version is pinned
aguest-kc 0756469
[DEV-13726] Create a DuckDB Dockerfile
aguest-kc b8aea3d
[DEV-13726] Use CONFIG more
aguest-kc dd5c153
[DEV-13726] Log as exceptions and raise exception
aguest-kc a3d2a97
[DEV-13726] Add file_number in Pandas
aguest-kc 2645a8a
Merge branch 'qat' into ftr/dev-13726-duckdb-file-b-downloads
aguest-kc 454e6ba
[DEV-13726] Add `rel` definition back and flake8 fix
aguest-kc 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Dockerfile for downloads using DuckDB | ||
|
|
||
| FROM usaspending-backend:latest | ||
|
|
||
| # Install DuckDB extensions | ||
| RUN mkdir -p /root/.duckdb/extensions/v1.4.1/linux_amd64 && \ | ||
| curl http://extensions.duckdb.org/v1.4.1/linux_amd64/delta.duckdb_extension.gz | gunzip > /root/.duckdb/extensions/v1.4.1/linux_amd64/delta.duckdb_extension && \ | ||
| curl http://extensions.duckdb.org/v1.4.1/linux_amd64/aws.duckdb_extension.gz | gunzip > /root/.duckdb/extensions/v1.4.1/linux_amd64/aws.duckdb_extension && \ | ||
| curl http://extensions.duckdb.org/v1.4.1/linux_amd64/httpfs.duckdb_extension.gz | gunzip > /root/.duckdb/extensions/v1.4.1/linux_amd64/httpfs.duckdb_extension && \ | ||
| curl http://extensions.duckdb.org/v1.4.1/linux_amd64/postgres_scanner.duckdb_extension.gz | gunzip > /root/.duckdb/extensions/v1.4.1/linux_amd64/postgres_scanner.duckdb_extension |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.