A typed NULL baseline fails in a prepared vibration export
A Java export adds a constant baseline column to each vibration reading. This run has no reference value, so the table-mode JDBC client binds SQL NULL with the DOUBLE type on Apache IoTDB 2.0.11. The minimal setup and failing operation are: CREATE DATABASE vibration_export; USE vibration_export; CREATE TABLE readings(device STRING TAG,rms DOUBLE FIELD); INSERT INTO readings(time,device,rms) VALUES(1000,'motor_a',1.5),(2000,'motor_a',2.5); try (PreparedStatement p = connection.prepareStatement( "SELECT ? AS baseline FROM readings ORDER BY time")) { p.setNull(1, Types.DOUBLE); try (ResultSet rs
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.