edgedb icon indicating copy to clipboard operation
edgedb copied to clipboard

Aliases/globals have `expr` duplicated in a `Type`, and that sometimes get recompiled

Open msullivan opened this issue 4 months ago • 1 comments

In particular, it seems that both can get triggered by self._propagate_if_expr_refs, which causes some weird behavior.

msullivan avatar Aug 21 '25 16:08 msullivan

Do I understand correctly:

  • Alias & Global both have expr: Expression and type: Type fields, and
  • Type also has expr: Expression

... so Expression is duplicated, which is bad for performance, schema size and _propagate_if_expr_refs reasons.

In my opinion, the problematic part is Type having expr field.

aljazerzen avatar Aug 22 '25 07:08 aljazerzen