You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is nothing in the Singer (or Meltano) spec that indicates what to do in the following situation: an INCREMENTAL tap runs but produces no records.
The target does not check whether or not the state object exists when it writes out the state here: https://github.com/z3z1ma/target-bigquery/blob/main/target_bigquery/target.py#L529 . If no state message is processed, the target will write out the empty dictionary as the updated state, overwriting any existing state.
INCREMENTAL
tap runs but produces no records.REPLICATION_KEY
as part of a query there are no new records. In this instance, the Meltano SDK will not produce a STATE message ifGET_RECORDS
produces no values (https://github.com/meltano/sdk/blob/main/singer_sdk/streams/core.py#L1269)Suggested fix: before writing state, check if the state exists. If it does not exist, do not write an empty state message.
The text was updated successfully, but these errors were encountered: