TAJO-974: Eliminate unexpected case condition in SubQuery