(query: QueryIR)
| 571 | } |
| 572 | |
| 573 | function getFirstFromAlias(query: QueryIR): string | undefined { |
| 574 | if (query.from.type === `unionFrom`) { |
| 575 | return query.from.sources[0]?.alias |
| 576 | } |
| 577 | |
| 578 | if (query.from.type === `unionAll`) { |
| 579 | return undefined |
| 580 | } |
| 581 | |
| 582 | return query.from.alias |
| 583 | } |
| 584 | |
| 585 | /** |
| 586 | * Processes the results of a join operation |