lag
and lead
window functions does not accept compatible default value
#8307
Labels
bug
Something isn't working
Describe the bug
The window functions
lag
andlead
allow a default value as its third parameter.Currently in DataFusion, this needs to be Int64 even though the value selected in the function is not of type Int64.
Postgres docs say that the default value only has to be compatible: https://www.postgresql.org/docs/current/functions-window.html
To Reproduce
Expected behavior
Allow any default value that can be coerced into the first parameter
Additional context
No response
The text was updated successfully, but these errors were encountered: