Oh I see, so taking away the generics, it seems that we do accept from Entity where enum > 1 in general. I guess I’m not much of a fan of this, and I think it would be better if we asked people to write:
from Entity where cast(enum as Integer) > 1
since that’s more explicit and more obviously meaningful, or, at least
from Entity where enum > ENUM_VALUE
But perhaps for the sake of backwards compatibility we need to keep supporting the version without the enum>1 version. Though perhaps we should find some way to discourage it. This is something I guess we should discuss internally. |