Sh-Zh-7 opened a new pull request, #12201: URL: https://github.com/apache/iotdb/pull/12201
In order to keep consistent with UDTF, which put timestamp value as the last field of row. We left rotate the first column (i.e. time column) to the end of input columns for UDAF. If you want to update state, for example, accumulate value for sum UDAF, you may change your implementation from: ```java // Origin state.sum += columns[1].getFloat(i); ``` to ```java // After this PR state.sum += columns[0].getFloat(i); ``` The latter looks more intuitive. -- 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]
