Skip to content
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

use correct escaper for insert queries #117

Closed
wants to merge 2 commits into from
Closed

Conversation

s-ducks
Copy link

@s-ducks s-ducks commented Jul 27, 2022

fixes #109

Couldn't find any contribution guide, or tests to add to - please point out if wrong, we have another contribution (bit bigger than this one) we'd like to make

Copy link

@owenprough-sift owenprough-sift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this in my project and it works. Thank you so much for fixing, this!

Testing Notes

I created a seed file with these contents:

"long_form","contraction_form"
"do not","don't"
"can not","can't"
  • dbt seed successfully loaded the data into Athena
  • dbt build successfully loaded the data into Athena

owenprough-sift added a commit to owenprough-sift/dbt-athena that referenced this pull request Nov 10, 2022
nicor88 added a commit to dbt-athena/dbt-athena that referenced this pull request Nov 10, 2022
Copy/paste from: Tomme/dbt-athena#117

Co-authored-by: nicor88 <6278547+nicor88@users.noreply.github.com>
nicor88 added a commit to dbt-athena/dbt-athena that referenced this pull request Nov 15, 2022
* [BUGFIX] Add support for partition fields of type timestamp (#6)

* fix glue partition handling (#2)

* Add support for partition fields of type timestamp

Co-authored-by: nicor88 <6278547+nicor88@users.noreply.github.com>
Co-authored-by: yusuf.mahtab <yusuf.mahtab@fundingcircle.com>

* add changelog and prepare version bump

* Get model owner from manifest (#9)

* Get model owner from manifest

* refactor into private function

Co-authored-by: Justas Cernas <justas.cernas@fundingcircle.com>

Co-authored-by: Justas Cernas <justas.cernas@fundingcircle.com>

* chore: fix flake8 linting (#10)

* Use correct escaper for `INSERT` queries (#18)

Copy/paste from: Tomme/dbt-athena#117

Co-authored-by: nicor88 <6278547+nicor88@users.noreply.github.com>

* fix: share same boto session between every calls (#16)

Co-authored-by: nicor88 <6278547+nicor88@users.noreply.github.com>

* Update CHANGELOG.md

Co-authored-by: Daniel Messias <danielcmessias@gmail.com>
Co-authored-by: yusuf.mahtab <yusuf.mahtab@fundingcircle.com>
Co-authored-by: Justas Cernas <justas.cernas@fundingcircle.com>
Co-authored-by: Jérémy Guiselin <9251353+Jrmyy@users.noreply.github.com>
Co-authored-by: Owen <74567580+owenprough-sift@users.noreply.github.com>
nicor88 added a commit to dbt-athena/dbt-athena that referenced this pull request Nov 16, 2022
* [BUGFIX] Add support for partition fields of type timestamp (#6)

* fix glue partition handling (#2)

* Add support for partition fields of type timestamp

Co-authored-by: nicor88 <6278547+nicor88@users.noreply.github.com>
Co-authored-by: yusuf.mahtab <yusuf.mahtab@fundingcircle.com>

* add changelog and prepare version bump

* Get model owner from manifest (#9)

* Get model owner from manifest

* refactor into private function

Co-authored-by: Justas Cernas <justas.cernas@fundingcircle.com>

Co-authored-by: Justas Cernas <justas.cernas@fundingcircle.com>

* chore: fix flake8 linting (#10)

* Use correct escaper for `INSERT` queries (#18)

Copy/paste from: Tomme/dbt-athena#117

Co-authored-by: nicor88 <6278547+nicor88@users.noreply.github.com>

* fix: share same boto session between every calls (#16)

Co-authored-by: nicor88 <6278547+nicor88@users.noreply.github.com>

* Update CHANGELOG.md

Co-authored-by: Daniel Messias <danielcmessias@gmail.com>
Co-authored-by: yusuf.mahtab <yusuf.mahtab@fundingcircle.com>
Co-authored-by: Justas Cernas <justas.cernas@fundingcircle.com>
Co-authored-by: Jérémy Guiselin <9251353+Jrmyy@users.noreply.github.com>
Co-authored-by: Owen <74567580+owenprough-sift@users.noreply.github.com>
@s-ducks
Copy link
Author

s-ducks commented Dec 6, 2022

Merged to dbt-athena/dbt-athena, closing :)

@s-ducks s-ducks closed this Dec 6, 2022
nicor88 added a commit to Avinash-1394/dbt-athena that referenced this pull request Jan 22, 2023
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: nicor88 <6278547+nicor88@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Seeds don't work with single quote
2 participants