-
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.
Browse files
Browse the repository at this point in the history
77875: sql: use IndexFetchSpec for inverted joiner r=RaduBerinde a=RaduBerinde #### rowexec: address TODO in inverted joiner This commit addresses a TODO in the inverted joiner. We now reuse a buffer for encoding the prefix key. In the general case we still need to make a copy since we are storing multiple prefix keys; but now we try to reuse the last copy if the prefix is the same. We also remove the temporary use of `indexRow` which is confusing here (it wasn't obvious at first but this code has nothing to do with index rows and is just using `indexRow` as a temporary buffer). Release note: None #### geoindex: minor cleanup around Config This change changes `IsEmptyConfig`, `IsGeographyConfig`, `IsGeometryConfig` to methods on the `geoindex.Config` type. We also switch to passing configs by value which is cleaner and avoids some allocations. Release note: None #### sql: use IndexFetchSpec for inverted joiner This commit reworks the InvertedJoiner to use an IndexFetchSpec instead of table and index descriptors. The "internal schema" now matches the fetched columns (leading to simplifications in both planning and execution code). Release note: None 77878: kvstreamer: re-enable streamer by default r=yuzefovich a=yuzefovich Release note: None 77968: sql: keep experimental_enable_hash_sharded_indexes var as noop r=chengxiong-ruan a=chengxiong-ruan Fixes #77954 Release justification: needed for session var backward compatibility. Release note (sql change): experimental_enable_hash_sharded_indexes used to be set to enable the hash sharded index feature. since we now enable the feature by default, user don't need to set this var anymore. But still keeping it as noop for backward compatibility. 77995: opt: add ContainedBy operator (<@) to FoldNullComparisonLeft norm rule r=msirek,mgartner a=michae2 Fixes: #77745 When we originally made the ContainedBy operator (<`@)` distinct from the Contains operator (`@>)` we forgot to add ContainedBy to the FoldNullComparisonLeft normalization rule. It was only added to the FoldNullComparisonRight rule. Correct this. Release note (bug fix): fix an optimizer bug that prevented expressions of the form (NULL::STRING[] <@ ARRAY['x']) from being folded to NULL. 78013: roachtest: fix handling of test panics r=erikgrinaker a=tbg - roachtest: fix handling of test panics - roachtest: gracefully fail in sst-corruption test 78023: roachprod: update thrift artifact url for use with charybdefs r=tbg a=nicktrav The version of Thrift used in tests that use `charybdefs` has disappeared from the Apache artifacts repository that is used currently, which causes any roachtest that depends on `charybdefs` to fail due to not being able to fetch the artifact it needs. Update the artifact URL to pull from the Apache archive instead. Touches #78006,#78007,#78008,#78010,#78015,#78016. Release note: None. Co-authored-by: Radu Berinde <[email protected]> Co-authored-by: Yahor Yuzefovich <[email protected]> Co-authored-by: Chengxiong Ruan <[email protected]> Co-authored-by: Michael Erickson <[email protected]> Co-authored-by: Tobias Grieger <[email protected]> Co-authored-by: Nick Travers <[email protected]>
- Loading branch information
Showing
48 changed files
with
459 additions
and
456 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright 2022 The Cockroach Authors. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.txt. | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0, included in the file | ||
// licenses/APL.txt. | ||
|
||
package geoindex | ||
|
||
// IsEmpty returns whether the config contains a geospatial index | ||
// configuration. | ||
func (cfg Config) IsEmpty() bool { | ||
return cfg.S2Geography == nil && cfg.S2Geometry == nil | ||
} | ||
|
||
// IsGeography returns whether the config is a geography geospatial index | ||
// configuration. | ||
func (cfg Config) IsGeography() bool { | ||
return cfg.S2Geography != nil | ||
} | ||
|
||
// IsGeometry returns whether the config is a geometry geospatial index | ||
// configuration. | ||
func (cfg Config) IsGeometry() bool { | ||
return cfg.S2Geometry != nil | ||
} |
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
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
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.