v.20.4Bug Fix

Fix DISTINCT for Distributed with optimize_skip_unused_shards set

Fix DISTINCT for Distributed when optimize_skip_unused_shards is set. #9808 (Azat Khuzhin)