zhou-hao commented on issue #13718:
URL: https://github.com/apache/iotdb/issues/13718#issuecomment-2406960305

   使用 Tablet 写入数据后 查询不到。写入也没有返回任何错误。请问有什么写入条件要求吗?
   ```java
   public static void main(String[] args) throws Exception {
   
           int port = startIotDB();
   
           try (Session session = new Session.Builder()
                   .host("127.0.0.1")
                   .port(port)
                   .build()) {
   
               session.open();
   
               Tablet tablet = new Tablet(
                       "root.db1.test",
                       Collections.singletonList(new MeasurementSchema("temp", 
TSDataType.FLOAT)),
                       1);
   
               tablet.addTimestamp(0, 1);
               tablet.addValue("temp", 0, 1.0F);
   
               session.insertTablet(tablet);
   
               SessionDataSet set = session.executeQueryStatement("select * 
from root.db1.test");
               if(!set.hasNext()){
                   throw new IllegalStateException();
               }
           }
   
       }
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to