LAG and LEAD do not have default argument in Redshift #548
Labels
bug
an unexpected problem or unintended behavior
func trans 🌍
Translation of individual functions to SQL
wip
work in progress
The LAG and LEAD functions do not have the
default
argument in Redshift. The dbplyr translation always inserts thedefault
argument into the LEAD/LAG functions and this leads to an error in Redshift.Please see below an example:
Created on 2020-11-26 by the reprex package (v0.3.0)
Redshift documentation links:
LAG: https://docs.aws.amazon.com/redshift/latest/dg/r_WF_LAG.html
LEAD: https://docs.aws.amazon.com/redshift/latest/dg/r_WF_LEAD.html
The text was updated successfully, but these errors were encountered: