v.21.9Bug Fix
Fix optimize_skip_unused_shards_rewrite_in for non-UInt64 types
Fixoptimize_skip_unused_shards_rewrite_infor non-UInt64 types (may select incorrect shards eventually or throwCannot infer type of an empty tupleorFunction tuple requires at least one argument). #25798 (Azat Khuzhin).