fivetran / dbt_netsuite_source

Data models for Fivetran's Netsuite source package, built using dbt.
https://fivetran.github.io/dbt_netsuite_source/
Apache License 2.0
14 stars 20 forks source link

[Feature] Cast date-fields that are converted to timestamps by Netsuite Metadata/FT Connector back to dates #46

Open fivetran-jamie opened 5 months ago

fivetran-jamie commented 5 months ago

Is there an existing feature request for this?

Describe the Feature

There are a few fields that are explicitly dates in Netsuite2 according to the Records Catalog. However, these get converted to timestamps in the connector due to Netsuite's metadata calling these date fields instants

Affected fields based on this code search and the Records Catalog data type:

the following fields come up in the code search but are confirmed true datetimes (so don't change these):

For the relevant fields, we should

  1. Cast them as dates in the staging models (before doing so will we need to convert timezones?)
  2. (probably) change their aliases from *_at to *_on or *_date. This would be a breaking change though!!!!

Describe alternatives you've considered

No response

Are you interested in contributing this feature?

Anything else?

originated from https://getdbt.slack.com/archives/C01D1R2JLLA/p1709549154256589