Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<<<<<<< MagicBot/standardize-unioning-macros
# dbt_workday v1.0.1

[PR #35](https://github.com/fivetran/dbt_workday/pull/35) includes the following update.

## Bug Fix
- Fixes a runtime error in `stg_workday__worker_history` where `annual_currency_summary_primary_compensation_basis`, `annual_currency_summary_total_base_pay`, and `annual_currency_summary_total_salary_and_allowances` failed to cast when the value was non-numeric. These columns now resolve to `null` instead of erroring the run.

# dbt_workday v1.0.0

[PR #32](https://github.com/fivetran/dbt_workday/pull/32) includes the following updates.
Expand All @@ -16,14 +22,13 @@
## Under the Hood
- Adds the `fivetran_using_source_casing` variable for case-sensitive destination support. When enabled, downstream transformations respect source casing to ensure consistent results. See the [Additional Configurations](https://github.com/fivetran/dbt_workday/#source-casing-for-case-sensitive-destinations) section of the README for details.
- Introduces `fivetran_utils.partition_by_source_relation` to conditionally include `source_relation` in partition clauses only when multiple sources are configured.
=======

# dbt_workday v0.9.2

[PR #33](https://github.com/fivetran/dbt_workday/pull/33) includes the following update.

## Bug Fix
- Fixes an issue in `stg_workday__worker_history` where `annual_currency_summary_primary_compensation_basis`, `annual_currency_summary_total_base_pay`, and `annual_currency_summary_total_salary_and_allowances` could surface as strings instead of numeric values. These columns are now cast to float when the source type is a string.
>>>>>>> main

# dbt_workday v0.9.1

Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config-version: 2
name: 'workday'
version: '1.0.0'
version: '1.0.1'
require-dbt-version: [">=1.3.0", "<3.0.0"]

models:
Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'workday_integration_tests'
version: '1.0.0'
version: '1.0.1'
config-version: 2

profile: 'integration_tests'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ final as (
{% set is_str = col.is_string() %}
{% endif %}
{% if is_str %}
cast({{ col.name }} as {{ dbt.type_float() }}) as {{ col.name }},
case
when trim({{ col.name }}) <> ''
and translate(trim({{ col.name }}), '0123456789.+-eE', '') = ''
then cast({{ col.name }} as {{ dbt.type_float() }})
else null
end as {{ col.name }},
{% else %}
{{ col.name }},
{% endif %}
Expand Down
Loading