parquet 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1f3c1598e0557dfbf9ea851624342aa4e04865b3d84c4125617b17e7e3f016a
4
- data.tar.gz: 00aeec0e5d3db34d6d405492d69ca1f5ba0a6398796fcdce1a7f8676784d3fe9
3
+ metadata.gz: 26217bfdf85fd24ebfa20f7647d268e493a34951cb8ae5e8d7009029fd728dde
4
+ data.tar.gz: e840e0f7432585477dd1df7839938c4f65b6b4b8325f3edbc0d179aa50240a45
5
5
  SHA512:
6
- metadata.gz: 03b488f3cc83e31d8cd9bc61f67c3c7234837c2a0f7f2262b563fdc5094148f66072d3a748a37cda8fc74de8d37f63457d0c5cc63b7f83e6993e0c8f4d504462
7
- data.tar.gz: 6a11d5c74536784fb96421d3c46da9608e30b77e42adbe60eb43b6fad96750d75b194b7243383bf512f32b0a9af3c10ddc27652bffdcf54b546245a2faa53ac5
6
+ metadata.gz: a48340845a3e679969f3ad235087272b4f3cace61d9cd0ee14673b029a730998c36c5730e9e295cabe7df1fc0d1d5ed8ef673236fba0999d9e1e886eb48f9f84
7
+ data.tar.gz: f4b17962809300fbba73e55479a384efa595754f86e69c7882d7c3e70f41600bfb6a2e2f43a6006b03190e829052a90ee488185d017f22da503dbaf9b80168d2
@@ -1409,14 +1409,8 @@ pub fn parquet_to_ruby(value: ParquetValue) -> Result<Value> {
1409
1409
  }
1410
1410
  } else {
1411
1411
  // `to_string` gives the shortest exact, round-trippable decimal.
1412
- // Parsing it back to `f64` cannot fail, but fall back defensively.
1413
- match f.to_string().parse::<f64>() {
1414
- Ok(v) => v,
1415
- Err(e) => {
1416
- dbg!(e);
1417
- f as f64
1418
- } // extremely unlikely
1419
- }
1412
+ // Parsing it back to `f64` cannot fail
1413
+ f.to_string().parse::<f64>()?
1420
1414
  }
1421
1415
  };
1422
1416
  Ok(cleaned.into_value_with(&ruby))
@@ -1435,14 +1429,8 @@ pub fn parquet_to_ruby(value: ParquetValue) -> Result<Value> {
1435
1429
  }
1436
1430
  } else {
1437
1431
  // `to_string` gives the shortest exact, round-trippable decimal.
1438
- // Parsing it back to `f64` cannot fail, but fall back defensively.
1439
- match f.to_string().parse::<f64>() {
1440
- Ok(v) => v,
1441
- Err(e) => {
1442
- dbg!(e);
1443
- f as f64
1444
- } // extremely unlikely
1445
- }
1432
+ // Parsing it back to `f64` cannot fail
1433
+ f.to_string().parse::<f64>()?
1446
1434
  }
1447
1435
  };
1448
1436
  Ok(cleaned.into_value_with(&ruby))
@@ -1,3 +1,3 @@
1
1
  module Parquet
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parquet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Jaremko