(out_type: &DataType)
| 102 | } |
| 103 | |
| 104 | pub fn new(out_type: &DataType) -> Result<Self> { |
| 105 | let empty_out_col = ScalarValue::try_from(out_type)?.to_array_of_size(0)?; |
| 106 | Ok(Self { |
| 107 | window_frame_range: Range { start: 0, end: 0 }, |
| 108 | window_frame_ctx: None, |
| 109 | last_calculated_index: 0, |
| 110 | offset_pruned_rows: 0, |
| 111 | out_col: empty_out_col, |
| 112 | n_row_result_missing: 0, |
| 113 | is_end: false, |
| 114 | }) |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | /// This object stores the window frame state for use in incremental calculations. |
nothing calls this directly
no test coverage detected