Scalar `yield` after singleton record `yield` throws "Conversion to core did not preserve type" · Issue #263 · hydromatic/morel · GitHub
More Web Proxy on the site http://driver.im/
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
Scalar yield after record yield throws "Conversion to core did not preserve type".
from i in [1, 2, 3, 4, 5, 6],
j in [1, 2, 3, 4, 5, 6]
yield {x = i + j}
yield x;
gives
Conversion to core did not preserve type: expected [int list] actual [{x:int} list] from [from i_8 in [1, 2, 3, 4, 5, 6] join j_8 in [1, 2, 3, 4, 5, 6] yield {x = i_8 + j_8}]
The problem is that FromBuilder thinks the second yield is trivial, and removes it, but actually it affects the result type of the query.
The text was updated successfully, but these errors were encountered:
julianhyde
changed the title
Scalar yield after record yield throws "Conversion to core did not preserve type"
Scalar yield after singleton record yield throws "Conversion to core did not preserve type"
May 2, 2025
Scalar
yield
after recordyield
throws "Conversion to core did not preserve type".gives
The problem is that
FromBuilder
thinks the secondyield
is trivial, and removes it, but actually it affects the result type of the query.The text was updated successfully, but these errors were encountered: