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

add minimum compatibility for 1.6.0 #55

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tom-juntunen
Copy link
Collaborator

@tom-juntunen tom-juntunen commented Apr 21, 2024

Per the adapter maintainer upgrade guide for v1.6.0, this PR includes the following:

Bugs fixed:

  • Fixed a bug causing the dateadd macro to fail its tests when handling DATETIME type fields. The updated sqlite__dateadd.sql macro now adequately handles both DATE and DATETIME types per ISO-8601 and passes its tests now.

Changes made:

[BtS] Adapter zone tests

  • Added four new tests in test_utils.py and all tests passed without overrides.

No changes required:

[BtS] Drop support for Py 3.7

  • Support for Py 3.7 was already removed in dbt-sqlite 1.2.0rc1.

[BtS] new arg for adapter.execute()

  • We use SQLConnectionManager.execute() directly. No changes required.

No changes made:

[FEATURE] Materialized Views:

  • Materialized views are not supported in sqlite3. No changes made.

[FEATURE] dbt clone

  • Clone objects are not supported in sqlite3 because it is a simple in-process database.

[BtS] revamp of dbt debug

  • No new warnings or errors in tests. No changes made.

Possible remaining todo:

  • Left out tests related to Contracts as they aren't being implemented as a feature. I had created a test and ran it only to see the test failed, which was expected, so the unit test needs to be overridden in order to make that passing criteria instead of failing.

Per the adapter maintainer upgrade guide for v1.6.0, this PR includes the following:
Bugs fixed:

- Fixed a bug causing the dateadd macro to fail its tests when handling DATETIME type fields. The updated sqlite__dateadd.sql macro now adequately handles both DATE and DATETIME types per ISO-8601 and passes its tests now.

Changes made:

[BtS] Adapter zone tests

- Added four new tests in test_utils.py and all tests passed without overrides.

No changes required:

[BtS] Drop support for Py 3.7

- Support for Py 3.7 was already removed in dbt-sqlite 1.2.0rc1.

[BtS] new arg for adapter.execute()

- We use SQLConnectionManager.execute() directly. No changes required.

No changes made:

[FEATURE] Materialized Views:

- Materialized views are not supported in sqlite3. No changes made.

[FEATURE] dbt clone

- Clone objects are not supported in sqlite3 because it is a simple in-process database.

[BtS] revamp of dbt debug

- No new warnings or errors in tests. No changes made.

Possible remaining todo

- Left out tests related to Contracts as they aren't being implemented as a feature. I had created a test and ran it only to see the test failed, which was expected, so the unit test needs to be overridden in order to make that passing criteria instead of failing.
@codeforkjeff
Copy link
Owner

This is fantastic! Everything looks really good here and ready to merge.

@kokorin
Copy link

kokorin commented Jul 26, 2024

@codeforkjeff do you think we can expect this PR merged and new version released to PyPI?

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.

3 participants