title: Variable in case with error in false clause aggregation
body: <p>Why this query throw divide by zero error?</p>
  <pre><code>declare @d int =1
  select
  case when @d=1 then sum(1)
                 else  sum(1/0)
  end
  </code></pre>
  <p>But if we remove aggregation or change variable to constant all work fine.</p>