Yes, you are correct it should to work on CORRESPONDING clause case. SQL 20nn standard draft only said each query to be of the same degree in a case of set operation without corresponding clause. The attached patch is corrected as such .I add those new test case to regression test too
Thank you - I will recheck it.
Fast check - it looks well
I am sending minor update - cleaning formatting and white spaces, error messages + few more tests
It is working very well.
Maybe correspondingClause needs own node type with attached location. Then context can be much better positioned.