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
The issue happens only when using proto.Named helper because it returns reference to new ColName obj instead of obj itself. This causes Infer function does not work properly for this case:
it passes (Tuple(String, Int64, Map(String, Float32))) into each of column.Infer call instead of parsing each column separately.
In general, this is just usability issue: I've spent a few hours trying to debug why my code don't work - only because I've used (seemingly harmless) helper function proto.Named. I think interfaces should be adjusted to ensure the result of proto.Named() can't be used as element of ColTuple list. At least some clarification needed about what elements should be passed to ColTuple.
The text was updated successfully, but these errors were encountered:
Describe the bug
Steps to reproduce
(code taken from slightly adjusted tuple_test.go):
Error log
The issue happens only when using
proto.Named
helper because it returns reference to new ColName obj instead of obj itself. This causesInfer
function does not work properly for this case:it passes
(Tuple(String, Int64, Map(String, Float32)))
into each of column.Infer call instead of parsing each column separately.To fix the issue I had to replace
with
In general, this is just usability issue: I've spent a few hours trying to debug why my code don't work - only because I've used (seemingly harmless) helper function
proto.Named
. I think interfaces should be adjusted to ensure the result ofproto.Named()
can't be used as element ofColTuple
list. At least some clarification needed about what elements should be passed to ColTuple.The text was updated successfully, but these errors were encountered: