The SQL query "SELECT COUNT (...) GROUP BY" doesn't work in the Web Management Console when it includes enums

Description

Below query works fine in gs-ui but fails in web-ui
select count(p1.x),p2.y from z where
rownum<5000 and p1.m='ZZ' group by p2.y

y is an enum.
Reproduction test and snapshots are attached to case 11583.
Please commit the fix to the existing 12.1.0-patch2 branch.

Workaround

None

Acceptance Test

manual

Status

Assignee

Evgeny Fisher

Reporter

Yuval Dori

Labels

None

Priority

Medium

SalesForce Case ID

11583

Fix versions

Commitment Version/s

None

Due date

None

Product

XAP

Edition

Premium

Platform

All
Configure