memgraph / rsmgclient

Memgraph database adapter for Rust programming language.
https://crates.io/crates/rsmgclient
Apache License 2.0
37 stars 6 forks source link

Values created with datetime() panics with "wrong value marker" (support for ZonedDateTime missing?) #63

Open magnusart opened 1 week ago

magnusart commented 1 week ago

When I use the datetime() function in a Cypher Create query I see the value below in Memgraph lab.

{
   "year": 2024,
   "month": 11,
   "day": 23,
   "hour": 22,
   "minute": 40,
   "second": 32,
   "nanosecond": 960870000,
   "timeZoneOffsetSeconds": 0,
   "timeZoneId": "Etc/UTC"
}

But when I try with rsmgclient I get the error "wrong value marker" from the client. I previously used localdatetime() function and that worked fine. But it is missing the timezone.

Could this be because support for ZonedDateTime is missing from the client? https://github.com/memgraph/rsmgclient/blob/f022789764dacaa38f82cf3b3a86d9eedc0ad5f1/src/value/mod.rs#L127

It was released before summer as far as I can see https://memgraph.com/docs/release-notes#memgraph-v2170---may-22-2024

antejavor commented 1 week ago

Hi, @magnusart, thanks for reporting this 🙇‍♂️ . Yeah, the client didn't catch up with the changes in Memgraph.

Keep tracking the issue until we update this.

Is this a big blocker for you currently?