This is an automated email from the ASF dual-hosted git repository.
JingsongLi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/paimon-rust.git
The following commit(s) were added to refs/heads/main by this push:
new fd728646 fix(spec): say precision, not length, in two type-parse
errors (#662)
fd728646 is described below
commit fd72864657bca3e8e94cca0d17ec16be1302ee10
Author: jackylee <[email protected]>
AuthorDate: Tue Aug 4 13:33:59 2026 +0800
fix(spec): say precision, not length, in two type-parse errors (#662)
---
README.md | 4 ++--
crates/paimon/src/spec/types.rs | 8 +++++---
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 28204bf2..d6891b1a 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@
[Latest Version]: https://img.shields.io/crates/v/paimon.svg
[crates.io]: https://crates.io/crates/paimon
-The rust implementation of Apache Paimon.
+The Rust implementation of Apache Paimon.
## Issue Tracker
@@ -35,7 +35,7 @@ See [GitHub
Issues](https://github.com/apache/paimon-rust/issues)
Apache Paimon Rust is an exciting project currently under active development.
Whether you're looking to use it in your projects or contribute to its growth,
there are several ways you can get involved:
- Follow the [Contributing Guide](CONTRIBUTING.md) to contribute.
-- Create new [Issue](https://github.com/apache/paimon-rust/issues/new) for bug
reportor or feature request.
+- Create new [Issue](https://github.com/apache/paimon-rust/issues/new) for bug
report or feature request.
- Start discussion thread at [dev mailing list](mailto:[email protected])
([subscribe](<mailto:[email protected]?subject=(send%20this%20email%20to%20subscribe)>)
/
[unsubscribe](<mailto:[email protected]?subject=(send%20this%20email%20to%20unsubscribe)>)
/ [archives](https://lists.apache.org/[email protected]))
- Talk to community directly at [Slack #paimon
channel](https://join.slack.com/t/the-asf/shared_invite/zt-2l9rns8pz-H8PE2Xnz6KraVd2Ap40z4g).
diff --git a/crates/paimon/src/spec/types.rs b/crates/paimon/src/spec/types.rs
index ba5272fd..6401415d 100644
--- a/crates/paimon/src/spec/types.rs
+++ b/crates/paimon/src/spec/types.rs
@@ -1105,8 +1105,9 @@ impl FromStr for LocalZonedTimestampType {
.trim()
.parse::<u32>()
.map_err(|_| Error::DataTypeInvalid {
- message: "Invalid LocalZonedTimestamp length. Unable to
parse length as a u32."
- .to_string(),
+ message:
+ "Invalid LocalZonedTimestamp precision. Unable to
parse precision as a u32."
+ .to_string(),
})?;
let nullable = !s[close_bracket..].contains("NOT NULL");
@@ -1242,7 +1243,8 @@ impl FromStr for TimeType {
.trim()
.parse::<u32>()
.map_err(|_| Error::DataTypeInvalid {
- message: "Invalid TIME length. Unable to parse length as a
u32.".to_string(),
+ message: "Invalid TIME precision. Unable to parse
precision as a u32."
+ .to_string(),
})?;
let nullable = !s[close_bracket..].contains("NOT NULL");