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
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
40452d0
initial commit
stuarttimwhite Oct 10, 2024
bb6599a
add dynamic dory
stuarttimwhite Oct 10, 2024
4e22647
Changes
stuarttimwhite Oct 11, 2024
5691dec
More
stuarttimwhite Oct 11, 2024
e62624e
Correct Dory params
stuarttimwhite Oct 11, 2024
3216e39
rename function
stuarttimwhite Oct 11, 2024
ffa8c93
cargo format
stuarttimwhite Oct 11, 2024
858d20e
cargo clippy
stuarttimwhite Oct 11, 2024
67e791e
read file at a time
stuarttimwhite Oct 14, 2024
5199120
start adding null replacement logic
stuarttimwhite Oct 15, 2024
56f9022
feat/parquet-to-commitment-trevor
tlovell-sxt Oct 15, 2024
3a006d0
feat: various changes for testing, moving setup out of iter, changing…
tlovell-sxt Oct 15, 2024
963e126
feat: write quick-and-dirty app using stuart's parquet utility
tlovell-sxt Oct 15, 2024
aaf8dce
feat: add some prints to help visualize the wait time, only do dynami…
tlovell-sxt Oct 15, 2024
5c0c7f8
feat: cache setup in file
tlovell-sxt Oct 15, 2024
bf82612
feat: parallelize computation of commitments
tlovell-sxt Oct 15, 2024
ef2bc51
feat: make more assumptions about file structure in bin to only run t…
tlovell-sxt Oct 15, 2024
05efac2
fix: SQL_ETHEREUM instead of SXT_ETHEREUM
tlovell-sxt Oct 15, 2024
491d066
fix: SQL_ instead of SXT_ in glob
tlovell-sxt Oct 15, 2024
5c6841b
add sorting
stuarttimwhite Oct 15, 2024
1c2ebf4
Add tests
stuarttimwhite Oct 17, 2024
86682f8
fix errors
stuarttimwhite Oct 17, 2024
beeb5f2
Add utf8 functions
stuarttimwhite Oct 17, 2024
0292974
hook in various pieces
stuarttimwhite Oct 17, 2024
431e0da
remove record batch concatenation
stuarttimwhite Oct 17, 2024
4f1d253
correct parse logic
stuarttimwhite Oct 18, 2024
4f6be33
feat: switch to Dory with sigma=12
iajoiner Oct 18, 2024
a9c865e
Add tests
stuarttimwhite Oct 18, 2024
1466feb
address all warnings and clippy errors
stuarttimwhite Oct 21, 2024
6a163cf
add test
stuarttimwhite Oct 21, 2024
5c20a5e
Get tests passing
stuarttimwhite Oct 21, 2024
c5c3da9
Remove unnecessary code
stuarttimwhite Oct 21, 2024
8d37db5
add decimal logic
stuarttimwhite Oct 22, 2024
1dc3627
add prover setup saving
stuarttimwhite Oct 22, 2024
ac5fb4a
trevor's changes maybe working
stuarttimwhite Oct 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
resolver = "2"
members = ["crates/proof-of-sql", "crates/proof-of-sql-parser"]
members = ["crates/proof-of-sql", "crates/proof-of-sql-parser", "scripts/parquet-to-commitments"]

[workspace.package]
edition = "2021"
Expand Down Expand Up @@ -44,10 +44,12 @@ num-traits = { version = "0.2", default-features = false }
num-bigint = { version = "0.4.4", default-features = false }
opentelemetry = { version = "0.23.0" }
opentelemetry-jaeger = { version = "0.20.0" }
parquet = { version = "51.0" }
postcard = { version = "1.0" }
proof-of-sql = { path = "crates/proof-of-sql" } # We automatically update this line during release. So do not modify it!
proof-of-sql-parser = { path = "crates/proof-of-sql-parser" } # We automatically update this line during release. So do not modify it!
rand = { version = "0.8", default-features = false }
rand_chacha = { version = "0.3.1" }
rand_core = { version = "0.6", default-features = false }
rayon = { version = "1.5" }
serde = { version = "1", default-features = false }
Expand Down
2 changes: 2 additions & 0 deletions crates/proof-of-sql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ itertools = { workspace = true }
merlin = { workspace = true, optional = true }
num-traits = { workspace = true }
num-bigint = { workspace = true, default-features = false }
parquet = { workspace = true }
postcard = { workspace = true, features = ["alloc"] }
proof-of-sql-parser = { workspace = true }
rand = { workspace = true, default-features = false, optional = true }
rand_chacha = { workspace = true }
rayon = { workspace = true, optional = true }
serde = { workspace = true, features = ["serde_derive"] }
serde_json = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/proof-of-sql/src/proof_primitive/dory/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub struct ProverSetup<'a> {
pub(super) max_nu: usize,
/// The handle to the `blitzar` `Gamma_1` instances.
#[cfg(feature = "blitzar")]
blitzar_handle:
pub blitzar_handle:
blitzar::compute::MsmHandle<blitzar::compute::ElementP2<ark_bls12_381::g1::Config>>,
}

Expand Down
5 changes: 5 additions & 0 deletions crates/proof-of-sql/src/utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//! This module contains utilities for working with the library
/// Utility for reading a parquet file and writing to a blob which represents a `TableCommitment`
#[cfg(feature = "arrow")]
pub mod parquet_to_commitment_blob;
/// Parse DDLs and find bigdecimal columns
pub mod parse;
pub mod parse_decimals;
pub mod record_batch_map;
Loading
Loading