-
Notifications
You must be signed in to change notification settings - Fork 591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: wrong parsed timestamp from json #16097
Comments
seems the time unit inference gets this wrong, cc @xiangjinwu risingwave/src/common/src/cast/mod.rs Lines 60 to 70 in a285394
|
To repeat myself one more time, this is by design and documented: https://docs.risingwave.com/docs/current/sql-create-source/#debezium-json
@MrCroxx Could you provide more context on this specific use case? How is the source created and how do we know if the unit is s / ms / us / ns?
This claim is problematic as well. How could a later date have a smaller value?
|
Sync'ed offline:
|
This solution looks acceptable, but is too general for some cases, for example
|
Update: When consuming from debezium, the unit info is actually available as part of the schema:
We will focus on the second case here. Below is a message from debezium 2.4 MySQL connector:
The relevant part is here:
and
Note the field The structure of this |
close this issue as completed |
Describe the bug
When parsing json value to timestamp:
Value
63072000000000000
should be parsed as1972-01-01 00:00:00
. But RW parses it as3968-09-03 02:00:00.000 +0200
, which is63072007200
.Error message/log
No response
To Reproduce
example json:
Expected behavior
Value
63072000000000000
should be parsed as1972-01-01 00:00:00
.How did you deploy RisingWave?
No response
The version of RisingWave
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: