Query: Allow certain unmapped constant in shaper expression #17048
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-enhancement
Milestone
Fix for #13048 involves trying to infer the constant expression in client code which are not server correlated and may contain reference to enclosing class which in terms capture context causing memory leak.
The heuristic we are currently using is, constantExpression
The set of conditions also includes certain other cases here. While it may not be always accurate but probably can be improved. 2 Failing cases right now.
Group by empty key and then projecting such key (it works if key is not used in projection). Here we receive constant of anonymous type.
We added these pattern for dev expression (ref #11905)
But we cannot find if the anonymous constant references enclosing class or not.
See also #15712 If that is fixed then perhaps we can fix this case.
CultureInfo is not mapped type. In future we could allow certain types we know not coming from client code to be in tree as we can be certain it cannot contain enclosing class.
The text was updated successfully, but these errors were encountered: