A DATE inspection field advertises java.sql.Date but getObject returns String
For an inspection-card reader, I am using JDBC metadata to choose the Java type for each returned value. A DATE field advertises java.sql.Date, but the object returned by getObject() is a String, so the metadata-driven cast fails. This is Apache IoTDB 2.0.10, Tree model, IoTDB JDBC driver 2.0.10, and Java 17.0.9. The database setup is: CREATE DATABASE root.inspection_cards; CREATE TIMESERIES root.inspection_cards.pump_a.inspected_on WITH DATATYPE=DATE,ENCODING=PLAIN; INSERT INTO root.inspection_cards.pump_a(time,inspected_on) VALUES (1000,'2025-02-28'); The direct SQL read confirms the DATE va
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.