Skip to content

Commit fd9b9a4

Browse files
update Cargo.toml for release v2.6.0 (#1583)
* update Cargo.toml for release v2.6.0 * fix: reject numeric values for Timestamp fields in schema conflict detection Arrow's JSON decoder with coerce_primitive(false) cannot decode a JSON number (e.g., 1773595502.7462175) into a Timestamp field. it expects a string like "2026-03-15T17:13:59Z" this fixes the rejection when two log sources send same field - one as timestamp other as float number
1 parent 3ab0baf commit fd9b9a4

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "parseable"
3-
version = "2.5.14"
3+
version = "2.6.0"
44
authors = ["Parseable Team <hi@parseable.com>"]
55
edition = "2024"
66
rust-version = "1.88.0"
@@ -183,8 +183,8 @@ arrow = "57.1.0"
183183
temp-dir = "0.1.14"
184184

185185
[package.metadata.parseable_ui]
186-
assets-url = "https://parseable-prism-build.s3.us-east-2.amazonaws.com/v2.5.14/build.zip"
187-
assets-sha1 = "7b3d1a6bea288585183cbc8233af4da91d768853"
186+
assets-url = "https://parseable-prism-build.s3.us-east-2.amazonaws.com/v2.6.0/build.zip"
187+
assets-sha1 = "877e8f6f6b80bdd57c3c8a076464a0a90e29974c"
188188

189189
[features]
190190
debug = []

src/event/format/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,9 @@ fn value_compatible_with_type(
434434
|| chrono::NaiveDateTime::parse_from_str(s, "%Y-%m-%d %H:%M:%S%.f").is_ok()
435435
|| chrono::NaiveDateTime::parse_from_str(s, "%Y-%m-%d %H:%M:%S").is_ok()
436436
}
437-
Value::Number(_) => true,
437+
// Arrow JSON decoder with coerce_primitive(false) cannot decode
438+
// a JSON number into a Timestamp field — it expects a string.
439+
Value::Number(_) => false,
438440
_ => false,
439441
}
440442
}

0 commit comments

Comments
 (0)