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

Feat/parquet to commitment #277

Draft
wants to merge 35 commits into
base: main
Choose a base branch
from

Conversation

stuarttimwhite
Copy link
Contributor

Please be sure to look over the pull request guidelines here: https://github.com/spaceandtimelabs/sxt-proof-of-sql/blob/main/CONTRIBUTING.md#submit-pr.

Please go through the following checklist

Rationale for this change

There is a need to be able to compute the table commitments for tables from parquet files.

What changes are included in this PR?

New utils directory with a script for calculating TableCommitments from parquet files and writing them to a file as a blob.

Are these changes tested?

Yes.

@stuarttimwhite stuarttimwhite force-pushed the feat/parquet-to-commitment-trevor branch from ca878b2 to 868f547 Compare October 17, 2024 15:56
@iajoiner iajoiner self-requested a review October 18, 2024 04:20
.map(|(precision, scale)| {
Arc::new(Field::new(
field.name(),
DataType::Decimal256(*precision, *scale),
Copy link
Contributor

Choose a reason for hiding this comment

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

Our precision for big decimal columns generally exceed Decimal256 max precision which is 76

@stuarttimwhite stuarttimwhite force-pushed the feat/parquet-to-commitment-trevor branch from 03c901a to 9adf9cf Compare October 22, 2024 18:02
@stuarttimwhite stuarttimwhite force-pushed the feat/parquet-to-commitment-trevor branch from be67584 to 1dc3627 Compare October 23, 2024 13: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.

3 participants