Sh-Zh-7 opened a new pull request, #15843: URL: https://github.com/apache/iotdb/pull/15843
## Description This PR fix two bugs in window function: - *Index out of partition bound*: this is caused by multiple partitions sharing the same window function instance, as well as their frames states. For efficiency purpose, frames do not re-caclulate for each iteration. They may remove some data if the frame shrinks, which may cause IndexOutOfPartitionBoundError. - *Symbol not found*: window functions need OrderBy channels. The OrderBy symbols are added at QueryPlan stage, and would be looked up their channel by child operator's outputs' layout in OperatorGenerate stage. However, the symbols generate by child operator would be optimized by UnaliasSymbolReferences pass, and the window functions do not optimized their symbols in this pass. -- 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]
