v.23.2Performance Improvement

Rewrite arrayExists for Improved Performance in ClickHouse

Rewrite arrayExists(x -> x = 1, arr) -> has(arr, 1), which improve performance by 1.34x. #46188 (李扬).