TAJO-974: Eliminate unexpected case condition in SubQuery. (Hyoungjun Kim via hyunsik)

Closes #974
TAJO-974: Eliminate unexpected case condition in SubQuery. (missed ticket close)

Closes #93