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
Change from_py and map_py to always assign a bag when schema=OBJECT is requested
Motivation:
* Removed an edge case in the behaviour of `kd.from_py(..., from_dim=1)` where the result would unexpectedly be assigned a bag when the input list was empty. This edge case was encountered while optimising `map_py_on_present`.
* Removed discrepancy:
- `kd.map_py(lambda x: x, [], schema=kd.OBJECT).x` ok
- `kd.map_py(lambda x: x, [None], schema=kd.OBJECT).x` ok\
while
- `kd.map_py(lambda x: x, []).x` ok
- `kd.map_py(lambda x: x, [None]).x` failure
PiperOrigin-RevId: 714118231
Change-Id: I57aab375f6185a31cc33a9f03a899cca336ee902
0 commit comments