RelMdColumnUniqueness does not have an override for Calc, thus it can't resolve uniqueness for EnumerableCalc
In practice, it is hard to deduce uniqueness for select emp.id*emp.deptno from emp, however, simple projects can be resolved (e.g. when Calc selects one of its input as is).
- links to