Instants get not deserialized as expected sometimes (millis vs nanos, non-fractional numbers)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia individuando la gestione di READ_DATE_TIMESTAMPS_AS_NANOSECONDS e WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS, quindi riproduci la deserializzazione del valore in millisecondi 1709296652087. Verifica come vengono distinti i timestamp interi dai valori frazionari e definisci il comportamento desiderato per secondi, millisecondi, micros e nanos prima di implementare o testare l’opzione proposta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hey guys,
I bumped into this issue and it took me some time to figure out what was wrong on my side.
Maybe you don't even consider this as an issue but let me explain first what happened on my side.
When having the flag disabled for WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS
It will eventually write timestamps in Milliseconds:
1709296652087
When I now missed the flag READ_DATE_TIMESTAMPS_AS_NANOSECONDS
and read this we will get an insane Instant consisting of:
Seconds 1709296652087
and
Nanos 0
Using any site online it would understand and consider it as a Milliseconds timestamp.
I guess usually you would just split up a timestamp with a dot and put it to Seconds and Nanos, but I think theoretically both should be possible.
So do you think we could have a feature where we parse values based on their length?
11 characters or less = Seconds
12 to 15 characters = Millis
16 to 18 characters = Micros
19 to 21 characters = Nanos
While writing I am realizing that this might feel less consistent but I also think this might be an interesting flag to add,
you be the judge.
- Lingua principale
- Java
- Stelle
- 425
- Fork
- 125
- Merge medio
- 19m
- PR unite (30g)
- 1
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di FasterXML/jackson-modules-java8
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
-
Wrap `DateTimeException` Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
FasterXML/jackson-modules-java8#382 · 3 commenti ·
-
date-time-config
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
FasterXML/jackson-modules-java8#374 · 31 commenti · 1 reazione ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
FasterXML/jackson-modules-java8#310 · 1 commento ·
-
OffsetTimeSerializer not writing seconds for time object like 15:30:00Z (where seconds is 00) Apertapr-welcome test-needed
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
FasterXML/jackson-modules-java8#299 · 4 commenti · 1 reazione ·
Tutte le issue di FasterXML/jackson-modules-java8
Issue simili
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
apache/flink-agents#1152 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
jenkinsci/blueocean-plugin#5417 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
objectionary/eo-graphs#75 ·