Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tranche 2 default model to Parquet #450

Merged
merged 3 commits into from
Jul 12, 2024
Merged

Add tranche 2 default model to Parquet #450

merged 3 commits into from
Jul 12, 2024

Conversation

yuunlimm
Copy link
Contributor

Description

  1. add write_set_size_info to write_set_changes
  2. Add txn size info to transaction model
  3. migrate move_modules, and table_metadata

Test Plan

tested locally

txn_total_bytes column added to transaction table
Screenshot 2024-07-10 at 3 57 20 PM

table_items table
Screenshot 2024-07-10 at 4 27 10 PM
Screenshot 2024-07-10 at 4 27 08 PM

table_metadata table in testnet
Screenshot 2024-07-10 at 4 26 24 PM

Screenshot 2024-07-10 at 4 26 26 PM

write_set_size info added to write_ste_changes table
Screenshot 2024-07-10 at 3 58 00 PM

move_modules
Screenshot 2024-07-10 at 4 30 30 PM

@yuunlimm yuunlimm requested a review from a team July 10, 2024 23:39
@@ -185,13 +192,22 @@ impl Transaction {
#[allow(deprecated)]
let block_timestamp = chrono::NaiveDateTime::from_timestamp_opt(timestamp.seconds, 0)
.expect("Txn Timestamp is invalid!");

let txn_size_info = transaction.size_info.as_ref();
let write_set_size_info: &Vec<WriteOpSizeInfo> = if let Some(size_info) = txn_size_info {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let write_set_size_info: &Vec<WriteOpSizeInfo> = if let Some(size_info) = txn_size_info {
let write_set_size_info = if let Some(size_info) = txn_size_info {

let write_set_size_info: &Vec<WriteOpSizeInfo> = if let Some(size_info) = txn_size_info {
size_info.write_op_size_info.as_ref()
} else {
&EMPTY_VEC
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use Vec::new() instead of static variable?

@yuunlimm yuunlimm merged commit 08973de into main Jul 12, 2024
6 of 7 checks passed
@yuunlimm yuunlimm deleted the yuunlimm/parquet-t2 branch July 12, 2024 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants