( pipeline: NamespacedAndKeyedStream, select: Select, _allInputs: Record<string, KeyedStream>, )
| 152 | * while preserving the original namespaced row for ORDER BY access |
| 153 | */ |
| 154 | export function processSelect( |
| 155 | pipeline: NamespacedAndKeyedStream, |
| 156 | select: Select, |
| 157 | _allInputs: Record<string, KeyedStream>, |
| 158 | ): NamespacedAndKeyedStream { |
| 159 | // Build ordered operations to preserve authoring order (spreads and fields) |
| 160 | const ops: Array<SelectOp> = [] |
| 161 | |
| 162 | addFromObject([], select, ops) |
| 163 | |
| 164 | return pipeline.pipe(map((row) => processRow(row, ops))) |
| 165 | } |
| 166 | |
| 167 | function compileSelectObject( |
| 168 | obj: Record<string, any>, |
no test coverage detected