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
most intuitively, I would have expected this to infer the natural default for the values argument (which would be all columns apart from the one that is specified/inferred as the on argument) and yield a result equivalent to:
Instead, a SyntaxError is raised, presumably because the library internals generate invalid syntax due to an empty list of expressions passed in.
Please consider:
allowing using lookup with only one argument, or
improving the docs to specify that at least one expression is required (especially as the ...values rest argument comes after on which in the TypeScript typings is marked as optional, so it's easy to assume that everything apart from other is optional)
The text was updated successfully, but these errors were encountered:
Running the following code:
most intuitively, I would have expected this to infer the natural default for the
values
argument (which would be all columns apart from the one that is specified/inferred as theon
argument) and yield a result equivalent to:Instead, a SyntaxError is raised, presumably because the library internals generate invalid syntax due to an empty list of expressions passed in.
Please consider:
lookup
with only one argument, or...values
rest argument comes afteron
which in the TypeScript typings is marked as optional, so it's easy to assume that everything apart fromother
is optional)The text was updated successfully, but these errors were encountered: