Skip to content

Commit cc421cf

Browse files
authored
Add Boxed Variant interface & Boxed Ion implementation (#540)
* Add Boxed Variant interface & Boxed Ion implementation * Add lowering of Variants
1 parent 2a3dd4b commit cc421cf

File tree

31 files changed

+1420
-144
lines changed

31 files changed

+1420
-144
lines changed

extension/partiql-extension-ion-functions/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ itertools = "0.13"
3131
unicase = "2.7"
3232
rust_decimal = { version = "1.36.0", default-features = false, features = ["std"] }
3333
ion-rs_old = { version = "0.18", package = "ion-rs" }
34-
ion-rs = { version = "1.0.0-rc.7", features = ["experimental"] }
34+
ion-rs = { version = "1.0.0-rc.10", features = ["experimental"] }
3535
time = { version = "0.3", features = ["macros"] }
3636
once_cell = "1"
3737
regex = "1.10"

extension/partiql-extension-ion-functions/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ mod tests {
171171
use partiql_eval::eval::BasicContext;
172172
use partiql_eval::plan::EvaluationMode;
173173
use partiql_parser::{Parsed, ParserResult};
174-
use partiql_value::datum::Datum;
175174
use partiql_value::{bag, tuple, DateTime, Value};
176175

177176
#[track_caller]
@@ -230,7 +229,7 @@ mod tests {
230229
.unwrap_or_default();
231230
let out = evaluate(&catalog, lowered, bindings);
232231

233-
assert!(out.is_sequence());
232+
assert!(out.is_bag());
234233
assert_eq!(&out, expected);
235234
}
236235

extension/partiql-extension-ion/Cargo.toml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,34 @@ bench = false
2222

2323
[dependencies]
2424
partiql-value = { path = "../../partiql-value", version = "0.11.*" }
25+
partiql-common = { path = "../../partiql-common", version = "0.11.*" }
26+
partiql-types = { path = "../../partiql-types", version = "0.11.*" }
27+
28+
serde = { version = "1", features = ["derive"], optional = true }
29+
typetag = { version = "0.2", optional = true }
30+
2531
ordered-float = "4"
2632
itertools = "0.13"
2733
unicase = "2.7"
2834
rust_decimal = { version = "1.36.0", default-features = false, features = ["std"] }
2935
rust_decimal_macros = "1.36"
3036
ion-rs_old = { version = "0.18", package = "ion-rs" }
31-
ion-rs = { version = "1.0.0-rc.7", features = ["experimental"] }
37+
ion-rs = { version = "1.0.0-rc.10", features = ["experimental"] }
38+
3239
time = { version = "0.3", features = ["macros"] }
3340
once_cell = "1"
3441
regex = "1.10"
3542
thiserror = "1.0"
3643
delegate = "0.13"
44+
peekmore = "1.3"
3745

3846
[dev-dependencies]
3947

4048
[features]
4149
default = []
50+
serde = [
51+
"dep:serde",
52+
"dep:typetag",
53+
"partiql-value/serde",
54+
"partiql-common/serde"
55+
]

0 commit comments

Comments
 (0)