-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
28392: sql: add the string_agg aggregation function r=BramGruneir a=BramGruneir This function is similar to concat_agg but it takes a delimiter as a secondary argument. Previously, we were not able to handle aggregations with more than one argument before. To allow for this, without getting into the messy world of multi-column aggregators, all arguments after the first one in an aggregator must be constant expressions. This in turn required updating the aggregator functions to now also take argument datums as an new argument. For distsql, the arguments are stored as expressions that have already been checked to ensure that they are constants. It looks like concat_agg (and now string_agg) are not run in distsql yet, so this will be added next. This work is primarily motivated by the need for greater ORM compatibility. Closes #10495, #26737 Release note (sql change): Added the new aggregation function string_agg that concats a collection of strings into a single string and seperates them with the passed in delimiter. 28470: hlc: Prevent false positives in forward clock jump monitoring r=tschottdorf a=bdarnell A recent change to the ordering of various startup events has led to a gap between calls to hlc.Clock.Now, which looks like a forward clock jump to first iteration of the monitoring goroutine. Fixes #28367 Release note: None Co-authored-by: Bram Gruneir <[email protected]> Co-authored-by: Ben Darnell <[email protected]>
- Loading branch information
Showing
16 changed files
with
927 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.