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

deviceModel null causing issues #154

Closed
acarter24 opened this issue Oct 13, 2023 · 0 comments
Closed

deviceModel null causing issues #154

acarter24 opened this issue Oct 13, 2023 · 0 comments

Comments

@acarter24
Copy link
Contributor

Just as an FYI if you are using a target which supports primary keys, I was having issues with the devices stream. The deviceModel field was occasionally arriving as empty string, which got converted to null, and then postgres complained.

I'm not sure why the empty string appeared rather than the (not set) usual placeholder, maybe there is some reprocessing on the google side.

Anyway I resolved this with an inline mapper to put the (not set) placeholder back if the empty string is received.

    config:
      start_date: 2023-03-20
      property_id: ${TAP_GA4_PROPERTY_ID}
      client_secrets: ${TAP_GOOGLE_ANALYTICS_CLIENT_SECRETS}
      key_file_location: ''
      stream_maps:
        devices:
          deviceModel: "'(not set)' if deviceModel == '' else deviceModel"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant