v.22.6Bug Fix
Fix Incorrect Results in SELECT ... WITH FILL Due to ORDER BY Optimization
Fix possible incorrect result ofSELECT ... WITH FILLin the case whenORDER BYshould be applied afterWITH FILLresult (e.g. for outer query). Incorrect result was caused by optimization forORDER BYexpressions (#35623). Closes #37904. #37959 (Yakov Olkhovskiy).