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

store tx type #36

Merged
merged 2 commits into from
Mar 13, 2024
Merged

store tx type #36

merged 2 commits into from
Mar 13, 2024

Conversation

metachris
Copy link
Contributor

📝 Summary

Add Transaction Type (int) to CSV and Parquet output files. In particular interesting to analyze the amount of blob transactions that are going to be incoming after the Mainnet Dencun upgrade today.


✅ I have run these commands

  • make lint
  • make test
  • go mod tidy

Copy link
Contributor

@dvush dvush left a comment

Choose a reason for hiding this comment

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

approve but tx type could benefit from dict encoding

To string `parquet:"name=to, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"`
Value string `parquet:"name=value, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN, omitstats=true"`
Nonce string `parquet:"name=nonce, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN, omitstats=true"`
TxType int64 `parquet:"name=txType, type=INT64"`
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it should have dictionary encoding.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice thanks. done

@metachris metachris requested a review from dvush March 13, 2024 14:59
@metachris metachris merged commit 94065de into main Mar 13, 2024
2 checks passed
@metachris metachris deleted the tx-type branch March 13, 2024 19:00
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