Skip to content

Commit

Permalink
Merge #69624
Browse files Browse the repository at this point in the history
69624: builtins: block gateway_region from DistSQL r=arulajmani a=otan

Resolves: #69598

Release justification: safety change

Release note: None

Co-authored-by: Oliver Tan <[email protected]>
  • Loading branch information
craig[bot] and otan committed Aug 31, 2021
2 parents c4778c7 + d7100c5 commit b0379ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/sql/sem/builtins/builtins.go
Original file line number Diff line number Diff line change
Expand Up @@ -5751,7 +5751,11 @@ value if you rely on the HLC for accuracy.`,
),

GatewayRegionBuiltinName: makeBuiltin(
tree.FunctionProperties{Category: categoryMultiRegion},
tree.FunctionProperties{
Category: categoryMultiRegion,
// We should always evaluate this built-in at the gateway.
DistsqlBlocklist: true,
},
tree.Overload{
Types: tree.ArgTypes{},
ReturnType: tree.FixedReturnType(types.String),
Expand Down

0 comments on commit b0379ad

Please sign in to comment.