sa
05/29/2024, 12:41 AMkapa.ai
05/29/2024, 12:41 AMsql DROP TABLE <your_final_table>;
2. Unset the _airbyte_loaded_at
column: This will mark all records in the raw table as not loaded, forcing a reprocessing of all data. sql UPDATE airbyte_internal.<your_raw_table> SET _airbyte_loaded_at = NULL;
If you are using a nonstandard raw table schema, replace airbyte_internal
with that schema. 3. Run a sync: After performing the above steps, trigger a sync in the Airbyte UI. This process will ensure that your final table is repopulated from the raw data, effectively performing a full refresh. For more detailed instructions, you can refer to the [Airbyte documentation on manually triggering a final table re-creation](https://docs.airbyte.com/using-airbyte/core-concepts/typing-deduping#manually-triggering-a-final-table-re-creation). If you need to schedule a full refresh periodically to reduce data inconsistencies over time, you might want to look into setting up a CRON job to reset the streamState
to the start_date
of the source. This way, the connection would pull all data over again since the start_date
defined when you set up the source. This feature is discussed in [this GitHub issue](https://github.com/airbytehq/airbyte/issues/26513). If you have any further questions or need additional assistance, feel free to ask!sa
05/29/2024, 2:25 PMkapa.ai
05/29/2024, 2:25 PMsql UPDATE state SET state = jsonb_set(state, '{state, streams, 0, cursor}', '"NEW CURSOR"', false) WHERE connection_id = 'CONNECTION ID';
For example, if you want to set the cursor to the oldest date, replace "NEW CURSOR"
with the desired date in the correct format. For more context, you can refer to the forum post where a user describes a similar process: [Forum Post: Update the cursor manually breaks my connection](https://discuss.airbyte.io/t/393). If you encounter any issues or need further assistance, it is recommended to reach out to the Airbyte support team or consult the community forums.