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

Fix unicode decode error #169

Merged
merged 3 commits into from
Apr 26, 2024
Merged

Fix unicode decode error #169

merged 3 commits into from
Apr 26, 2024

Conversation

mwallace582
Copy link
Collaborator

resolves #160

Description

Re-issue of pull request #161 now targeting 1.2.latest. Targeting this new branch ensures that the newly refactored CI tests will run before the pull request can merge.

I've done some manual testing (on Linux), and this is working as expected. Changing the encoding to something other than utf-8 breaks things like you might expect.

Checklist

  • 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 with information about my change

sagunn-echo and others added 3 commits December 1, 2023 10:00
Explicitly defining utf-8 encoding to avoid UnicodeDecodeError on setup.py in Windows environment
@mwallace582 mwallace582 added the ok to test This pull request can run integration tests label Feb 3, 2024
@mwallace582 mwallace582 mentioned this pull request Feb 3, 2024
2 tasks
@mwallace582 mwallace582 merged commit dcb472e into 1.2.latest Apr 26, 2024
8 of 9 checks passed
mwallace582 added a commit that referenced this pull request Apr 26, 2024
* Revert "Upgraded to dbt-core 1.4. (#146)"

This reverts commit 3db05eb.

* Fix version bumping

* Migration bump2version (unmaintained) to bump-my-version
* Import `bumpversion.cfg` from `dbt-snowflake`
* Convert `bumpversion.cfg` to `bumpversion.toml`
* Fix a few incorrect version labels

* Remove macos and windows as integration targets

* Fix requirements conflict between dbt 1.2 and tox

* Bump version to 1.3

* Upgraded to dbt-core 1.4. (#146)

* Upgraded to dbt-core 1.4.

* Updated CHANGELOG.

* Fixed policy fields definitions for mariadb and mysql5.

* Replaced deprecated dbt.exceptions.raise_compiler_error() with dbt.exceptions.CompilationError.

* Now using dbt.exceptions.DbtDatabaseError insead of dbt.exceptions.DatabaseException.

* Update version

* Update changelog

---------

Co-authored-by: Doug Beatty <doug.beatty@dbtlabs.com>

* Bump version to 1.5

* Update dbt-core to 1.5 and implement support for model contracts (#163)

Update dbt-core to 1.5.9 and implement support for constraints
* Update changelog
* Fix unit test error
     - The error was: `AttributeError: 'Namespace' object has no attribute 'MACRO_DEBUGGING'`
* Allow Unix socket connection rather than just TCP (#165)

* Support Black & MyPy pre-commit hooks (#167)

* Add black and mypy as pre-commit hooks

* Run black formatter on all files

* Add MyPy configuration & make tweaks and ignore errors to make MyPy pass

* Add .git-blame-ignore-revs to ignore `black` changes in git blame

* Update changelog

* Run black formatter on all files

* Add black commit to .git-blame-ignore-revs

* Run black formatter on all files

* Add black commit to .git-blame-ignore-revs

* Fix MyPy & black errors

* Make the `database` config field nullable again

* Fix mypy

* Bump version to 1.6

* Bump version to 1.7

* Fix import error

* Fix unicode decode error (#169)

* Update setup.py

Explicitly defining utf-8 encoding to avoid UnicodeDecodeError on setup.py in Windows environment

* Update CHANGELOG.md

---------

Co-authored-by: Scott Gunn <99990724+sagunn-echo@users.noreply.github.com>

* Pin jsonschema version to fix tests (#174)

* Add collation support in profiles.yml / Fix incorrect collation for utf8mb4 (#173)

* Add support for charset and collation in profile.yml

* Change mysql-connect-python version

* Update readme with new profile options

* Update setup.py with less restricting mysql-connector-python version after code review

Co-authored-by: Matthew Wallace <github@matthewwallace.me>

* Add collation and charset support for mariadb and mysql5

---------

Co-authored-by: Matthew Wallace <github@matthewwallace.me>

* Pin jsonschema version to fix tests

* Update black to resolve security alert

https://github.com/dbeatty10/dbt-mysql/security/dependabot/5

---------

Co-authored-by: Luke <lpezet@gmail.com>
Co-authored-by: Doug Beatty <doug.beatty@dbtlabs.com>
Co-authored-by: Scott Gunn <99990724+sagunn-echo@users.noreply.github.com>
Co-authored-by: Krzysztof Zajączkowski <65259263+kzajaczkowski@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok to test This pull request can run integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants