[testing] Add appending stages to the query generators (#49567)
This also cleans up the testing to check everything more carefully, and to expect the right things across multiple stages. (This is a bit tricky since the order-bys get removed when the stage gets aggregated, because the columns they were using are now gone.)
Please register or sign in to comment