@@ -174,11 +174,11 @@ type Expression interface {
174174 //
175175 // The parameter 'offset' is the 0-based index of the first element to include. It can be an int, int32, int64 or [Expression].
176176 ArraySlice (offset any ) Expression
177- // ArraySliceWithLength creates an expression that returns a slice of an array starting from the specified offset with a given length.
177+ // ArraySliceToEnd creates an expression that returns a slice of an array starting from the specified offset with a given length.
178178 //
179179 // The parameter 'offset' is the 0-based index of the first element to include. It can be an int, int32, int64 or [Expression].
180180 // The parameter 'length' is the number of elements to include. It can be an int, int32, int64 or [Expression].
181- ArraySliceWithLength (offset , length any ) Expression
181+ ArraySliceToEnd (offset , length any ) Expression
182182 // ArrayIndexOf creates an expression that returns the first index of a search value in an array.
183183 //
184184 // The parameter 'search' is the value to search for. It can be a constant or [Expression].
@@ -205,12 +205,11 @@ type Expression interface {
205205 // If the expression resolves to an absent value, it is converted to NULL.
206206 // The order of elements in the output array is not stable and shouldn't be relied upon.
207207 ArrayAggDistinct () AggregateFunction
208- // TODO: Uncomment this after fixing the proto representation of this function.
209208 // ArrayFilter creates an expression for array_filter(array, param, body).
210209 //
211210 // The parameter 'param' is the name of the parameter to use in the body expression.
212211 // The parameter 'body' is the expression to evaluate for each element of the array.
213- // ArrayFilter(param string, body BooleanExpression) Expression
212+ ArrayFilter (param string , body BooleanExpression ) Expression
214213 // LogicalMaximum returns the maximum value of the expression and the specified values.
215214 LogicalMaximum (others ... any ) Expression
216215 // LogicalMinimum returns the minimum value of the expression and the specified values.
@@ -242,7 +241,7 @@ type Expression interface {
242241 // "week(wednesday)", "week(thursday)", "week(friday)", "week(saturday)", "week(sunday)", "isoweek", "month", "quarter", "year", and "isoyear".
243242 // The parameter 'timezone' can be a string constant (e.g., "America/Los_Angeles") or an [Expression] that evaluates to a valid timezone string.
244243 // Valid values are from the TZ database or in the format "Etc/GMT-1".
245- TimestampTruncateWithTimezone (granularity any , timezone string ) Expression
244+ TimestampTruncateWithTimezone (granularity any , timezone any ) Expression
246245 // TimestampToUnixMicros creates an expression that converts a timestamp expression to the number of microseconds since
247246 // the Unix epoch (1970-01-01 00:00:00 UTC).
248247 TimestampToUnixMicros () Expression
@@ -588,8 +587,8 @@ func (b *baseExpression) ArrayFirstN(n any) Expression { return ArrayFirstN(
588587func (b * baseExpression ) ArrayLast () Expression { return ArrayLast (b ) }
589588func (b * baseExpression ) ArrayLastN (n any ) Expression { return ArrayLastN (b , n ) }
590589func (b * baseExpression ) ArraySlice (offset any ) Expression { return ArraySlice (b , offset ) }
591- func (b * baseExpression ) ArraySliceWithLength (offset , length any ) Expression {
592- return ArraySliceLength (b , offset , length )
590+ func (b * baseExpression ) ArraySliceToEnd (offset , length any ) Expression {
591+ return ArraySliceToEnd (b , offset , length )
593592}
594593func (b * baseExpression ) ArrayIndexOf (search any ) Expression {
595594 return ArrayIndexOf (b , search )
@@ -605,11 +604,9 @@ func (b *baseExpression) Last() AggregateFunction { return Last(b) }
605604func (b * baseExpression ) ArrayAgg () AggregateFunction { return ArrayAgg (b ) }
606605func (b * baseExpression ) ArrayAggDistinct () AggregateFunction { return ArrayAggDistinct (b ) }
607606
608- // TODO: Uncomment this after fixing the proto representation of this function.
609- //
610- // func (b *baseExpression) ArrayFilter(param string, body BooleanExpression) Expression {
611- // return ArrayFilter(b, param, body)
612- // }
607+ func (b * baseExpression ) ArrayFilter (param string , body BooleanExpression ) Expression {
608+ return ArrayFilter (b , param , body )
609+ }
613610func (b * baseExpression ) LogicalMaximum (others ... any ) Expression {
614611 return LogicalMaximum (b , others ... )
615612}
@@ -627,7 +624,7 @@ func (b *baseExpression) TimestampSubtract(unit, amount any) Expression {
627624func (b * baseExpression ) TimestampTruncate (granularity any ) Expression {
628625 return TimestampTruncate (b , granularity )
629626}
630- func (b * baseExpression ) TimestampTruncateWithTimezone (granularity any , timezone string ) Expression {
627+ func (b * baseExpression ) TimestampTruncateWithTimezone (granularity any , timezone any ) Expression {
631628 return TimestampTruncateWithTimezone (b , granularity , timezone )
632629}
633630func (b * baseExpression ) TimestampToUnixMicros () Expression { return TimestampToUnixMicros (b ) }
0 commit comments