-
Notifications
You must be signed in to change notification settings - Fork 362
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]: Select values (and JSON input) - unable to convert string timestamps #4907
Comments
Do you need the nanosecond information? The main issue is that the formatter we use does not support nanoseconds. |
I will keep this issue open as the error is not propagating properly and the UI freezes in some cases |
Hello @hansva, for my project I don't need the microseconds (not nanoseconds...) info, so I solved by choosing the seconds-limited format. However, it is still an issue for those who need this information, hence I filed this as a bug... |
I wanted to move from Pentaho DI to Apache Hop but this currently is a showstopper, as I have data with milliseconds and I need that granularity. So I need to stay with Pentaho DI for the time being. |
I don't think anything has changed on that level. It's the same as what it was. |
@wol-win Hop leverages on Java mechanisms to convert datatypes. In your case, where timestamps are involved, Java converts strings to timestamp up to milliseconds as @hansva correctly said. That is in Hop and the same is in Kettle of course. It is not an Hop related issue. Sounds strange to me that this is possible in PDI. |
Apache Hop version?
2.11.0
Java version?
17.0.2
Operating system
Linux
What happened?
Set up a Select values transform in order to convert a
String
in the form2025-02-13T02:10:14.746582
in aTimestamp
orDate
object with formatyyyy-MM-dd'T'HH:mm:ss.SSSXXX
.When trying to convert it to a
Timestamp
, the error reported is:When trying to convert it into a
Date
, this is the error reported:Similar issues happen with the JSON Input transform, when trying to read those string timestamps directly as
Timestamp
orDate
.Issue Priority
Priority: 2
Issue Component
Component: Transforms
The text was updated successfully, but these errors were encountered: