You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "bigdata-spec (via GitHub)" <gi...@apache.org> on 2024/01/19 08:44:38 UTC

[I] 关于udf中transform里面日志不打印 [iotdb]

bigdata-spec opened a new issue, #11937:
URL: https://github.com/apache/iotdb/issues/11937

   ```
   public class UDTFSequenceFilter implements UDTF {
       @Override
       public void validate(UDFParameterValidator validator) {
           int childExpressionsSize = validator.getParameters().getChildExpressionsSize();
           LOG.info("childExpressionsSize "+childExpressionsSize);
           List<String> childExpressions = validator.getParameters().getChildExpressions();
           LOG.info("childExpressions "+childExpressions);
           for (int i = 0; i < validator.getParameters().getChildExpressionsSize(); ++i) {
               if(i==0){
               validator.validateInputSeriesDataType(i, Type.BOOLEAN);}
               else {
                   validator
                           .validateInputSeriesDataType(0, Type.FLOAT, Type.DOUBLE, Type.INT32, Type.INT64, Type.BOOLEAN);
               }
           }
           LOG.info("validate完成");
       }
   
       @Override
       public void beforeStart(UDFParameters udfParameters, UDTFConfigurations udtfConfigurations) {
           udtfConfigurations
                   .setAccessStrategy(new RowByRowAccessStrategy())
                   .setOutputDataType(Type.TEXT);
           LOG.info("beforeStart完成");
       }
   
       @Override
       public void transform(Row row, PointCollector collector) throws Exception {
           LOG.info("进入transform....");
       
       }
   
       @Override
       public void terminate(PointCollector collector) {
         LOG.info("进入terminate....");
     
       }
   }
   
   ```
   
   请问下后台发现 validate 和beforeStart 日志正常打印,但是transform和 terminate 不打印日志,IotDB版本1.2.2,是否正常呢?
   


-- 
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: reviews-unsubscribe@iotdb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 关于udf中transform里面日志不打印 [iotdb]

Posted by "bigdata-spec (via GitHub)" <gi...@apache.org>.
bigdata-spec commented on issue #11937:
URL: https://github.com/apache/iotdb/issues/11937#issuecomment-1911541875

    validate完成
   "beforeStart完成"这两个日志会打印出来
   但是"进入transform...." 进入terminate....这两句不会打印出来。


-- 
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: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org