Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
56337: importccl: fixed import mysqldump crashing bug r=adityamaru,pbardea a=mokaixu After the logic for parsing schemas for bundle formats got moved from planning to execution phase, import mysqldump commands caused panics from the walltime being 0. This was because mysqldump' gets walltime from the job's evalCtx which when retrieved in the execution phase, is 0 (vs. the planning phase when evalCtx's walltime is nonzero). To address this, the logic that initializes walltime was moved from the execution to the planning phase. This ensures that we have a consistent walltime that persists in the execution phase, regardless of whether a job needs to restart/re-resume. This walltime is then passed using importDetails to the execution phase where it can be used. The methods responsible for import mysqldump functionality now retrieve walltime from importDetails instead of evalCtx. Release note: None Fixes #56284 56350: sql: encode multi-column inverted index key spans r=mgartner a=mgartner #### opt: fix assumptions about inverted columns of inverted indexes This commit fixes some bugs caused by the assumption that the first column of an inverted index is the inverted column. With the addition of multi-column inverted indexes, the last column is the inverted column, not the first. Release note: None #### sql: move inverted span encoding to span package This commit moves the logic for generating `roachpb.Spans` from `invertedexpr.InvertedSpans` from `pkg/sql/inverted_span_encoding.go` to in`pkg/sql/span/span_builder.go`. Now, the logic for building both inverted and non-inverted spans lives in the same place, in the `span.Builder`. Code in `pkg/sql/rowexec/inverted_joiner.go` also uses this new feature of the span builder to create `roachpb.Spans` from a slice of `SpanExpressionProto_Span`, reducing duplicate logic. Release note: None #### sql: encode multi-column inverted index key spans This commit adds support for combining both a Scan's Constraint and InvertedConstraint into key spans for scanning multi-column inverted indexes. The Constraint is used to constrain the prefix columns, while the InvertedConstraint is used to constrain the inverted column. Release note: None 56445: ui: aggregate new statement stats on the client r=dhartunian a=dhartunian Previously, we added new stats to the statements proto without also ensuring that our aggregation of the same fingerprint across multiple nodes averaged values for those new fields. Since our protobuf definitions allow null values, TypeScript wasn't able to enforce the setting of these new fields in the aggregation function. Resolves #56432. Release note (admin ui change): fixes a bug where the "Other Execution Statistics" box in the Statement Details page would be empty in situations where the same fingerprint had been processed by multiple nodes. 56578: vendor: bump Pebble to 01067adc r=sumeerbhola a=sumeerbhola 01067adc db: add test for ingest idempotence 69de2263 internal/manifest: fix typo in comment for SeekGE 4e7ee20a db: fix Iterator direction switching behavior 7c3b8ea9 Merge pull request #983 from otan-cockroach/go1.15 d87c944f travis: upgrade to go 1.15 for testing Release note: None Co-authored-by: Monica Xu <monicax@cockroachlabs.com> Co-authored-by: Marcus Gartner <marcus@cockroachlabs.com> Co-authored-by: David Hartunian <davidh@cockroachlabs.com> Co-authored-by: sumeerbhola <sumeer@cockroachlabs.com>
- Loading branch information