Hi Team, Need help with an issue where I am observ...
# troubleshooting
r
Hi Team, Need help with an issue where I am observing a strange behaviour when querying forthe timestamp datatype field. The query is " select actor,created_at,id,public,type from githubEvents where id ='7044874109'" from existing githubEvents table from default example shipped. I am using pinot-jdbc jar version 1.2.0 to query the result. Sometime it give me the result but sometime it fails with below error: Caused by: java.lang.NumberFormatException: For input string: ".12018E.4" at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054) at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110) at java.base/java.lang.Double.parseDouble(Double.java:651) at java.base/java.text.DigitList.getDouble(DigitList.java:169) at java.base/java.text.DecimalFormat.parse(DecimalFormat.java:2202) at java.base/java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1937) at java.base/java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1545) at java.base/java.text.DateFormat.parse(DateFormat.java:397) at org.apache.pinot.client.utils.DateTimeUtils.getTimestampFromString(DateTimeUtils.java:57) at org.apache.pinot.client.PinotResultSet.getTimestamp(PinotResultSet.java:379) ... 24 more
m
This doesn't look like a timestamp
Copy code
Caused by: java.lang.NumberFormatException: For input string: ".12018E.4"
r
True. I am doing resultSet.getTimestamp("created_at") and getting the above error.
b
Hello Ravi. Could you share a full & reproducible example ?