You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "fxbing (via GitHub)" <gi...@apache.org> on 2026/09/11 02:42:07 UTC
[I] [common] Negative timestamps fail to decode in Arrow and Iceberg [fluss]
fxbing opened a new issue, #4295:
URL: https://github.com/apache/fluss/issues/4295
### Search before asking
- [x] I searched in the [issues](https://github.com/apache/fluss/issues) and found nothing similar.
### Fluss version
main (development)
### Please describe the bug 🐞
Valid pre-epoch timestamps with a non-zero sub-millisecond component throw `IllegalArgumentException` when decoded through:
- Arrow readers for `TIMESTAMP` and `TIMESTAMP_LTZ` at microsecond/nanosecond precision.
- `IcebergKeyDecoder` for timestamp keys.
For example, round-tripping `1969-12-31 23:59:59.999999` (-1µs) fails, while -1000µs succeeds.
The decoders use `/` and `%`, producing a negative nano-of-millisecond remainder that violates the timestamp constructor's invariant. Valid negative timestamps should round-trip unchanged.
### Solution
Reuse the existing microsecond timestamp factories and use `Math.floorDiv` / `Math.floorMod` for Arrow nanoseconds.
### Are you willing to submit a PR?
- [x] I'm willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fluss.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [common] Negative timestamps fail to decode in Iceberg keys [fluss]
Posted by "fresh-borzoni (via GitHub) via issues" <is...@fluss.apache.org>.
fresh-borzoni closed issue #4295: [common] Negative timestamps fail to decode in Iceberg keys
URL: https://github.com/apache/fluss/issues/4295
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org