Class SQLServerGenerateSeriesFunction

All Implemented Interfaces:
SetReturningFunctionRenderer, SqmSetReturningFunctionDescriptor

public class SQLServerGenerateSeriesFunction extends NumberSeriesGenerateSeriesFunction
SQL Server generate_series function. When possible, the generate_series function is used directly. If ordinality is requested or the arguments are temporals, this emulation comes into play. It essentially renders a generate_series with a specified maximum size that serves as "iteration variable". References to the value are replaced with expressions of the form start + step * iterationVariable and a condition is added either to the query or join where the function is used to ensure that the value is less than or equal to the stop value.