daft.lit(val)
where val
is of type daft.Series
has incorrect behavior
#3287
Labels
daft.lit(val)
where val
is of type daft.Series
has incorrect behavior
#3287
Describe the bug
When you pass a Series into
daft.lit
, it actually tries to use the series as a column, and if it does not match the length of a table, it fails. Instead, it should be treated as a singular list row and broadcasted, to be consistent with other literal types.To Reproduce
Expected behavior
Component(s)
Expressions
Additional context
How we would implement this:
LiteralValue::List
type that holds a vec ofLiteralValue
instead of a series. We can add functionality that converts to and from series, where the to_series implementation will return a ListArray series with the inner vec value.The text was updated successfully, but these errors were encountered: