-
Notifications
You must be signed in to change notification settings - Fork 2
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
bugfix/timestamp-without-time-zone #5
Changes from 8 commits
f687bb7
f3542a3
11f6e1e
52ee7e4
d59d239
75cd961
b2a296c
47c291c
7a03163
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,33 @@ | ||
**Are you a current Fivetran customer?** | ||
<!--- Please tell us your name, title and company --> | ||
**Please provide your name and company** | ||
|
||
**What change(s) does this PR introduce?** | ||
<!--- Describe what changes your PR introduces to the package and how to leverage this new feature. --> | ||
**Link the issue/feature request which this PR is meant to address** | ||
<!--- If an issue was not created, please create one first so we may discuss the PR prior to opening one. --> | ||
|
||
**Did you update the CHANGELOG?** | ||
**Detail what changes this PR introduces and how this addresses the issue/feature request linked above.** | ||
|
||
**How did you validate the changes introduced within this PR?** | ||
|
||
**Which warehouse did you use to develop these changes?** | ||
|
||
**Did you update the CHANGELOG?** | ||
<!--- Please update the new package version’s CHANGELOG entry detailing the changes included in this PR. --> | ||
<!--- To select a checkbox you simply need to add an "x" with no spaces between the brackets (eg. [x] Yes). --> | ||
- [ ] Yes | ||
|
||
**Does this PR introduce a breaking change?** | ||
<!--- Does this PR introduce changes that will cause current package users' jobs to fail or require a `--full-refresh`? --> | ||
<!--- To select a checkbox you simply need to add an "x" with no spaces between the brackets (eg. [x] Yes). --> | ||
- [ ] Yes (please provide breaking change details below.) | ||
- [ ] No (please provide an explanation as to how the change is non-breaking below.) | ||
|
||
**Did you update the dbt_project.yml files with the version upgrade (please leverage standard semantic versioning)? (In both your main project and integration_tests)** | ||
**Did you update the dbt_project.yml files with the version upgrade (please leverage standard semantic versioning)? (In both your main project and integration_tests)** | ||
<!--- The dbt_project.yml and the integration_tests/dbt_project.yml files contain the version number. Be sure to upgrade it accordingly --> | ||
<!--- To select a checkbox you simply need to add an "x" with no spaces between the brackets (eg. [x] Yes). --> | ||
- [ ] Yes | ||
|
||
**Is this PR in response to a previously created Bug or Feature Request** | ||
<!--- If an Issue was created it is helpful to track the progress by linking it in the PR. --> | ||
<!--- To select a checkbox you simply need to add an "x" with no spaces between the brackets (eg. [x] Yes). --> | ||
- [ ] Yes, Issue/Feature [link bug/feature number here] | ||
- [ ] No | ||
|
||
**How did you test the PR changes?** | ||
<!--- Proof of testing is required in order for the PR to be approved. --> | ||
<!--- To check a box, remove the space and insert an x in the box (eg. [x] Buildkite). --> | ||
<!--- To select a checkbox you simply need to add an "x" with no spaces between the brackets (eg. [x] Yes). --> | ||
- [ ] Buildkite <!--- Buildkite testing is only applicable to Fivetran employees. --> | ||
- [ ] Local (please provide additional testing details below) | ||
|
||
**Select which warehouse(s) were used to test the PR** | ||
<!--- To check a warehouse remove the space and insert an x in the box (eg. [x] Bigquery). --> | ||
<!--- To select a checkbox you simply need to add an "x" with no spaces between the brackets (eg. [x] Yes). --> | ||
- [ ] BigQuery | ||
- [ ] Redshift | ||
- [ ] Snowflake | ||
- [ ] Postgres | ||
- [ ] Databricks | ||
- [ ] Other (provide details below) | ||
|
||
**Provide an emoji that best describes your current mood** | ||
<!--- For a complete list of markdown compatible emojis check our this git repo (https://gist.github.com/rxaviers/7360908) --> | ||
:dancer: | ||
|
||
**Feedback** | ||
|
||
We are so excited you decided to contribute to the Fivetran community dbt package! We continue to work to improve the packages and would greatly appreciate your [feedback](https://www.surveymonkey.com/r/DQ7K7WW) on our existing dbt packages or what you'd like to see next. | ||
|
||
**PR Template** | ||
- [Community Pull Request Template](?expand=1&template=pull_request_template.md) (default) | ||
|
||
- [Maintainer Pull Request Template](?expand=1&template=maintainer_pull_request_template.md) (to be used by maintainers) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
target/ | ||
dbt_modules/ | ||
logs/ | ||
|
||
env/ | ||
package-lock.yml | ||
dbt_packages/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,53 @@ | ||
# v0.2.0 dbt_qualtrics_source | ||
|
||
[PR #5](https://github.com/fivetran/dbt_qualtrics_source/pull/5) includes the following updates: | ||
|
||
## 🚨 Breaking Changes: Bug Fixes 🚨 | ||
- Casted the following timestamp fields in the below models using the `dbt.type_timestamp()` macro. This is necessary to ensure all timestamps are consistently casted and do not experience datatype mismatches in downstream transformations. | ||
- stg_qualtrics__contact_mailing_list_membership | ||
- unsubscribed_at | ||
- stg_qualtrics__directory_contact | ||
- created_at | ||
- unsubscribed_from_directory_at | ||
- last_modified_at | ||
- stg_qualtrics__directory_mailing_list | ||
- created_at | ||
- last_modified_at | ||
- stg_qualtrics__distribution_contact | ||
- opened_at | ||
- response_completed_at | ||
- response_started_at | ||
- sent_at | ||
- stg_qualtrics__distribution | ||
- created_at | ||
- last_modified_at | ||
- send_at | ||
- survey_link_expires_at | ||
- stg_qualtrics__survey_response | ||
- finished_at | ||
- is_finished | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you can remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure why that snuck in there. Probably an artifact of copy/paste. Thanks for catching! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated |
||
- last_modified_at | ||
- recorded_date | ||
- started_at | ||
- stg_qualtrics__survey_version | ||
- created_at | ||
- stg_qualtrics__survey | ||
- last_accessed_at | ||
- last_activated_at | ||
- last_modified_at | ||
- stg_qualtrics__user | ||
- account_created_at | ||
- account_expires_at | ||
- last_login_at | ||
- password_expires_at | ||
- password_last_changed_at | ||
|
||
> Please note: this update will likely only impact Redshift destinations as it was found the connector synced these fields as `timestamp with time zone` when in fact they were without. Most users will not see any changes following this release. But we marked this as breaking to ensure no possible datatype conflicts downstream. | ||
|
||
## Under the Hood | ||
- Updated the maintainer PR template to resemble the most up to date format. | ||
- Added the auto release GitHub Action for easier deployment. | ||
|
||
# dbt_qualtrics_source v0.1.1 | ||
[PR #4](https://github.com/fivetran/dbt_qualtrics_source/pull/4) includes the following update: | ||
## Bug fix | ||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ final as ( | |
mailing_list_id, | ||
name, | ||
owner_id as owner_user_id, | ||
unsubscribe_date as unsubscribed_at, | ||
cast(unsubscribe_date as {{ dbt.type_timestamp() }}) as unsubscribed_at, | ||
unsubscribed as is_unsubscribed, | ||
_fivetran_synced, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we cast There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we don't use |
||
source_relation | ||
|
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.
Could you add `` to each of these models for better readability. (i.e.
stg_qualtrics__contact_mailing_list_membership
). (Probably the fields too but I'll leave that up to you!)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.
Yeah I actually did have `` added to each table and field and it turned into quite the eye soar lol. I think adding the backticks to the tables only should be a good middle ground.
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.
Updated