Closed almann closed 1 month ago
Using the ion-cli:
❯ cargo install ion-cli && cargo run --package pest-ion --bin pest2ion -- partiql-parser/src/peg/partiql.pest -b | ion dump -f pretty | tail
Updating crates.io index
Ignored package `ion-cli v0.1.1` is already installed, use --force to override
Finished dev [unoptimized + debuginfo] target(s) in 0.02s
Running `target/debug/pest2ion partiql-parser/src/peg/partiql.pest -b`
{
error_type: WRITE,
message: "/home/ANT.AMAZON.COM/almann/.cargo/registry/src/github.com-1ecc6299db9ec823/ion-cli-0.1.1/ion-c/tools/events/ion_event_stream.cpp:1181 : IERR_NO_MEMORY",
location: "stdin",
event_index: 1688
}
choice
(
choice
(
choice
(
choice
(
choice
%
Looks like Ion C's writer is getting hung up on the very deeply nested choice
nodes. #37 should alleviate this, but there is still a bug in Ion C here.
This is probably an upstream bug with
ion-rs
/ion-c-sys
, but when serializing the PartiQL grammar, we get an unexpected EOF:Binary:
Text:
The problem seems to be around the cleanup of the writer handle (the panic is happening during the cleanup of the Ion C writer.