rahul_anand
07/13/2020, 7:59 PMmeltano elt with tap-zuora used to work earlier but now it fails on few objects like ChargeMetricsRun throwing error:
CRITICAL There is a syntax error in one of the queries in the AQuA input (Query = select CreatedById, CreatedDate, EndDate, ErrorFileUrl, Id, ProcessedAccounts, ProcessedCharges, ResultFileUrl, RunNumber, StartDate, TotalAccounts, UpdatedById, UpdatedDate, Entity.Id from ChargeMetricsRun where UpdatedDate >= '1900-01-01T00:00:00 (+00:00)' order by UpdatedDate asc, Error = There is no field named EndDate)
Checking the catalog, I found this field defined as
"EndDate": {
"type": null
}
in the Schema.
Is Zuora expecting to skip these fields? Anything changed in Meltano around handling such fields?douwe_maan
07/13/2020, 9:40 PMdouwe_maan
07/13/2020, 9:42 PMEndDate is coming from. https://github.com/singer-io/tap-zuora doesn't seem to hard code it, and Meltano definitely doesn't.rahul_anand
07/13/2020, 9:46 PMdouwe_maan
07/13/2020, 9:56 PMdiscover capability, but leave catalog (or properties , if this is an older tap). Then generate your own catalog, and copy it to .meltano/run/tap-zuora/tap.properties.json , which is where Meltano will look for a catalog if one wasn't generated using discovery mode.douwe_maan
07/13/2020, 9:57 PM.meltano is (and should be) gitignored, you'll want to make sure that on the production environment, the file is moved into its appropriate location at runtime, since it won't be at that location in version controlrahul_anand
07/13/2020, 11:58 PMrahul_anand
07/14/2020, 12:14 AM"metadata": {
"inclusion": "unsupported"
}
This is conforming to the Singer specification https://github.com/singer-io/getting-started/blob/master/docs/DISCOVERY_MODE.md#metadata.
In these cases, I guess, Meltano should ignore such fields in query.douwe_maan
07/14/2020, 12:55 PMmeltano select tap-zuora --exclude YourTable EndDate
That will add the appropriate selection rule to your meltano.yml, so that Meltano can modify the generated (discovered) catalog file as appropriate before running the tap in sync mode.rahul_anand
07/14/2020, 1:00 PMdouwe_maan
07/14/2020, 1:19 PMrahul_anand
07/14/2020, 5:55 PMdouwe_maan
07/20/2020, 11:09 PMdouwe_maan
09/07/2020, 8:38 PM.meltano/*run*/<extractor>/tap.properties.json , the second paragraph here will be relevant once you upgrade: https://meltano.slack.com/archives/CP8K1MXAN/p1599510962005300