Skip to content

feat: issue with relation.schema in the S3 path when a custom location is set #683

Open
akmalsoliev wants to merge 5 commits into
aws-samples:mainfrom
akmalsoliev:fix_667
Open

feat: issue with relation.schema in the S3 path when a custom location is set #683
akmalsoliev wants to merge 5 commits into
aws-samples:mainfrom
akmalsoliev:fix_667

Conversation

@akmalsoliev

@akmalsoliev akmalsoliev commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

resolves #667

Description

Please refer to #667 for more information.

This PR also includes simplification of location construction, certain sections of the code were hard coding the location, now it refers to _build_location

I rant this on personal AWS and works like a charm.

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-glue next" section.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@akmalsoliev akmalsoliev changed the title Issue with relation.schema in the S3 path when a custom location is set feat: issue with relation.schema in the S3 path when a custom location is set Jun 2, 2026
@akmalsoliev

Copy link
Copy Markdown
Contributor Author

Hey @yotahk can we kick CI for this one?

Comment thread dbt/adapters/glue/impl.py
@yotahk

yotahk commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

@akmalsoliev Added one comment, would you check before kicking CI?

@akmalsoliev

Copy link
Copy Markdown
Contributor Author

@akmalsoliev Added one comment, would you check before kicking CI?

✅ Done

@yotahk yotahk added the enable-functional-tests This label enable functional tests label Jun 4, 2026
@akmalsoliev

akmalsoliev commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

Hey @yotahk, I noticed that the fail had nothing to do with my PR, a simple indentation error, want me to fix it?

UPDATE: Just realized that git blame is @akmalsoliev 🤫 Don't tell the author that he introduced this error 🤣. I'll fix this.

@yotahk

yotahk commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Oof... appreciate the cleanup :)

@akmalsoliev

Copy link
Copy Markdown
Contributor Author

Oof... appreciate the cleanup :)

Fixed now.

@yotahk yotahk added enable-functional-tests This label enable functional tests and removed enable-functional-tests This label enable functional tests labels Jun 4, 2026
@yotahk

yotahk commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Looks like CI is still failing with IndentationError. Do you have pre-commit configured in your local environment? We should be able to capture linter/formatter errors before committing.
https://pre-commit.com/

@akmalsoliev

Copy link
Copy Markdown
Contributor Author

Looks like CI is still failing with IndentationError. Do you have pre-commit configured in your local environment? We should be able to capture linter/formatter errors before committing. https://pre-commit.com/

sadly I'm unable to reproduce the error locally, so attempting couple of fixes, if this time doesn't work I will just create a temporary aws account for this. I hope the issue was caused by jinja's if else indentation, let's give it a last chance and if doesn't work will go with fresh aws account.

@yotahk yotahk added enable-functional-tests This label enable functional tests and removed enable-functional-tests This label enable functional tests labels Jun 8, 2026
@akmalsoliev

Copy link
Copy Markdown
Contributor Author
Going Crazy GIF

@akmalsoliev

Copy link
Copy Markdown
Contributor Author

hey @yotahk, started with a fresh account, ran all the test, nothing fails. Could you check on your end if arn and s3 location DBT_GLUE_ROLE_ARN, DBT_S3_LOCATION isn't expired (github secrets)?

@yotahk

yotahk commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Investigation:

@akmalsoliev the changes in this PR looks good, however the CI configuration change introduced in #678 seems to be the root of unit test failure. I'll check the background and update again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enable-functional-tests This label enable functional tests repeat-contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DISCUSSION] Issue with relation.schema in the S3 path when a custom location is set

2 participants