Remove batch splitting system (#475)

* First pass at removing batch splitting

* Refactor to separate module loading from request parsing

* Consolidate module functionality

* Tidy up comments

* Use array of modules instead of HashMap

* Formatting

* Use module hashes when importing modules
This commit is contained in:
Rob Knight 2026-02-09 10:31:47 +01:00 committed by GitHub
parent 5dab8195b4
commit acab26e5c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 1425 additions and 1938 deletions

View file

@ -836,7 +836,7 @@ pub mod tests {
frontend::{
self, literal, CustomPredicateBatchBuilder, MainPodBuilder, StatementTmplBuilder as STB,
},
lang::parse,
lang::load_module,
middleware::{
self, containers::Set, CustomPredicateRef, NativePredicate as NP, Signer as _,
DEFAULT_VD_LIST, DEFAULT_VD_SET,
@ -1165,7 +1165,7 @@ pub mod tests {
#[test]
fn test_undetermined_values() {
let params = Default::default();
let batch = parse(
let module = load_module(
r#"
two_equal(x,y,z) = OR(
Equal(x,y)
@ -1173,13 +1173,12 @@ pub mod tests {
Equal(x,z)
)
"#,
"test",
&params,
&[],
vec![],
)
.unwrap()
.first_batch()
.unwrap()
.clone();
.unwrap();
let batch = module.batch.clone();
let mut builder = MainPodBuilder::new(&params, &DEFAULT_VD_SET);
let cpr = CustomPredicateRef { batch, index: 0 };
let eq_st = builder.priv_op(frontend::Operation::eq(1, 1)).unwrap();