-
Notifications
You must be signed in to change notification settings - Fork 185
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
athena iceberg #659
Merged
Merged
athena iceberg #659
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
0e25102
first iceberg prototype
sh-rp 26f9e41
fix linting and clearing of staging tables
sh-rp e199bd1
disable tests
sh-rp b768a63
enable iceberg tests for athena
sh-rp 119ad6e
Merge branch 'devel' into d#/athena-iceberg
sh-rp 29a6d06
fix iceberg detection
sh-rp 439c72f
move athena tests to default sql configs
sh-rp b964388
finally fix regular athena tests...
sh-rp 2b5f004
some more work
sh-rp 7e82de7
fix replace disposition
sh-rp 202466f
fix datatype support
sh-rp bd9744c
fix append for merge in iceberg
sh-rp f627a0f
fix merge jobs for iceberg
sh-rp 9a94d4a
clean up followup jobs code
sh-rp 8682350
set iceberg tests to merge supported
sh-rp 1560768
fix sql merge syntax for iceberg
sh-rp 3f4fb1e
separate regular athena and iceberg tests
sh-rp 92613ec
remove some iceberg specific code
sh-rp 0924bc5
new iceberg approach
sh-rp 122d035
PR changes
sh-rp 7750318
small changes
sh-rp 0deecda
small changes
sh-rp 702fd4b
fix two tests
sh-rp d70985d
add missing athena fixes
sh-rp 95adc93
Merge branch 'devel' into d#/athena-iceberg
sh-rp 06dbaeb
small changes
sh-rp baa5e44
fixes
sh-rp ad8dc9b
update
sh-rp 00e474c
fix some tests
sh-rp acfcd16
small changes
sh-rp 0707629
small changes
sh-rp 4692e37
make type mapper table format sensitive
sh-rp 10131e4
disable dbt tests for athena iceberg
sh-rp 243246e
update doc
sh-rp ba0c593
small fix
sh-rp 1e8605c
pr changes
sh-rp 78fc17a
updates athena dbt docs
rudolfix 918c4d5
adds docsting on table format to decorators
rudolfix 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
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 |
---|---|---|
@@ -0,0 +1,94 @@ | ||
|
||
name: test athena iceberg | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- devel | ||
workflow_dispatch: | ||
|
||
env: | ||
DESTINATION__FILESYSTEM__CREDENTIALS__AWS_ACCESS_KEY_ID: AKIAT4QMVMC4J46G55G4 | ||
DESTINATION__FILESYSTEM__CREDENTIALS__AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
DESTINATION__ATHENA__CREDENTIALS__AWS_ACCESS_KEY_ID: AKIAT4QMVMC4J46G55G4 | ||
DESTINATION__ATHENA__CREDENTIALS__AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
DESTINATION__ATHENA__CREDENTIALS__REGION_NAME: eu-central-1 | ||
DESTINATION__ATHENA__QUERY_RESULT_BUCKET: s3://dlt-athena-output | ||
|
||
RUNTIME__SENTRY_DSN: https://[email protected]/4504819859914752 | ||
RUNTIME__LOG_LEVEL: ERROR | ||
RUNTIME__DLTHUB_TELEMETRY_SEGMENT_WRITE_KEY: TLJiyRkGVZGCi2TtjClamXpFcxAA1rSB | ||
ACTIVE_DESTINATIONS: "[\"athena\"]" | ||
ALL_FILESYSTEM_DRIVERS: "[\"memory\"]" | ||
EXCLUDED_DESTINATION_CONFIGURATIONS: "[\"athena-no-staging\"]" | ||
|
||
jobs: | ||
get_docs_changes: | ||
uses: ./.github/workflows/get_docs_changes.yml | ||
# Tests that require credentials do not run in forks | ||
if: ${{ !github.event.pull_request.head.repo.fork }} | ||
|
||
run_loader: | ||
name: test destination athena iceberg | ||
needs: get_docs_changes | ||
if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
# os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
defaults: | ||
run: | ||
shell: bash | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
|
||
- name: Check out | ||
uses: actions/checkout@master | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10.x" | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
installer-parallel: true | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
# path: ${{ steps.pip-cache.outputs.dir }} | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-athena | ||
|
||
- name: Install dependencies | ||
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction -E athena | ||
|
||
- run: | | ||
poetry run pytest tests/load | ||
if: runner.os != 'Windows' | ||
name: Run tests Linux/MAC | ||
- run: | | ||
poetry run pytest tests/load | ||
if: runner.os == 'Windows' | ||
name: Run tests Windows | ||
shell: cmd | ||
|
||
matrix_job_required_check: | ||
name: Redshift, PostgreSQL and DuckDB tests | ||
needs: run_loader | ||
runs-on: ubuntu-latest | ||
if: always() | ||
steps: | ||
- name: Check matrix job results | ||
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') | ||
run: | | ||
echo "One or more matrix job tests failed or were cancelled. You may need to re-run them." && exit 1 |
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
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
Oops, something went wrong.
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.
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.
With this the main destination can control the behavior of the staging destination, this was kind of undefined before, so we were lucky that athena worked properly, but now it is well defined and we will also need this on other datalakes.
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.
good! you could use that in tests to generate test configs automatically, no?