-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[parquet-sdk]migrate objects [pt2] (#641)
## Description - migrate objects - for parquet, we want to avoid lookups for deleted resource. so we replaced with default values, which will be handled during the load as a part of qc pipeline. ``` Self { transaction_version: txn_version, write_set_change_index, object_address: resource.address.clone(), owner_address: DELETED_RESOURCE_OWNER_ADDRESS.to_string(), <------- state_key_hash: resource.state_key_hash.clone(), guid_creation_num: BigDecimal::default(), <------- allow_ungated_transfer: false, <------- is_deleted: true, untransferrable: false, <------- block_timestamp: chrono::NaiveDateTime::default(), <------- ``` these fields are the ones from the prev owner ## Test Plan - Compared the number of rows from DE teams BigQuery table, testing BigQuery table, legacy processor table, and sdk processor table ### objects ![Screenshot 2024-12-11 at 9 57 15 PM](https://github.com/user-attachments/assets/75943a99-2b80-4916-b54b-486d6d9b7f0f) ![Screenshot 2024-12-11 at 10 02 36 PM](https://github.com/user-attachments/assets/ee73187c-a99d-4560-b460-0ab0b0efa165) ### current objects ![Screenshot 2024-12-11 at 9 57 26 PM](https://github.com/user-attachments/assets/7aac4d67-4c19-400d-8254-bc17b619ea27) ![Screenshot 2024-12-11 at 10 05 24 PM](https://github.com/user-attachments/assets/f9e2184f-cffc-4e89-99d6-c21371c48d79)
- Loading branch information
Showing
19 changed files
with
669 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.