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 +4 -4
- data/ext/parquet-ruby-adapter/src/converter.rs +4 -16
- data/lib/parquet/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26217bfdf85fd24ebfa20f7647d268e493a34951cb8ae5e8d7009029fd728dde
|
4
|
+
data.tar.gz: e840e0f7432585477dd1df7839938c4f65b6b4b8325f3edbc0d179aa50240a45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
1413
|
-
|
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
|
1439
|
-
|
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))
|
data/lib/parquet/version.rb
CHANGED