Open BenB196 opened 2 weeks ago
Having to the ability compare the results of a row before or after the current row is useful in the data analysis world. SQL generally has the LAG & LEAD functions for this. https://mode.com/sql-tutorial/sql-window-functions#lag-and-lead
LAG
LEAD
Simple example is I'd like to compare bucketed time series data to see if the current result either decreases or increases from the previous result bucket.
Pinging @elastic/es-analytical-engine (Team:Analytics)
Description
Having to the ability compare the results of a row before or after the current row is useful in the data analysis world. SQL generally has the
LAG
&LEAD
functions for this. https://mode.com/sql-tutorial/sql-window-functions#lag-and-leadSimple example is I'd like to compare bucketed time series data to see if the current result either decreases or increases from the previous result bucket.