You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
StructExpression s are Dict-like and we rely on this behavior for methods like .items(). We should probably ban the use of names like items so that you can always iterate over a struct expressions field names and field value expressions.
In particular, struct field names which clash with methods on
`StructExpression`.
close#13495
CHANGELOG: Fix a bug where field names can shadow methods on the
StructExpression class, e.g. "items", "keys", "values". Now the only way
to access such fields is through the getitem syntax, e.g.
"some_struct['items']". It's possible this could break existing code
that uses such field names.
What happened?
StructExpression
s are Dict-like and we rely on this behavior for methods like.items()
. We should probably ban the use of names likeitems
so that you can always iterate over a struct expressions field names and field value expressions.Version
0.2.120
Relevant log output
No response
The text was updated successfully, but these errors were encountered: