[Tree][Closure] Handle primary key differents types