Skip to content

Source Facebook Marketing: wrong type for field (normalization fails) #5941

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

Closed
m-ronchi opened this issue Sep 9, 2021 · 1 comment · Fixed by #5946
Closed

Source Facebook Marketing: wrong type for field (normalization fails) #5941

m-ronchi opened this issue Sep 9, 2021 · 1 comment · Fixed by #5946

Comments

@m-ronchi
Copy link
Contributor

m-ronchi commented Sep 9, 2021

instant_experience_outbound_clicks is declared as integer, but actual data is a JSON array (see FB docs).

this results in an error during normalization:

Database Error in model ads_insights_scd (models/generated/airbyte_tables/airbyte/ads_insights_scd.sql)
  Invalid digit, Value '[', Pos 0, Type: Long 
  DETAIL:  
    -----------------------------------------------
    error:  Invalid digit, Value '[', Pos 0, Type: Long 
    code:      1207
    context:   [{"action_destination":"<redacted>","action_target_id":"<redacted>","action_type":"outbound_click","value":"155"}]
    query:     5594855
    location:  :0
    process:   query19_106_5594855 [pid=0]
    -----------------------------------------------
  compiled SQL at ../build/run/airbyte_utils/models/generated/airbyte_tables/airbyte/ads_insights_scd.sql
@m-ronchi
Copy link
Contributor Author

m-ronchi commented Sep 9, 2021

additional issues I found:

  • video_play_actions should be a "$ref": "ads_action_stats.json"
  • all date fields should be "format": "date" instead of date-time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants