Matheus Pinheiro
01/24/2023, 5:29 PMemmited_at values, with different ab_id and different values in the column dt_fim_transacao_preset with one being null .
I'm not even sure how to determine which one is the newest value.
Does anyone have any insights on what might have happened?Matheus Pinheiro
01/26/2023, 12:47 PMMatheus Pinheiro
02/08/2023, 3:07 PM+-------------------------+------------+------------------------+----------------+
| start_time | end_time | __$seqval | __$operation |
|-------------------------+------------+------------------------+----------------|
| 2023-02-04 02:11:48.880 | NULL | 0x0002D69200000DF1000C | 3 |
| 2023-02-04 02:11:48.880 | NULL | 0x0002D69200000DF1000C | 4 |
| 2023-02-04 02:11:54.223 | NULL | 0x0002D692000013460004 | 3 |
| 2023-02-04 02:11:54.223 | NULL | 0x0002D692000013460004 | 4 |
| 2023-02-04 02:11:54.527 | NULL | 0x0002D6920000137F0003 | 3 |
| 2023-02-04 02:11:54.527 | NULL | 0x0002D6920000137F0003 | 4 |
| 2023-02-04 02:15:02.687 | NULL | 0x0002D6920001622F0003 | 3 |
| 2023-02-04 02:15:02.687 | NULL | 0x0002D6920001622F0003 | 4 |
| 2023-02-04 02:15:06.270 | NULL | 0x0002D6920001F8DC0003 | 3 |
| 2023-02-04 02:15:06.270 | NULL | 0x0002D6920001F8DC0003 | 4 |
+-------------------------+------------+------------------------+----------------+
However, as can be seen, the __$operation is different for each one. Consulting the Microsoft documentation, it seems like the __$operation=3 rows refer to the data pre-update, while the __$operation=4 rows refer to the data post-update, meaning only __$operation=4 rows are relevant to us.
Also, there seems to be no other fields on the generated Airbyte files that are uploaded to Google Cloud Storage besides _airbyte_ab_id, and _airbyte_emitted_at. This is very strange as the Airbyte documentation for SQL Server CDC states that INSERT , UPDATE and DELETE operations are caught and ingested. How are those identified without an operation field in the output file?
How can I make it so that Airbyte ignores the __$operation=3 events? Or at least, how can I identify the operation so that I can filter these on my ingested csv and avro files?Matheus Pinheiro
02/09/2023, 1:42 PMMatheus Pinheiro
02/28/2023, 8:19 PMNataly Merezhuk (Airbyte)
02/28/2023, 8:51 PMMatheus Pinheiro
02/28/2023, 9:23 PMSunny Hashmi (Airbyte)
02/28/2023, 10:20 PMIn addition to the field called __airbyte_data_ that contains a JSON representation of the source data, there are two additional fields in the raw table:
• __airbyte_emitted_at_ which tells you what time airbyte sent the record to the destination.
• __airbyte_ab_id_ is a UUID value added by the destination connector to each record before it is sent to the destination. This is a UUID (not a hash) and therefore it changes for each row after each sync, even if the data has not been modified.Highly recommend checking out the whole blog series, the one I linked above is last in a three-part series on synchronization modes in Airbyte. The first two parts are on full refresh replication and incremental replication.
Matheus Pinheiro
03/01/2023, 2:05 AMCDC sync with Deduped + history was chosen as the Sync mode, and so the normalization SQL creates two tables from the raw data: a history table (cdc_tut_scd) and a deduplicated table (cdc_tut).
However, in my case (SQL Server source ->GCS destination), only one table seems to be created (the _`cdc_tut_scd`_ equivalent). The cdc_tut equivalent, which would contain the information about records metadata, doesn't appear on my Cloud Storage bucket.
How should this work for the GCS destination? Shouldn't there be two blobs on my bucket, one for each table (one path containing files for the data table, and the other containing files for the metadata table)?Sunny Hashmi (Airbyte)
03/01/2023, 6:08 PMSunny Hashmi (Airbyte)
03/01/2023, 6:11 PMSunny Hashmi (Airbyte)
03/01/2023, 7:00 PMIncremental - Append sync mode with the GCS destination connector. In this case, the following should be true:
• After each sync, the destination bucket should contain a new file with the latest synced data alongside of output files from previous syncs. In the provided logfile, the sync output file is named 2023_02_07_1675782171903_. You can find the full path for this file by searching for fullOutputPath in your sync log
• Each individual stream should have its own folder in the configured bucket.
• Since root level flattening is enabled, we should see your data unpacked to columns in the output files.
Does your final data appear in the destination as I've described? Is anything missing? If so, please submit a bug report and share the link here so I can get it prioritized.Matheus Pinheiro
03/01/2023, 7:58 PMab_emitted_at .
Regarding your points:
• After each sync, the destination bucket should contain a new file with the latest synced data alongside of output files from previous syncs. In the provided logfile, the sync output file is named 2023_02_07_1675782171903_. You can find the full path for this file by searching for fullOutputPath in your sync log
◦ There is one new file per sync, which is that one, but no extra files. The fullOutputPath says SQLSERVER-AIRBYTE/DBName/NMSPTEST/redacted/2023_02_07_1675782171903_, but there's only a single file 2023_02_07_1675782171903_0.csv (see screenshot attached).
• Each individual stream should have its own folder in the configured bucket.
◦ What do you mean by that? There's a folder for each table, and inside a csv file for each sync, but no extra files with the metadata.
• Since root level flattening is enabled, we should see your data unpacked to columns in the output files.
◦ If all columns should be in one file, that is not working, the only airbyte created columns are airbyte_ab_id and airbyte_emmited_at as you can see in the screenshot.
Does your final data appear in the destination as I've described? Is anything missing?
It does not. I don't see a file nor columns containing the metadata as stated in the tutorial. I only see the csv with the data from my SQL Server source rows and two airbyte created columns: airbyte_ab_id and airbyte_emmited_at
If so, please submit a bug report and share the link here so I can get it prioritized.
That's done already! The link was also shared in this thread. Here it is: https://github.com/airbytehq/airbyte/issues/22563Sunny Hashmi (Airbyte)
03/01/2023, 10:34 PMMatheus Pinheiro
03/02/2023, 12:07 AMMatheus Pinheiro
03/02/2023, 1:00 PMMatheus Pinheiro
03/07/2023, 1:43 PM