zhengshubin opened a new issue, #9229:
URL: https://github.com/apache/iotdb/issues/9229

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and 
found nothing similar.
   
   
   ### Version
   
   IOTDB 1.0.1
   JAVA API   1.0.1
   python api  1.0.1
   
   ### Describe the bug and provide the minimal reproduce step
   
   JAVA API:
    SessionDataSet sessionDataSet = 
session.executeLastDataQuery(Arrays.asList("a.str", "a.int"));
           RowRecord rowRecord=null;
           while (sessionDataSet.hasNext()) {
               rowRecord=sessionDataSet.next();
               List<Field> fields = rowRecord.getFields();
               for (Field field : fields) {
                   TSDataType dataType = field.getDataType();
                   Object objectValue = field.getObjectValue(dataType);
                   System.out.println(objectValue);
                   System.out.println(dataType);  //always TEXT
   PYTHON API:
   sql = """
       
       SELECT   LAST
           str_value,    
          int_value
       FROM a
   """
   result = session.execute_statement(sql)
   while result.has_next():
       row_record = result.next()
       fields = row_record.get_fields()
       output=[  field.get_data_type() for field in fields]
       print(output)  //always TEXT
   
   如果用 SELECT last_value(xx) 语句 结果 能正确输出对应DataType
   
   
   ### What did you expect to see?
   
   使用 SELECT LAST 语句  结果能正确获取对应的数据类型,而不是全都为TEXT.
   
   ### What did you see instead?
   
   全都为TEXT
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
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