v.23.7Improvement

Fix Not Found Column Error in ClickHouse Reading In-Order and Constants

Fix #50582. Avoid the Not found column ... in block error in some cases of reading in-order and constants. #52259 (Chen768959).
Fixes the error Not found column ... in block that occurred in certain cases when reading data in-order alongside constant columns.

Why it matters

This fix addresses the issue where reading data in an in-order manner combined with constant columns caused ClickHouse to throw a Not found column error. It improves query stability and correctness by ensuring columns are properly handled during this type of read operation.

How to use it

Users benefit from this fix automatically after upgrading ClickHouse to the version containing this patch. No special configuration is required.