TAJO-1265: min(), max() does not handle null properly
TAJO-1265: fix bug in partial result return