zlatan
01/22/2021, 3:25 PM[2021-01-22 09:21:53,814] {bash_operator.py:157} INFO - target-bigquery | CRITICAL 400 Provided Schema does not match Table ads_insights_platform_and_device. Field impression_device has changed mode from NULLABLE to REQUIRED
[2021-01-22 09:21:53,972] {bash_operator.py:157} INFO - ELT could not be completed: Target failed
Did the schema change from FB's side, or is it a Meltano related issue?
Why is NULLABLE to REQUIRED causing an issue?
Additonal info:
Log:zlatan
01/22/2021, 3:26 PMdouwe_maan
01/22/2021, 4:15 PMimpression_device property as ["null", "string"] (https://gitlab.com/meltano/tap-facebook/-/blob/master/tap_facebook/schemas/ads_insights_platform_and_device.json#L17-22), so I'm not sure where target-bigquery is now getting the idea from that that field should be required rather than nullable. šdouwe_maan
01/22/2021, 4:16 PMmeltano --log-level=debug ), can you share the SCHEMA message for the ads_insights_platform_and_device stream that includes the impression_device property? I'd like to see if the type there still says ["null", "string"]zlatan
01/22/2021, 4:54 PMdouwe_maan
01/22/2021, 4:55 PMdouwe_maan
01/22/2021, 4:55 PMzlatan
01/22/2021, 5:01 PMzlatan
01/22/2021, 5:52 PMdouwe_maan
01/22/2021, 5:53 PMdouwe_maan
01/22/2021, 5:53 PMpip_url are you using for target-bigquery? Have you pinned a specific version or are you using the latest commit of https://github.com/adswerve/target-bigquery?zlatan
01/22/2021, 5:57 PMdouwe_maan
01/22/2021, 5:58 PMdouwe_maan
01/22/2021, 5:58 PMzlatan
01/22/2021, 5:58 PMzlatan
01/22/2021, 5:59 PMdouwe_maan
01/22/2021, 5:59 PMdouwe_maan
01/22/2021, 5:59 PMmeltano install run again recently?zlatan
01/22/2021, 5:59 PMdouwe_maan
01/22/2021, 5:59 PMzlatan
01/22/2021, 5:59 PMzlatan
01/22/2021, 5:59 PMdouwe_maan
01/22/2021, 5:59 PMzlatan
01/22/2021, 6:00 PMzlatan
01/22/2021, 6:28 PMzlatan
01/22/2021, 6:28 PMzlatan
01/22/2021, 6:31 PMdouwe_maan
01/22/2021, 6:58 PMzlatan
01/22/2021, 7:02 PMnil
01/24/2021, 4:58 PMnil
01/24/2021, 4:59 PMzlatan
01/24/2021, 5:11 PMnil
01/24/2021, 6:28 PMzlatan
01/25/2021, 12:39 PMzlatan
02/02/2021, 9:27 AM_time_loaded rows, as they hold redundant and unnecessary information.
I've already figured out an additional process of filtering the data and appending them to a different table, so if it's not reasonable to change schema, I'd just use this approach.douwe_maan
02/02/2021, 6:21 PMThe thing is: would it be reasonable at all to change the tap-facebook's schema fields to NULLABLE?@zlatan They already are nullable, aren't they? https://meltano.slack.com/archives/CFG3C3C66/p1611337929007500?thread_ts=1611329142.003700&cid=CFG3C3C66
target-bigquery complains that "Field impression_device has changed mode from NULLABLE to REQUIRED", but tap-facebook has always said that it's "nullable", so I'm not sure where it's getting the idea that it was changed to "required".
As far as I can see, tap-facebook is doing everything right (correctly communicating that that field could be null), while target-bigquery is getting confused and likely has a bug somewherezlatan
02/02/2021, 6:26 PMzlatan
02/02/2021, 6:26 PMzlatan
02/02/2021, 6:28 PMdouwe_maan
02/02/2021, 6:45 PMzlatan
02/02/2021, 7:04 PM