Skip to content

Commit

Permalink
Merge 7c99555 into 7e54311
Browse files Browse the repository at this point in the history
  • Loading branch information
am357 authored Feb 9, 2023
2 parents 7e54311 + 7c99555 commit b7d76cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Adds some benchmarks for parsing, compiling, planning, & evaluation
- Implements `PIVOT` operator in evaluator
- `serde` feature to `partiql-value` and `partiql-logical` with `Serialize` and `Deserialize` traits.
- Adds `Display` for `LogicalPlan`
- Expose `partiql_value::parse_ion` as a public API.

### Fixes

Expand Down
3 changes: 2 additions & 1 deletion partiql-value/src/ion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ use ion_rs::{Integer, IonReader, IonType, Reader, StreamItem};

// TODO handle errors more gracefully than `expect`/`unwrap`

pub(crate) fn parse_ion(contents: &str) -> Value {
/// For a given `contents` as Ion text produces a PartiQL Value
pub fn parse_ion(contents: &str) -> Value {
let mut reader = ion_rs::ReaderBuilder::new()
.build(contents)
.expect("reading contents");
Expand Down
2 changes: 1 addition & 1 deletion partiql-value/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use rust_decimal::prelude::FromPrimitive;
use rust_decimal::{Decimal as RustDecimal, Decimal};
use unicase::UniCase;

mod ion;
pub mod ion;

#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
Expand Down

0 comments on commit b7d76cc

Please sign in to comment.