This is an extension of Bug
MB-27861 to optimize MIN aggregate without GROUP BY. As of vulcan, we want to handle optimization only for keyPos = 0 to avoid corner cases and regressions. It would be good to do the full optimization for KeyPos > 0 in mad-hatter.
|For Gerrit Dashboard: MB-29605|
|113913,2||MB-29605: Optimize MIN aggregate without group by when KeyPos > 0||unstable||indexing||Status: MERGED||+2||+1|