From e984ec55948810deb602632887b68baebbf2449e Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 16 Jul 2018 14:20:35 +0000 Subject: [PATCH 1/2] importccl: pre-read schemas in mysqldump import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This switches mysqldump import to use read schemas from during setup on the gateway, rather than during sampling, similar to how pgdump operates (i.e. in three passes over the input rather than two). This simplifies handling foreign keys, which can sometimes appear in a table definition before the table they reference — making them hard to correctly resolve immediately. Reading though the whole file to capture all the schemas before evaluating them should make that a bit easier. In the future, a return to 2-pass could be possible either if it turns out that KVs can be produced correctly even if the schema is later changed by a foreign key, or by oversampling raw rows of the input *without* converting during the read extracting the schemas, then using those schemas to convert the sampled rows to KVs from which the splits can be sampled. Release note: none. --- pkg/ccl/importccl/import_stmt.go | 2 + pkg/ccl/importccl/read_import_mysql.go | 51 +--------- pkg/sql/distsql_plan_csv.go | 129 ++++++++++++------------- 3 files changed, 69 insertions(+), 113 deletions(-) diff --git a/pkg/ccl/importccl/import_stmt.go b/pkg/ccl/importccl/import_stmt.go index c0f8839c9832..4312d3e5d421 100644 --- a/pkg/ccl/importccl/import_stmt.go +++ b/pkg/ccl/importccl/import_stmt.go @@ -687,6 +687,8 @@ func importPlanHook( fks := fkHandler{skip: skipFKs, allowed: true, resolver: make(fkResolver)} switch format.Format { case roachpb.IOFileFormat_Mysqldump: + evalCtx := &p.ExtendedEvalContext().EvalContext + tableDescs, err = readMysqlCreateTable(reader, evalCtx, parentID, match) case roachpb.IOFileFormat_PgDump: evalCtx := &p.ExtendedEvalContext().EvalContext tableDescs, err = readPostgresCreateTable(reader, evalCtx, p.ExecCfg().Settings, match, parentID, walltime, fks, int(format.PgDump.MaxRowSize)) diff --git a/pkg/ccl/importccl/read_import_mysql.go b/pkg/ccl/importccl/read_import_mysql.go index 6705ef83511c..bdba0e320ace 100644 --- a/pkg/ccl/importccl/read_import_mysql.go +++ b/pkg/ccl/importccl/read_import_mysql.go @@ -17,8 +17,6 @@ import ( "strconv" "strings" - "github.com/cockroachdb/cockroach/pkg/roachpb" - "github.com/pkg/errors" mysqltypes "vitess.io/vitess/go/sqltypes" mysql "vitess.io/vitess/go/vt/sqlparser" @@ -41,11 +39,9 @@ import ( // tables with names that appear in the `tables` map is converted to Cockroach // KVs using the mapped converter and sent to kvCh. type mysqldumpReader struct { - evalCtx *tree.EvalContext - tables map[string]*rowConverter - importAll bool // import any table encountered. - kvCh chan kvBatch - + evalCtx *tree.EvalContext + tables map[string]*rowConverter + kvCh chan kvBatch debugRow func(tree.Datums) } @@ -54,7 +50,7 @@ var _ inputConverter = &mysqldumpReader{} func newMysqldumpReader( kvCh chan kvBatch, tables map[string]*sqlbase.TableDescriptor, evalCtx *tree.EvalContext, ) (*mysqldumpReader, error) { - res := &mysqldumpReader{evalCtx: evalCtx, kvCh: kvCh, importAll: len(tables) == 0} + res := &mysqldumpReader{evalCtx: evalCtx, kvCh: kvCh} converters := make(map[string]*rowConverter, len(tables)) for name, table := range tables { @@ -69,7 +65,6 @@ func newMysqldumpReader( converters[name] = conv } res.tables = converters - return res, nil } @@ -83,7 +78,6 @@ func (m *mysqldumpReader) inputFinished(ctx context.Context) { func (m *mysqldumpReader) readFile( ctx context.Context, input io.Reader, inputIdx int32, inputName string, progressFn progressFn, ) error { - var generatedIDs sqlbase.ID var inserts, count int64 r := bufio.NewReaderSize(input, 1024*64) tokens := mysql.NewTokenizer(r) @@ -100,43 +94,6 @@ func (m *mysqldumpReader) readFile( return errors.Wrap(err, "mysql parse error") } switch i := stmt.(type) { - case *mysql.DDL: - if i.Action == mysql.DropStr { - continue - } - if i.Action != mysql.CreateStr { - return errors.Errorf("unsupported %q statement in mysqldump", i.Action) - } - name := i.NewName.Name.String() - conv, ok := m.tables[name] - // If we already have this schema, skip it. - if conv != nil { - continue - } - // If we're only importing the named tables and this is not one, skip it. - if !m.importAll && !ok { - continue - } - - generatedIDs++ - id := defaultCSVTableID + generatedIDs - tbl, err := mysqlTableToCockroach(m.evalCtx, defaultCSVParentID, id, name, i.TableSpec) - if err != nil { - return err - } - conv, err = newRowConverter(tbl, m.evalCtx, m.kvCh) - if err != nil { - return err - } - kv := roachpb.KeyValue{Key: sqlbase.MakeDescMetadataKey(id)} - if err := kv.Value.SetProto(tbl); err != nil { - return err - } - kv.Value.InitChecksum(kv.Key) - conv.kvBatch = append(conv.kvBatch, kv) - - m.tables[name] = conv - case *mysql.Insert: name := i.Table.Name.String() conv, ok := m.tables[name] diff --git a/pkg/sql/distsql_plan_csv.go b/pkg/sql/distsql_plan_csv.go index b029e8d4b517..8c79b2d74323 100644 --- a/pkg/sql/distsql_plan_csv.go +++ b/pkg/sql/distsql_plan_csv.go @@ -248,61 +248,63 @@ func LoadCSV( details := job.Details().(jobspb.ImportDetails) samples := details.Samples - var parsedTables map[sqlbase.ID]*sqlbase.TableDescriptor if samples == nil { var err error - samples, parsedTables, err = dsp.loadCSVSamplingPlan(ctx, job, db, evalCtx, thisNode, nodes, from, splitSize, oversample, &planCtx, inputSpecs, sstSpecs) + samples, err = dsp.loadCSVSamplingPlan(ctx, job, db, evalCtx, thisNode, nodes, from, splitSize, oversample, &planCtx, inputSpecs, sstSpecs) if err != nil { return err } } - // If sampling returns parsed table definitions, we need to potentially assign - // them real IDs and re-key the samples with those IDs, then update the job - // details to record the tables and their matching samples. - if len(parsedTables) > 0 { - importing := to == "" // are we actually ingesting, or just transforming? - - rekeys := make(map[sqlbase.ID]*sqlbase.TableDescriptor, len(parsedTables)) - - // Update the tables map with the parsed tables and allocate them real IDs. - for _, parsed := range parsedTables { - name := parsed.Name - if existing, ok := tables[name]; ok && existing != nil { - return errors.Errorf("unexpected parsed table definition for %q", name) - } - tables[name] = parsed - - // If we're actually importing, we'll need a real ID for this table. - if importing { - rekeys[parsed.ID] = parsed - parsed.ID, err = GenerateUniqueDescID(ctx, phs.ExecCfg().DB) - if err != nil { - return err + /* + TODO(dt): when we enable reading schemas during sampling, might do this: + // If sampling returns parsed table definitions, we need to potentially assign + // them real IDs and re-key the samples with those IDs, then update the job + // details to record the tables and their matching samples. + if len(parsedTables) > 0 { + importing := to == "" // are we actually ingesting, or just transforming? + + rekeys := make(map[sqlbase.ID]*sqlbase.TableDescriptor, len(parsedTables)) + + // Update the tables map with the parsed tables and allocate them real IDs. + for _, parsed := range parsedTables { + name := parsed.Name + if existing, ok := tables[name]; ok && existing != nil { + return errors.Errorf("unexpected parsed table definition for %q", name) + } + tables[name] = parsed + + // If we're actually importing, we'll need a real ID for this table. + if importing { + rekeys[parsed.ID] = parsed + parsed.ID, err = GenerateUniqueDescID(ctx, phs.ExecCfg().DB) + if err != nil { + return err + } + } } - } - } - // The samples were created using the dummy IDs, but the IMPORT run will use - // the actual IDs, so we need to re-key the samples so that they actually - // act as splits in the IMPORTed key-space. - if importing { - kr, err := makeRewriter(rekeys) - if err != nil { - return err - } - for i := range samples { - var ok bool - samples[i], ok, err = kr.RewriteKey(samples[i]) - if err != nil { - return err - } - if !ok { - return errors.Errorf("expected rewriter to rewrite key %v", samples[i]) + // The samples were created using the dummy IDs, but the IMPORT run will use + // the actual IDs, so we need to re-key the samples so that they actually + // act as splits in the IMPORTed key-space. + if importing { + kr, err := makeRewriter(rekeys) + if err != nil { + return err + } + for i := range samples { + var ok bool + samples[i], ok, err = kr.RewriteKey(samples[i]) + if err != nil { + return err + } + if !ok { + return errors.Errorf("expected rewriter to rewrite key %v", samples[i]) + } + } } } - } - } + */ if len(tables) == 0 { return errors.Errorf("must specify table(s) to import") @@ -438,12 +440,6 @@ func LoadCSV( d := details.(*jobspb.Payload_Import).Import d.Samples = samples - if len(parsedTables) > 0 { - d.Tables = make([]jobspb.ImportDetails_Table, 0, len(tables)) - for _, tbl := range tables { - d.Tables = append(d.Tables, jobspb.ImportDetails_Table{Desc: tbl}) - } - } return prog.Completed() }, ); err != nil { @@ -483,7 +479,7 @@ func (dsp *DistSQLPlanner) loadCSVSamplingPlan( planCtx *planningCtx, csvSpecs []*distsqlrun.ReadImportDataSpec, sstSpecs []distsqlrun.SSTWriterSpec, -) ([][]byte, map[sqlbase.ID]*sqlbase.TableDescriptor, error) { +) ([][]byte, error) { // splitSize is the target number of bytes at which to create SST files. We // attempt to do this by sampling, which is what the first DistSQL plan of this // function does. CSV rows are converted into KVs. The total size of the KV is @@ -501,7 +497,7 @@ func (dsp *DistSQLPlanner) loadCSVSamplingPlan( } sampleSize := splitSize / oversample if sampleSize > math.MaxInt32 { - return nil, nil, errors.Errorf("SST size must fit in an int32: %d", splitSize) + return nil, errors.Errorf("SST size must fit in an int32: %d", splitSize) } var p physicalPlan @@ -530,7 +526,7 @@ func (dsp *DistSQLPlanner) loadCSVSamplingPlan( d.SamplingProgress = make([]float32, len(csvSpecs)) return d.Completed() }); err != nil { - return nil, nil, err + return nil, err } // We only need the key during sorting. @@ -558,23 +554,24 @@ func (dsp *DistSQLPlanner) loadCSVSamplingPlan( ) var samples [][]byte - parsedTables := make(map[sqlbase.ID]*sqlbase.TableDescriptor) sampleCount := 0 rowResultWriter := newCallbackResultWriter(func(ctx context.Context, row tree.Datums) error { key := roachpb.Key(*row[0].(*tree.DBytes)) - if keys.IsDescriptorKey(key) { - kv := roachpb.KeyValue{Key: key} - kv.Value.RawBytes = []byte(*row[1].(*tree.DBytes)) - var desc sqlbase.TableDescriptor - if err := kv.Value.GetProto(&desc); err != nil { - return err + /* + TODO(dt): when we enable reading schemas during sampling, might do this: + if keys.IsDescriptorKey(key) { + kv := roachpb.KeyValue{Key: key} + kv.Value.RawBytes = []byte(*row[1].(*tree.DBytes)) + var desc sqlbase.TableDescriptor + if err := kv.Value.GetProto(&desc); err != nil { + return err + } + parsedTables[desc.ID] = &desc + return nil } - parsedTables[desc.ID] = &desc - return nil - } - + */ sampleCount++ sampleCount = sampleCount % int(oversample) if sampleCount == 0 { @@ -606,10 +603,10 @@ func (dsp *DistSQLPlanner) loadCSVSamplingPlan( samples = nil dsp.Run(planCtx, nil, &p, recv, evalCtx) if err := rowResultWriter.Err(); err != nil { - return nil, nil, err + return nil, err } log.VEventf(ctx, 1, "generated %d splits; begin routing for job %s", len(samples), job.Payload().Description) - return samples, parsedTables, nil + return samples, nil } From 755f111a6d29585d85ce81c7a82f401fc5d4758c Mon Sep 17 00:00:00 2001 From: Jordan Lewis Date: Mon, 23 Jul 2018 15:22:13 -0400 Subject: [PATCH 2/2] distsqlrun: explain(distsql) queries w/ fragment Previously, explain(distsql) emitted a URL that used the query string to send the compressed plan data to cockroachdb.github.io. This was unideal, as query strings are transmitted to the server, but these query strings might contain compressed, sensitive data. Now, the query string is sent in the URL fragment, which is kept on the client side by the browser. Release note: None --- pkg/sql/distsql_physical_planner_test.go | 10 +-- pkg/sql/distsqlrun/flow_diagram.go | 2 +- pkg/sql/distsqlrun/flow_diagram_test.go | 2 +- .../testdata/planner_test/distsql_agg | 86 +++++++++--------- .../testdata/planner_test/distsql_auto_mode | 6 +- .../testdata/planner_test/distsql_distinct_on | 10 +-- .../testdata/planner_test/distsql_indexjoin | 8 +- .../planner_test/distsql_interleaved_join | 42 ++++----- .../testdata/planner_test/distsql_join | 16 ++-- .../testdata/planner_test/distsql_lookup_join | 40 ++++----- .../testdata/planner_test/distsql_misc | 6 +- .../testdata/planner_test/distsql_numtables | 28 +++--- .../testdata/planner_test/distsql_srfs | 10 +-- .../testdata/planner_test/distsql_union | 90 +++++++++---------- .../opt/exec/execbuilder/testdata/distsql_agg | 86 +++++++++--------- .../execbuilder/testdata/distsql_auto_mode | 2 +- .../execbuilder/testdata/distsql_distinct_on | 10 +-- .../execbuilder/testdata/distsql_indexjoin | 8 +- .../testdata/distsql_interleaved_join | 42 ++++----- .../exec/execbuilder/testdata/distsql_join | 16 ++-- .../exec/execbuilder/testdata/distsql_misc | 6 +- .../execbuilder/testdata/distsql_numtables | 28 +++--- .../exec/execbuilder/testdata/distsql_union | 90 +++++++++---------- .../opt/exec/execbuilder/testdata/lookup_join | 22 ++--- 24 files changed, 333 insertions(+), 333 deletions(-) diff --git a/pkg/sql/distsql_physical_planner_test.go b/pkg/sql/distsql_physical_planner_test.go index b3de1e3f94be..3b47e893a2af 100644 --- a/pkg/sql/distsql_physical_planner_test.go +++ b/pkg/sql/distsql_physical_planner_test.go @@ -432,7 +432,7 @@ func TestDistSQLDeadHosts(t *testing.T) { // Verify the plan (should include all 5 nodes). r.CheckQueryResults(t, "SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(xsquared) FROM t]", - [][]string{{"https://cockroachdb.github.io/distsqlplan/decode.html?eJy8k09LwzAYxu9-CnlOCu9h7bo5e5rHHXQy9SQ91OalFLamJCkoo99d1iDaIskgo8f8-T2_PG1yRC0FP-UH1kjfEYEQgzAHIQFhgYzQKFmw1lKdtlhgIz6RzghV3bTmNJ0RCqkY6RGmMntGitf8Y887zgUrEASbvNr3kkZVh1x9rQ0I29ak1-sYWUeQrflJ6-h8z0NZKi5zI0eal7fHm3V0e3b0b2JbSyVYsRgEZt2F5dFE38_jCakQT1TB4wmpMJ-ogscTUiGZqILHc6mH-E_0jnUja82jBznMywgsSrZvWctWFfysZNGH2-G2391PCNbGrkZ2sKnt0ulYf-HICccDOBrDsdvsUc-ddOKGk5BzL5zw0m1ehpjvnPDKbV6FmO_d_2rmuSbuSzZ2Z93VdwAAAP__XTV6BQ=="}}, + [][]string{{"https://cockroachdb.github.io/distsqlplan/decode.html#eJy8k09LwzAYxu9-CnlOCu9h7bo5e5rHHXQy9SQ91OalFLamJCkoo99d1iDaIskgo8f8-T2_PG1yRC0FP-UH1kjfEYEQgzAHIQFhgYzQKFmw1lKdtlhgIz6RzghV3bTmNJ0RCqkY6RGmMntGitf8Y887zgUrEASbvNr3kkZVh1x9rQ0I29ak1-sYWUeQrflJ6-h8z0NZKi5zI0eal7fHm3V0e3b0b2JbSyVYsRgEZt2F5dFE38_jCakQT1TB4wmpMJ-ogscTUiGZqILHc6mH-E_0jnUja82jBznMywgsSrZvWctWFfysZNGH2-G2391PCNbGrkZ2sKnt0ulYf-HICccDOBrDsdvsUc-ddOKGk5BzL5zw0m1ehpjvnPDKbV6FmO_d_2rmuSbuSzZ2Z93VdwAAAP__XTV6BQ=="}}, ) // Stop node 5. @@ -442,7 +442,7 @@ func TestDistSQLDeadHosts(t *testing.T) { r.CheckQueryResults(t, "SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(xsquared) FROM t]", - [][]string{{"https://cockroachdb.github.io/distsqlplan/decode.html?eJy8k8FK7DAYhff3KS5npZCF6dRx7KouZ6Ejo64ki9j8lEKnKUkKytB3lzaItkg60qHL5M93vpySHlFpRQ_yQBbJKzgYIjCswBBDMNRGZ2StNt3YH96qdyRXDEVVN67bFgyZNoTkCFe4kpDgWb6VtCepyIBBkZNF2QtqUxyk-UgdGHaNS_6nEUTLoBv3lday0z13eW4ol06PNE8v9xcpvzw5-juxqbRRZEgNAkV7Zjlf6PtNeOZUiBaqMOGZU2G1UIUJz7le8S_Re7K1riyNXvMwTzCQysn_CFY3JqNHo7M-3C93_el-Q5F1fsr9Ylv5UXetnzAPwtEA5mM4CsK3YfMqCMdhOJ5z7esgvA6b13PMN0F4EzZv_mQW7b_PAAAA__-DuA-E"}}, + [][]string{{"https://cockroachdb.github.io/distsqlplan/decode.html#eJy8k8FK7DAYhff3KS5npZCF6dRx7KouZ6Ejo64ki9j8lEKnKUkKytB3lzaItkg60qHL5M93vpySHlFpRQ_yQBbJKzgYIjCswBBDMNRGZ2StNt3YH96qdyRXDEVVN67bFgyZNoTkCFe4kpDgWb6VtCepyIBBkZNF2QtqUxyk-UgdGHaNS_6nEUTLoBv3lday0z13eW4ol06PNE8v9xcpvzw5-juxqbRRZEgNAkV7Zjlf6PtNeOZUiBaqMOGZU2G1UIUJz7le8S_Re7K1riyNXvMwTzCQysn_CFY3JqNHo7M-3C93_el-Q5F1fsr9Ylv5UXetnzAPwtEA5mM4CsK3YfMqCMdhOJ5z7esgvA6b13PMN0F4EzZv_mQW7b_PAAAA__-DuA-E"}}, ) // Stop node 2; note that no range had replicas on both 2 and 5. @@ -452,7 +452,7 @@ func TestDistSQLDeadHosts(t *testing.T) { r.CheckQueryResults(t, "SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(xsquared) FROM t]", - [][]string{{"https://cockroachdb.github.io/distsqlplan/decode.html?eJy8kkFLwzAUx-9-CvmfFHIwXZ3QUz3uoJOpJ8khNo9S6JrykoIy-t2lDaItkk02dkxe_r_fe-Ht0FhDj3pLDtkbJAQWEEihBFq2BTlneSiFhyvzgexGoGrazg_XSqCwTMh28JWvCRle9HtNG9KGGAKGvK7qEd5ytdX8mXsIrDufXeYJVC9gO_9N68XhnvuyZCq1tzPN8-vDVS6vD0b_ELvGsiEmMwGq_sRyeab_2-M5ZoTkTCPs8ZxqBf5Ab8i1tnE0W4UpTwmQKSlskbMdF_TEthjh4bgeX48XhpwPVRkOqyaUhrZ-h2U0nEzCch5OouG7uHkRDafxcHpM27fR8DJuXv7LrPqLrwAAAP__vMyldA=="}}, + [][]string{{"https://cockroachdb.github.io/distsqlplan/decode.html#eJy8kkFLwzAUx-9-CvmfFHIwXZ3QUz3uoJOpJ8khNo9S6JrykoIy-t2lDaItkk02dkxe_r_fe-Ht0FhDj3pLDtkbJAQWEEihBFq2BTlneSiFhyvzgexGoGrazg_XSqCwTMh28JWvCRle9HtNG9KGGAKGvK7qEd5ytdX8mXsIrDufXeYJVC9gO_9N68XhnvuyZCq1tzPN8-vDVS6vD0b_ELvGsiEmMwGq_sRyeab_2-M5ZoTkTCPs8ZxqBf5Ab8i1tnE0W4UpTwmQKSlskbMdF_TEthjh4bgeX48XhpwPVRkOqyaUhrZ-h2U0nEzCch5OouG7uHkRDafxcHpM27fR8DJuXv7LrPqLrwAAAP__vMyldA=="}}, ) } @@ -509,7 +509,7 @@ func TestDistSQLDrainingHosts(t *testing.T) { } // Verify distribution. - expectPlan([][]string{{"https://cockroachdb.github.io/distsqlplan/decode.html?eJyskT1rwzAQhvf-inJTCoJETrpoSumUoXbJBx2KCap1GEMsmZMELcH_vdgaEodYTSGjTn7uef3qCNooTGWNFsQncGCQQM6gIVOgtYa6cfhopb5BzBhUuvGuG-cMCkMI4giucgcEAVv5dcA1SoU0nQEDhU5Wh351Q1Ut6WepfW2BQeadeEyNRshbBsa701LrZIkgeMtuF7-UJWEpnaFpMvS-Zrt0u19nH5vJ06grGXWdFF4bUkioBvvzNp5mMUyz2b3tV-l2suTjYeaDMPz2xvldG_9DfPaP87s2fsW1RtsYbfGi-eubZ92LoCoxPJ81ngp8J1P0mnDMeq4fKLQu3PJwWOlw1QU8h3kUTgYwv4STKPwcN8-j8CIOL_4VO28ffgMAAP__nC9YuA=="}}) + expectPlan([][]string{{"https://cockroachdb.github.io/distsqlplan/decode.html#eJyskT1rwzAQhvf-inJTCoJETrpoSumUoXbJBx2KCap1GEMsmZMELcH_vdgaEodYTSGjTn7uef3qCNooTGWNFsQncGCQQM6gIVOgtYa6cfhopb5BzBhUuvGuG-cMCkMI4giucgcEAVv5dcA1SoU0nQEDhU5Wh351Q1Ut6WepfW2BQeadeEyNRshbBsa701LrZIkgeMtuF7-UJWEpnaFpMvS-Zrt0u19nH5vJ06grGXWdFF4bUkioBvvzNp5mMUyz2b3tV-l2suTjYeaDMPz2xvldG_9DfPaP87s2fsW1RtsYbfGi-eubZ92LoCoxPJ81ngp8J1P0mnDMeq4fKLQu3PJwWOlw1QU8h3kUTgYwv4STKPwcN8-j8CIOL_4VO28ffgMAAP__nC9YuA=="}}) // Drain the second node and expect the query to be planned on only the // first node. @@ -517,7 +517,7 @@ func TestDistSQLDrainingHosts(t *testing.T) { distServer.ServerConfig.TestingKnobs.DrainFast = true distServer.Drain(ctx, 0 /* flowDrainWait */) - expectPlan([][]string{{"https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkEFL9DAQhu_fr_h4TwqBbfeYk-JpL63UFQ8SJDZDKLSZMklAWfrfpc1BV1jR47yT533CnBDYUWMnitDPqGEUZuGeYmRZo_Lg4N6gK4UhzDmtsVHoWQj6hDSkkaBxtK8jdWQdya6CgqNkh3GrnWWYrLzfhDxFKLQ56f8NB4JZFDinz9KYrCfoelG_F996L-RtYtnV59679rE5vnTt08PV9UXX_i-ujuLMIdKZ51JztRgFcp7KISNn6eleuN80ZWw3bgscxVS2dRkOoazWD36F6x_h_TfYLP8-AgAA__-zG6EE"}}) + expectPlan([][]string{{"https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkEFL9DAQhu_fr_h4TwqBbfeYk-JpL63UFQ8SJDZDKLSZMklAWfrfpc1BV1jR47yT533CnBDYUWMnitDPqGEUZuGeYmRZo_Lg4N6gK4UhzDmtsVHoWQj6hDSkkaBxtK8jdWQdya6CgqNkh3GrnWWYrLzfhDxFKLQ56f8NB4JZFDinz9KYrCfoelG_F996L-RtYtnV59679rE5vnTt08PV9UXX_i-ujuLMIdKZ51JztRgFcp7KISNn6eleuN80ZWw3bgscxVS2dRkOoazWD36F6x_h_TfYLP8-AgAA__-zG6EE"}}) // Verify correctness. var res int diff --git a/pkg/sql/distsqlrun/flow_diagram.go b/pkg/sql/distsqlrun/flow_diagram.go index d7c76b80c46c..8f3d62aa91db 100644 --- a/pkg/sql/distsqlrun/flow_diagram.go +++ b/pkg/sql/distsqlrun/flow_diagram.go @@ -635,7 +635,7 @@ func encodeJSONToURL(json bytes.Buffer) (string, url.URL, error) { Scheme: "https", Host: "cockroachdb.github.io", Path: "distsqlplan/decode.html", - RawQuery: compressed.String(), + Fragment: compressed.String(), } return jsonStr, url, nil } diff --git a/pkg/sql/distsqlrun/flow_diagram_test.go b/pkg/sql/distsqlrun/flow_diagram_test.go index a058c9ab21ed..6e4d1494c5fe 100644 --- a/pkg/sql/distsqlrun/flow_diagram_test.go +++ b/pkg/sql/distsqlrun/flow_diagram_test.go @@ -165,7 +165,7 @@ func TestPlanDiagramIndexJoin(t *testing.T) { compareDiagrams(t, json, expected) - expectedURL := "https://cockroachdb.github.io/distsqlplan/decode.html?eJy0kjFr8zAQhvfvV3y8awS1pE6aNBXSoSlpt9aDah1B4EhGkiEl-L8XyyWJoSkpaUfd3XvP48N7-GDpwWwpQb2Ag0GAQaJm6GJoKKUQx9Y0uLQ7qIrB-a7PY7lmaEIkqD2yyy1B4dm8tbQmYyneVGCwlI1ry_qnsKWlt7TTZQgMqz6r_5ozLVAPDKHPx8Upmw1B8YGdwPnlcP7rcHE5XPwp_MgM0VIkO6dpsUA9fGF4H5z_FJTzSBfd1sT3g96dazPF0XChxWtfVbLR8qAtzzqLnxxsTakLPtFM5dzmavwgshuaDpBCHxt6jKEpf-T0XJVcKVhKeerK6bH0pVWOehrm14TFNWH5bfh2Fq6Gevj3EQAA__8R3DK5" + expectedURL := "https://cockroachdb.github.io/distsqlplan/decode.html#eJy0kjFr8zAQhvfvV3y8awS1pE6aNBXSoSlpt9aDah1B4EhGkiEl-L8XyyWJoSkpaUfd3XvP48N7-GDpwWwpQb2Ag0GAQaJm6GJoKKUQx9Y0uLQ7qIrB-a7PY7lmaEIkqD2yyy1B4dm8tbQmYyneVGCwlI1ry_qnsKWlt7TTZQgMqz6r_5ozLVAPDKHPx8Upmw1B8YGdwPnlcP7rcHE5XPwp_MgM0VIkO6dpsUA9fGF4H5z_FJTzSBfd1sT3g96dazPF0XChxWtfVbLR8qAtzzqLnxxsTakLPtFM5dzmavwgshuaDpBCHxt6jKEpf-T0XJVcKVhKeerK6bH0pVWOehrm14TFNWH5bfh2Fq6Gevj3EQAA__8R3DK5" if url.String() != expectedURL { t.Errorf("expected `%s` got `%s`", expectedURL, &url) } diff --git a/pkg/sql/logictest/testdata/planner_test/distsql_agg b/pkg/sql/logictest/testdata/planner_test/distsql_agg index 55f6acfbfce3..177a193f44ff 100644 --- a/pkg/sql/logictest/testdata/planner_test/distsql_agg +++ b/pkg/sql/logictest/testdata/planner_test/distsql_agg @@ -31,188 +31,188 @@ NULL /1 {1} 1 query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslE1vozAQhu_7K1bvaVeyFAzki1P2mMM2VdqeKg4uHiGkBCPbSK0i_nsFHAJRYqjgaJt3nnmMNRfkStKTOJNB9A4OBh8MARhCMCwRMxRaJWSM0vUnbWAvPxF5DFlelLbejhkSpQnRBTazJ0KEV_FxoiMJSXrhgUGSFdmpwRQ6Owv9tZPCCjAcShv93nHEFYMq7bWksSIlRLxi47H_0lRTKqzSi2Wf-vL2_8-O_32I8R9irtXLXGlJmmSvdFy5G-HezzoJep3w8ffMZ7znAWxHbzXlnv3xdv6MdgPYjt16il0w3i6Y0W4A27HbTLELx9uFM9oNYDt227kmwB3MkUyhckM3k-B-Za-eECRTaseJUaVO6FmrpMG0y0OTazYkGdue8naxz9ujusFumDvDfi_Mb8O-mzyADpzp0B0Op_S9dIZXbvJqCnntDG_c5M0U8tb9r7yBZ-J-ZLfsuPr1HQAA__-dVqdr +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslE1vozAQhu_7K1bvaVeyFAzki1P2mMM2VdqeKg4uHiGkBCPbSK0i_nsFHAJRYqjgaJt3nnmMNRfkStKTOJNB9A4OBh8MARhCMCwRMxRaJWSM0vUnbWAvPxF5DFlelLbejhkSpQnRBTazJ0KEV_FxoiMJSXrhgUGSFdmpwRQ6Owv9tZPCCjAcShv93nHEFYMq7bWksSIlRLxi47H_0lRTKqzSi2Wf-vL2_8-O_32I8R9irtXLXGlJmmSvdFy5G-HezzoJep3w8ffMZ7znAWxHbzXlnv3xdv6MdgPYjt16il0w3i6Y0W4A27HbTLELx9uFM9oNYDt227kmwB3MkUyhckM3k-B-Za-eECRTaseJUaVO6FmrpMG0y0OTazYkGdue8naxz9ujusFumDvDfi_Mb8O-mzyADpzp0B0Op_S9dIZXbvJqCnntDG_c5M0U8tb9r7yBZ-J-ZLfsuPr1HQAA__-dVqdr query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum((a-1)*1000 + (b-1)*100 + (c::INT-1)*10 + (d-1)) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUlMGOmzAQhu99impObOtqbSDZrE-s2h6QummVpqeKg4tHCCnByDZSq4h3r4BIgSgxVPTCzXj455_5xpoTFEriVhzRAP8JDAj4QCAAAiEQWEFCoNQqRWOUbn7pBLH8DZwSyIuyss11QiBVGoGfwOb2gMBhL34dcIdCon6kQECiFfmhtSl1fhT6TySFFUBgh4VEzd96nudF7APjnMfb_cM7Rik9n997XuQPIudjGwnacz98iUZhe__p88f49eXLAyQ1AVXZS93GigyBs5pM7-0lyzRmwir9uBq29v3Hqxex-zb-XZtL9qpQWqJGOUid1O5CGP23SoJBJWz6MNnShjnSW4_hes4w_ekI_aUhHOmth_BpDsJgOsJgaQhHeush3MxBGE5HGC4N4UhvPYTP_2sr37DZoSlVYfBqO9_OTJutjTLDbsUbVekUv2mVtjbd59dW115INLaLsu4jLrpQU2BfzJxifyBm12Lf7TxiHTjVoVsczql75RSv3c7rOc5PTvHG7byZ4_zsnhUdeSbuR3btndRv_gYAAP__6cMa6A== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUlMGOmzAQhu99impObOtqbSDZrE-s2h6QummVpqeKg4tHCCnByDZSq4h3r4BIgSgxVPTCzXj455_5xpoTFEriVhzRAP8JDAj4QCAAAiEQWEFCoNQqRWOUbn7pBLH8DZwSyIuyss11QiBVGoGfwOb2gMBhL34dcIdCon6kQECiFfmhtSl1fhT6TySFFUBgh4VEzd96nudF7APjnMfb_cM7Rik9n997XuQPIudjGwnacz98iUZhe__p88f49eXLAyQ1AVXZS93GigyBs5pM7-0lyzRmwir9uBq29v3Hqxex-zb-XZtL9qpQWqJGOUid1O5CGP23SoJBJWz6MNnShjnSW4_hes4w_ekI_aUhHOmth_BpDsJgOsJgaQhHeush3MxBGE5HGC4N4UhvPYTP_2sr37DZoSlVYfBqO9_OTJutjTLDbsUbVekUv2mVtjbd59dW115INLaLsu4jLrpQU2BfzJxifyBm12Lf7TxiHTjVoVsczql75RSv3c7rOc5PTvHG7byZ4_zsnhUdeSbuR3btndRv_gYAAP__6cMa6A== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), count(a), max(a) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lEtr6zAQhff3V1xmdS8IYtnOy6uErrJIUvKAQjFFtQZjSCwjydAS_N-L7dLYIZYNUXd6HX3nMMNcIBUcN-yMCoJXoEDABQIeEPCBwBhCApkUESolZPmkFqz4BwQOgSTNcl0ehwQiIRGCC-hEnxACOLD3E-6QcZQjBwhw1Cw5VZhMJmcmPxecaQYEtrkO_i4ohAUBkevrl0qzGCGgBRmOXcaxxJhpIUfjNnV_XP9b0P9A4Gl73By-1-vlS7Xqgrud8CszT4XkKJG3gGFhtkedLn_74_ptVTp0fxx63Q69lkM6vCrUYlV6sI3YE_tVcYdndi1m7sE2Mk_tZ_aGZ_YsZu7BNjLP7Gf2h2f2LWbuwTYyz3934tyB71BlIlV4M3nu_-yUEwl5jPX4UiKXET5LEVWYerutdNUBR6XrW1pvVml9VRpsiqlR7LbE9Fbsmsk9aM-o9s1i_xHfY6N4YiZPHiFPjeKZmTx7hDw318rpaRNzk92yw-LPVwAAAP__oyXFFg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lEtr6zAQhff3V1xmdS8IYtnOy6uErrJIUvKAQjFFtQZjSCwjydAS_N-L7dLYIZYNUXd6HX3nMMNcIBUcN-yMCoJXoEDABQIeEPCBwBhCApkUESolZPmkFqz4BwQOgSTNcl0ehwQiIRGCC-hEnxACOLD3E-6QcZQjBwhw1Cw5VZhMJmcmPxecaQYEtrkO_i4ohAUBkevrl0qzGCGgBRmOXcaxxJhpIUfjNnV_XP9b0P9A4Gl73By-1-vlS7Xqgrud8CszT4XkKJG3gGFhtkedLn_74_ptVTp0fxx63Q69lkM6vCrUYlV6sI3YE_tVcYdndi1m7sE2Mk_tZ_aGZ_YsZu7BNjLP7Gf2h2f2LWbuwTYyz3934tyB71BlIlV4M3nu_-yUEwl5jPX4UiKXET5LEVWYerutdNUBR6XrW1pvVml9VRpsiqlR7LbE9Fbsmsk9aM-o9s1i_xHfY6N4YiZPHiFPjeKZmTx7hDw318rpaRNzk92yw-LPVwAAAP__oyXFFg== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a+b), count(a+b), max(a+b) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lNuLozAUxt_3r1jO0y4bqIn25pNln_rQdukFFhZZMuYgQmskiTBD8X8f1GGqpUahzltuX37fxzmcK6RS4JZfUIP_DygQYEDABQIeEJhCSCBTMkKtpSqf1IK1eAXfIZCkWW7K45BAJBWCfwWTmDOCD0f-csY9coFq4gABgYYn5wqTqeTC1VsguOFAYI-pQOV_D-ivgEFYEJC5uX2sDY8RfFqQ4fBVHCuMuZFqMm2zD6fNj4D-BAK_d6ft8WO9Wf2tVl1w1gm_MfNUKoEKRQsYFnZ71Onydzht_q9Lh-zTodvt0G05pMNrQ0evTQ-8EX42fm3Y8ORs9OQ98Eby-fjJ3eHJ3dGT98AbyRfjJ_eGJ_dGT94DbyRffu0kegDfo85kqvFuIj3-2SknFYoY67GmZa4i_KNkVGHq7a7SVQcCtalvab1Zp_VVabApplYxa4npvZjZyT1o16r27GLvGd9Tq3hmJ8-eIc-t4oWdvHiGvLTXyulpE3uT3bPD4tt7AAAA__8XCc3v +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lNuLozAUxt_3r1jO0y4bqIn25pNln_rQdukFFhZZMuYgQmskiTBD8X8f1GGqpUahzltuX37fxzmcK6RS4JZfUIP_DygQYEDABQIeEJhCSCBTMkKtpSqf1IK1eAXfIZCkWW7K45BAJBWCfwWTmDOCD0f-csY9coFq4gABgYYn5wqTqeTC1VsguOFAYI-pQOV_D-ivgEFYEJC5uX2sDY8RfFqQ4fBVHCuMuZFqMm2zD6fNj4D-BAK_d6ft8WO9Wf2tVl1w1gm_MfNUKoEKRQsYFnZ71Onydzht_q9Lh-zTodvt0G05pMNrQ0evTQ-8EX42fm3Y8ORs9OQ98Eby-fjJ3eHJ3dGT98AbyRfjJ_eGJ_dGT94DbyRffu0kegDfo85kqvFuIj3-2SknFYoY67GmZa4i_KNkVGHq7a7SVQcCtalvab1Zp_VVabApplYxa4npvZjZyT1o16r27GLvGd9Tq3hmJ8-eIc-t4oWdvHiGvLTXyulpE3uT3bPD4tt7AAAA__8XCc3v query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum((a-1)*1000) + sum((b-1)*100) + sum((c::INT-1)*10) + sum(d-1) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUVc1qGzEQvvcpwpy8tUpWP3YcnRTaHgxNWtz0VPagWsNicFZGkqEl-N2LVzTeNbF2qXFgb7Mz_vz9aGCeobIGH_QTepA_gQIBBgQ4EBBAYAIFgY2zS_Teuv1PImBufoPMCayqzTbs2wWBpXUI8hnCKqwRJDzqX2tcoDbornMgYDDo1bqm2bjVk3Z_lNFBA4EFVgadvBop-oFKKecPj9l7mud5rMnVSLHW4NDnddUc_pspUXc_ff44v7_7AsWOgN2Gg1wfdIkg6Y70t3RXlg5LHay7nrQdff9xP1I0AxIr9lLxl0pkJ0WwkyIO3NvKOoMOTYu42KVl0vx_dDaeZKToWLFsrHg2VuKkA95yQPtvBh3IZnRYakQ-vdxmsP65soHk2mGpkevN5XLl_XPlA8m1w1Ij19nlchX9cxUDybXDUiPX27e5EK-IWKDf2Mrj0aV4_Z_z_QVBU2I8N95u3RK_ObusaeLn1xpXNwz6EKc0fsyrONoLbIJpEsxaYHoMZmnmDmqeRIs0WJyje5IET9PM03OYb5LgWZp5dg7zbfqt8o41SS_ZMXexe_c3AAD__2A6QFI= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUVc1qGzEQvvcpwpy8tUpWP3YcnRTaHgxNWtz0VPagWsNicFZGkqEl-N2LVzTeNbF2qXFgb7Mz_vz9aGCeobIGH_QTepA_gQIBBgQ4EBBAYAIFgY2zS_Teuv1PImBufoPMCayqzTbs2wWBpXUI8hnCKqwRJDzqX2tcoDbornMgYDDo1bqm2bjVk3Z_lNFBA4EFVgadvBop-oFKKecPj9l7mud5rMnVSLHW4NDnddUc_pspUXc_ff44v7_7AsWOgN2Gg1wfdIkg6Y70t3RXlg5LHay7nrQdff9xP1I0AxIr9lLxl0pkJ0WwkyIO3NvKOoMOTYu42KVl0vx_dDaeZKToWLFsrHg2VuKkA95yQPtvBh3IZnRYakQ-vdxmsP65soHk2mGpkevN5XLl_XPlA8m1w1Ij19nlchX9cxUDybXDUiPX27e5EK-IWKDf2Mrj0aV4_Z_z_QVBU2I8N95u3RK_ObusaeLn1xpXNwz6EKc0fsyrONoLbIJpEsxaYHoMZmnmDmqeRIs0WJyje5IET9PM03OYb5LgWZp5dg7zbfqt8o41SS_ZMXexe_c3AAD__2A6QFI= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), min(b), max(c), count(d) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lMuLqzAUxvf3zzgrC4EatS9Xlrty0fbSB1wYZMiYgwitkSTCDMX_fVAX1dJGB-ns8vry-z7O4VwhExy37IIK_DegQMABAi4Q8IDADCICuRQxKiVk9aQRhPwTfJtAmuWFro4jArGQCP4VdKrPCD4c2ccZ98g4yqkNBDhqlp5rTC7TC5NfAWeaQVQSEIW-faQ0SxB8WpLhsHWSSEyYFnI667IOp40V0AkQ2IRbK3Dq1fq_FbjV6u_utD1agTd5asN5auNGLzIhOUrkHXRUmo1S-ydOD6fNe9jj1e14pcPrQ0fXpwfWij1_ZX2c4Zmd0Zl7YK3Mi1dmdodndkdn7oG1Mi9fmdkbntkbnbkH1sq8-q3Z88DGHlUuMoV3M-jxz3Y1m5An2AwyJQoZ4z8p4hrTbHe1rj7gqHRzS5tNmDVXlcG2mBrFTkdM78WOmdyDdo1qzyz2xvieGcVzM3k-hrwwipdm8nIMeWWuld3TJuYmu2dH5Z_vAAAA___YNMV8 +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lMuLqzAUxvf3zzgrC4EatS9Xlrty0fbSB1wYZMiYgwitkSTCDMX_fVAX1dJGB-ns8vry-z7O4VwhExy37IIK_DegQMABAi4Q8IDADCICuRQxKiVk9aQRhPwTfJtAmuWFro4jArGQCP4VdKrPCD4c2ccZ98g4yqkNBDhqlp5rTC7TC5NfAWeaQVQSEIW-faQ0SxB8WpLhsHWSSEyYFnI667IOp40V0AkQ2IRbK3Dq1fq_FbjV6u_utD1agTd5asN5auNGLzIhOUrkHXRUmo1S-ydOD6fNe9jj1e14pcPrQ0fXpwfWij1_ZX2c4Zmd0Zl7YK3Mi1dmdodndkdn7oG1Mi9fmdkbntkbnbkH1sq8-q3Z88DGHlUuMoV3M-jxz3Y1m5An2AwyJQoZ4z8p4hrTbHe1rj7gqHRzS5tNmDVXlcG2mBrFTkdM78WOmdyDdo1qzyz2xvieGcVzM3k-hrwwipdm8nIMeWWuld3TJuYmu2dH5Z_vAAAA___YNMV8 # AVG is more tricky: we do two aggregations (for the sum and for the count) # and calculate the average at the end. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT avg(a+b+c::INT+d) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lEGLozAUx-_7KZZ3ammgJtpOJ6cse-phOkunPS2yZM1DhI6RJMIug999UA-jpUah9Va1f3-_vy-8D8i1woN8Rwv8N1AgwIBACAQiILCBmEBhdILWalP_pQ3s1T_gAYEsL0pX344JJNog8A9wmbsgcDjJvxc8olRo1gEQUOhkdmkwhcnepfkvlHQSCBwxV2j498VC0JVgy5UIOd8fTsuViCCuCOjSfXGskykCpxWZ7vIjTQ2m0mmz3vRV3s4vC0GXQODn6_lwan4PIdkg8otU5tooNKh6mLjyS9FgyOrt_PJnX3uxZedLCboWbNAz7HnS6WOic49pxKXzRbaPGhObXp_NXX_EpVP_6VH1w-n1w7nrj7h06u8eVT-aXj-au_6IS6f-8xw76gbyiLbQucWrXXX7zUG9w1Cl2C48q0uT4C-jkwbTXr42ueaGQuvap7S92Ofto1qwG6beMOuF6XWY-ckj6NCbjvzh6B7vjTe89ZO395CfvOGdn7y7h_zsn1Uwckz8h-yaHVffPgMAAP__6hnVzw== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lEGLozAUx-_7KZZ3ammgJtpOJ6cse-phOkunPS2yZM1DhI6RJMIug999UA-jpUah9Va1f3-_vy-8D8i1woN8Rwv8N1AgwIBACAQiILCBmEBhdILWalP_pQ3s1T_gAYEsL0pX344JJNog8A9wmbsgcDjJvxc8olRo1gEQUOhkdmkwhcnepfkvlHQSCBwxV2j498VC0JVgy5UIOd8fTsuViCCuCOjSfXGskykCpxWZ7vIjTQ2m0mmz3vRV3s4vC0GXQODn6_lwan4PIdkg8otU5tooNKh6mLjyS9FgyOrt_PJnX3uxZedLCboWbNAz7HnS6WOic49pxKXzRbaPGhObXp_NXX_EpVP_6VH1w-n1w7nrj7h06u8eVT-aXj-au_6IS6f-8xw76gbyiLbQucWrXXX7zUG9w1Cl2C48q0uT4C-jkwbTXr42ueaGQuvap7S92Ofto1qwG6beMOuF6XWY-ckj6NCbjvzh6B7vjTe89ZO395CfvOGdn7y7h_zsn1Uwckz8h-yaHVffPgMAAP__6hnVzw== # VARIANCE/STDDEV have three local (sqrdiff, sum, and count) and one final stage aggregations. # We calculate and render the variance/stddev at the end. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), round(stddev(b), 1) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lEGL2zAQhe_9FcucUhCsJTvZrE5amgYMbdIm2V6KKWo0mEDWCpIMLUv-e7F8WDusZUOc3iyNn76nN2JeodAKV_IFLfCfQIEAAwIxEEiAwBQyAiej92itNtUvtSBVf4BHBA7FqXTVdkZgrw0CfwV3cEcEDjv5-4gblArNfQQEFDp5OHrMyRxepPkrlHQSCKxLx-8EJYJBdiagS_d2qnUyR-D0TIaTn_LcYC6dNvfTNnj7_HUi6EcgsP2-WaTL5UQwv6r2_den9fNq57-7rLBOK28OykIbhQZVC5-dw2Zp1OV2ma6evvza7haLzz8mghERE5FUhQ0WCo1P787oslBVlXLO09Wu-wpx6wp0eB_puH3sITeimd26j2x4CGzcEHrIjRAebh1CPDyEeNwQesiNEOa3DiEZHkIybgg95EYIj_9zrL1jZYP2pAuLF-Pt_ZOjauyhyrGekVaXZo_fjN57TL1ce53fUGhdXaX1Ii3qUmWwKaZBMWuJ6aWYhck96DioTsLi5Brf06B4FibPriE_BMXzMHl-Dfkx3Kuo55mEH9klOzt_-BcAAP__ZTPiDA== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lEGL2zAQhe_9FcucUhCsJTvZrE5amgYMbdIm2V6KKWo0mEDWCpIMLUv-e7F8WDusZUOc3iyNn76nN2JeodAKV_IFLfCfQIEAAwIxEEiAwBQyAiej92itNtUvtSBVf4BHBA7FqXTVdkZgrw0CfwV3cEcEDjv5-4gblArNfQQEFDp5OHrMyRxepPkrlHQSCKxLx-8EJYJBdiagS_d2qnUyR-D0TIaTn_LcYC6dNvfTNnj7_HUi6EcgsP2-WaTL5UQwv6r2_den9fNq57-7rLBOK28OykIbhQZVC5-dw2Zp1OV2ma6evvza7haLzz8mghERE5FUhQ0WCo1P787oslBVlXLO09Wu-wpx6wp0eB_puH3sITeimd26j2x4CGzcEHrIjRAebh1CPDyEeNwQesiNEOa3DiEZHkIybgg95EYIj_9zrL1jZYP2pAuLF-Pt_ZOjauyhyrGekVaXZo_fjN57TL1ce53fUGhdXaX1Ii3qUmWwKaZBMWuJ6aWYhck96DioTsLi5Brf06B4FibPriE_BMXzMHl-Dfkx3Kuo55mEH9klOzt_-BcAAP__ZTPiDA== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), round(variance(b), 1) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lEGL2zAQhe_9FcucUhCsJTvZrE4K2wYMrdN6s70UU9RoMIGsFSQZWpb892L5sE5IZEOc3iyNn76nN2LeoNIKM_mKFvhPoECAAYEYCCRAYAoFgb3RG7RWm-aXVpCqP8AjAttqX7tmuyCw0QaBv4Hbuh0Ch7X8vcMcpUJzHwEBhU5udx6zN9tXaf4KJZ0EAqva8TtBiWBQHAjo2r2fap0sETg9kOHkRVkaLKXT5n56DH5--ToR9CMQeP6ef0qXy4lgftXs-6-n1Uu29t-XrLCLVt4d1JU2Cg2qI3xxCJul0SW3yzRbfPn1Y5Gni-zp80QwImIikqaUY6XQ-PzujK4r1VQp5zzN1pcvER9dgg7vJB23kz3kTjizW3eSDQ-BjRtCD7kTwsOtQ4iHhxCPG0IPuRPC_NYhJMNDSMYNoYfcCeHxfw62M1ZytHtdWTwZcOdPjprBh6rEdkpaXZsNfjN64zHtcuV1fkOhdW2Vtou0akuNwa6YBsXsSExPxSxM7kHHQXUSFifX-J4GxbMweXYN-SEonofJ82vIj-FeRT3PJPzITtnF4cO_AAAA__8b0-KL +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lEGL2zAQhe_9FcucUhCsJTvZrE4K2wYMrdN6s70UU9RoMIGsFSQZWpb892L5sE5IZEOc3iyNn76nN2LeoNIKM_mKFvhPoECAAYEYCCRAYAoFgb3RG7RWm-aXVpCqP8AjAttqX7tmuyCw0QaBv4Hbuh0Ch7X8vcMcpUJzHwEBhU5udx6zN9tXaf4KJZ0EAqva8TtBiWBQHAjo2r2fap0sETg9kOHkRVkaLKXT5n56DH5--ToR9CMQeP6ef0qXy4lgftXs-6-n1Uu29t-XrLCLVt4d1JU2Cg2qI3xxCJul0SW3yzRbfPn1Y5Gni-zp80QwImIikqaUY6XQ-PzujK4r1VQp5zzN1pcvER9dgg7vJB23kz3kTjizW3eSDQ-BjRtCD7kTwsOtQ4iHhxCPG0IPuRPC_NYhJMNDSMYNoYfcCeHxfw62M1ZytHtdWTwZcOdPjprBh6rEdkpaXZsNfjN64zHtcuV1fkOhdW2Vtou0akuNwa6YBsXsSExPxSxM7kHHQXUSFifX-J4GxbMweXYN-SEonofJ82vIj-FeRT3PJPzITtnF4cO_AAAA__8b0-KL query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT stddev(a+b+c::INT+d) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lNFq2zAUhu_3FONcJUTQSHbSVFcqywKGLd2SdDfDDC06mEBqBUmGjeJ3H7YHtU0jG4LubCt__o_viPMKuVa4lS9ogf8ECgQYEIiAQAwEFpASuBh9RGu1qX7SBBL1B_icwCm_FK76nBI4aoPAX8Gd3BmBw0H-PuMOpUJzNwcCCp08neuaizm9SPNXKOkkENhhrtDwj5OJoDPBpjMRcZ5sD9OZiCEtCejCvfVYJzMETksynuUxywxm0mlzt-ii7L_v1slmMxF0CgT2z1__P316et4e6udrAOwqwFtvkWuj0KDqlKalH5H2dG2S7eOXX_vDev35x0RQIhgR0XWwqANGx0-Jhp7SAEtLwTLMlNh4GSy0jAGWloz7MDKi8TKi0DIGWFoyVmFkxONlxKFlDLC0ZDyEX2bvAOzQXnRusbfU3v_nebXsUGXYbEarC3PEb0Yf65rm9anO1R8UWtec0uYlyZujCrAdpt4w64RpP8z8zQPVkTcd-8PxLdwLb3jpb17e0nzvDa_8zatbmh_8s5oPXBP_Jet3p-WHfwEAAP__suLiQQ== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lNFq2zAUhu_3FONcJUTQSHbSVFcqywKGLd2SdDfDDC06mEBqBUmGjeJ3H7YHtU0jG4LubCt__o_viPMKuVa4lS9ogf8ECgQYEIiAQAwEFpASuBh9RGu1qX7SBBL1B_icwCm_FK76nBI4aoPAX8Gd3BmBw0H-PuMOpUJzNwcCCp08neuaizm9SPNXKOkkENhhrtDwj5OJoDPBpjMRcZ5sD9OZiCEtCejCvfVYJzMETksynuUxywxm0mlzt-ii7L_v1slmMxF0CgT2z1__P316et4e6udrAOwqwFtvkWuj0KDqlKalH5H2dG2S7eOXX_vDev35x0RQIhgR0XWwqANGx0-Jhp7SAEtLwTLMlNh4GSy0jAGWloz7MDKi8TKi0DIGWFoyVmFkxONlxKFlDLC0ZDyEX2bvAOzQXnRusbfU3v_nebXsUGXYbEarC3PEb0Yf65rm9anO1R8UWtec0uYlyZujCrAdpt4w64RpP8z8zQPVkTcd-8PxLdwLb3jpb17e0nzvDa_8zatbmh_8s5oPXBP_Jet3p-WHfwEAAP__suLiQQ== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT variance(a+b+c::INT+d) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lNFq2zAUhu_3FONcJUTQSHbSVFcK3QKGzd3cdDfDDC06mEBqBUmBjZJ3H7YHtU0iG4LubCt__o_viPMGpVaYyle0wH8CBQIMCERAIAYCC8gJHI3eobXaVD9pAon6A3xOYF8eT676nBPYaYPA38Dt3QGBw1b-PmCGUqG5mwMBhU7uD3XN0exfpfkrlHQSCGRYKjT842Qi6Eyw6UxEnCfpdjoTMeRnAvrk3nuskwUCp2cynmVdFAYL6bS5W3RRnr9nn5LNZiLoFAg8v3z9__T49JJu6-drAOwqwHvvqdRGoUHVKc3PfkTa07VJ0vWXXz_WWbJOHz9PBCWCERFdR4s6aHT8nGjoOQ2wtCQsw8yJjZfBQssYYGnJuA8jIxovIwotY4ClJWMVRkY8XkYcWsYAS0vGQ_h1dgEgQ3vUpcXeWrv8z_Nq3aEqsNmNVp_MDr8ZvatrmtenOld_UGhdc0qbl6RsjirAdph6w6wTpv0w8zcPVEfedOwPx7dwL7zhpb95eUvzvTe88jevbml-8M9qPnBN_Jes352fP_wLAAD__2mq4sA= +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lNFq2zAUhu_3FONcJUTQSHbSVFcK3QKGzd3cdDfDDC06mEBqBUmBjZJ3H7YHtU0iG4LubCt__o_viPMGpVaYyle0wH8CBQIMCERAIAYCC8gJHI3eobXaVD9pAon6A3xOYF8eT676nBPYaYPA38Dt3QGBw1b-PmCGUqG5mwMBhU7uD3XN0exfpfkrlHQSCGRYKjT842Qi6Eyw6UxEnCfpdjoTMeRnAvrk3nuskwUCp2cynmVdFAYL6bS5W3RRnr9nn5LNZiLoFAg8v3z9__T49JJu6-drAOwqwHvvqdRGoUHVKc3PfkTa07VJ0vWXXz_WWbJOHz9PBCWCERFdR4s6aHT8nGjoOQ2wtCQsw8yJjZfBQssYYGnJuA8jIxovIwotY4ClJWMVRkY8XkYcWsYAS0vGQ_h1dgEgQ3vUpcXeWrv8z_Nq3aEqsNmNVp_MDr8ZvatrmtenOld_UGhdc0qbl6RsjirAdph6w6wTpv0w8zcPVEfedOwPx7dwL7zhpb95eUvzvTe88jevbml-8M9qPnBN_Jes352fP_wLAAD__2mq4sA= # Test various combinations of aggregation functions and verify that the # aggregation processors are set up correctly. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), avg(b), sum(c), avg(d), stddev(a), variance(b), sum(a+b+c::INT+d) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUVU2L4kAQve-vCHVSpsB0J37lVDKOENhxdv2YyyJD1i5EcNLSibDL4H9fkjhrdNdOQBC8VXf1q_fqdUF9QKwVj6N3TiD4AQIQJCB4gOADQhsWCFujl5wk2mRPCkCofkHgIqzj7S7NrhcIS20Ygg9I1-mGIYBZ9HPDE44Um5YLCIrTaL3JabZm_R6Z36SiNAKECceKTeCQQIckOuShQz46jQaJB5LNB_KCIBzPmg_kw2KPoHfpkTdJoxVDIPZYX9tgtTK8ilJtWu1TadP5c4NEE7CIZBY9vszHs0Oc33p_I7-Uz-Pp98kwHI0ONQ4ZcZI51mk3L7YjL7Zz7GIXa6PYsDppYbG3Nyzc6o6n8-e3MFN-1umn6tKLTnYahePB17fpbDh8em1QF0kg9Y6J18EkHIwfnxrUR5JYqirc5j8D0Pr8f2q3qIMOddGhHjrUv-iWd-KWqD-Y4taDWaGt9E-dexhMWd9qeWurK7SVrO7eg9Vefau9W1tdoa1kde8erPbrW-3f2uoKbSWr-_dgdcWinnCy1XHCZxvu_5XdbPOxWnGxJhO9M0v-ZvQypymOLzkuv1CcpEVWFIcwLlKZwDJYWMHyBCzOwdLOXEHtWdG-Hexfo7ttBXfszJ1rmLtWcM_O3LuGuW__K7diTOxDds692H_5EwAA__8tCWoA +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUVU2L4kAQve-vCHVSpsB0J37lVDKOENhxdv2YyyJD1i5EcNLSibDL4H9fkjhrdNdOQBC8VXf1q_fqdUF9QKwVj6N3TiD4AQIQJCB4gOADQhsWCFujl5wk2mRPCkCofkHgIqzj7S7NrhcIS20Ygg9I1-mGIYBZ9HPDE44Um5YLCIrTaL3JabZm_R6Z36SiNAKECceKTeCQQIckOuShQz46jQaJB5LNB_KCIBzPmg_kw2KPoHfpkTdJoxVDIPZYX9tgtTK8ilJtWu1TadP5c4NEE7CIZBY9vszHs0Oc33p_I7-Uz-Pp98kwHI0ONQ4ZcZI51mk3L7YjL7Zz7GIXa6PYsDppYbG3Nyzc6o6n8-e3MFN-1umn6tKLTnYahePB17fpbDh8em1QF0kg9Y6J18EkHIwfnxrUR5JYqirc5j8D0Pr8f2q3qIMOddGhHjrUv-iWd-KWqD-Y4taDWaGt9E-dexhMWd9qeWurK7SVrO7eg9Vefau9W1tdoa1kde8erPbrW-3f2uoKbSWr-_dgdcWinnCy1XHCZxvu_5XdbPOxWnGxJhO9M0v-ZvQypymOLzkuv1CcpEVWFIcwLlKZwDJYWMHyBCzOwdLOXEHtWdG-Hexfo7ttBXfszJ1rmLtWcM_O3LuGuW__K7diTOxDds692H_5EwAA__8tCWoA query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), min(b), max(c), count(d), avg(a+b+c::INT+d), stddev(a+b), variance(c::INT+d) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUVk2L4kAQve-vCHWKWGA6iYnmVDKOEFgzu34MC4sMWVOI4CTSibDL4H9f0gGNMnYcvOitU_2e71W9gvYD0izhKH7nHILfIADBBgQHEFxA6MICYSuzJed5JktIRQiTvxBYCOt0uyvK8gJhmUmG4AOKdbFhCGAW_9nwhOOEZccChISLeL1RMlu5fo_lP0riIgaECacJy8AggQbZaJCDBrlomCaJNtmtNjlBEEazVrusqloJUrU2ubDYI2S74mglL-IVQyD2eL3dwWoleRUXmex0T91O52OTRAsQxmFkkq1Og18mOeXp6WUezUxyy7NCdmtVdZ7-nAzD0cgk74DxahjvBOMfMH4N47cuNmlfbPLY2y7NZMKSk5PGFnv9GIT1lTlM5-O38JNJHOqqz1EYDb6_TWfD4fOrST5SD6l_vHgdTMJB9PRskrCQhEASSubShlC3Qx4a5KNBvYsjck5GJK5fW3EHa9tgt5aX97hra1-fiX0HmTTYrWXiP24mzvWZOHeQSYPdWia9x83EvT4T9w4yabBby6T_uJk0_K-YcL7N0pzPnt7Pf9kqn2ROVly933m2k0v-IbOlkqk-XxRPFRLOi-pWVB9hWl2VButkoSXbJ2RxTrb1yg3Sjpbt6snuLb67WrKnV_ZuUfa15J5euXeLcl-fldWwJvolO9de7L_9DwAA__-_bpRO +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUVk2L4kAQve-vCHWKWGA6iYnmVDKOEFgzu34MC4sMWVOI4CTSibDL4H9f0gGNMnYcvOitU_2e71W9gvYD0izhKH7nHILfIADBBgQHEFxA6MICYSuzJed5JktIRQiTvxBYCOt0uyvK8gJhmUmG4AOKdbFhCGAW_9nwhOOEZccChISLeL1RMlu5fo_lP0riIgaECacJy8AggQbZaJCDBrlomCaJNtmtNjlBEEazVrusqloJUrU2ubDYI2S74mglL-IVQyD2eL3dwWoleRUXmex0T91O52OTRAsQxmFkkq1Og18mOeXp6WUezUxyy7NCdmtVdZ7-nAzD0cgk74DxahjvBOMfMH4N47cuNmlfbPLY2y7NZMKSk5PGFnv9GIT1lTlM5-O38JNJHOqqz1EYDb6_TWfD4fOrST5SD6l_vHgdTMJB9PRskrCQhEASSubShlC3Qx4a5KNBvYsjck5GJK5fW3EHa9tgt5aX97hra1-fiX0HmTTYrWXiP24mzvWZOHeQSYPdWia9x83EvT4T9w4yabBby6T_uJk0_K-YcL7N0pzPnt7Pf9kqn2ROVly933m2k0v-IbOlkqk-XxRPFRLOi-pWVB9hWl2VButkoSXbJ2RxTrb1yg3Sjpbt6snuLb67WrKnV_ZuUfa15J5euXeLcl-fldWwJvolO9de7L_9DwAA__-_bpRO # Verify that local and final aggregation is correctly shared and de-duplicated. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), stddev(a), avg(a) FILTER (WHERE a > 5), count(b), avg(b), variance(b) FILTER (WHERE b < 8), sum(b) FILTER (WHERE b < 8), stddev(b) FILTER (WHERE b > 2) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzsVk2L4kAQve-vCHVyocB0PjTm1DIqBGad3ejMZVeGrClEcNLSSWCXwf--JJk1iZN0Al48eBDt6nr1nu91Q79DJEJaBm8Ug_sTGCAYgGACggUINmwQjlJsKY6FzFoKgBf-AVdH2EfHNMnKG4StkATuOyT75EDgwjr4fSCfgpDkUAeEkJJgf8hpjnL_Fsi_PAySABB8ikKSrsYZapz9SnXdJNt1XW-5Ro0b2Scvbp2yWHQZRQE2JwSRJqWYOAl2BC47YX_B091O0i5IhBzadb2r528Dzr4CwuqHP_MWi4_Vw9Pzcv1_p-jRFt7jeu5r3KjuN1XNM8qsTTbLbqvsqNXOE-qdDRPshgl24wS71USj1cTSuzQSMiRJYc24zUltM9PbfF54y-nj62o9m81fBtxAzrBimPXx69XL_oRdW43OXeNy0MvU96bLh_mAO8gnyJl-7pp8pmMMOcs4c8ba6cwOoznkFmrcRo2PhvnXGDXuoMYnrR6aNQ9Z_5vDbuLmdAiuRDq635y2m2P0T924idQ7BFdSH99Tb0vd7J-6eROpdwiupO7cU29L3eqfunUTqXcIrqQ-uafe523UYKJP8VFEMV28kZon69nbicIdFQ-tWKRyS9-l2OY0xfIpx-WFkOKk2GXFwouKrUxgFcyUYKMGZpdgQ83cQW0q0ZYabF2j21aCR2rm0TXMYyXYUTM71zBP1FnpHcdEfcguuTenL_8CAAD__3F9IF8= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzsVk2L4kAQve-vCHVyocB0PjTm1DIqBGad3ejMZVeGrClEcNLSSWCXwf--JJk1iZN0Al48eBDt6nr1nu91Q79DJEJaBm8Ug_sTGCAYgGACggUINmwQjlJsKY6FzFoKgBf-AVdH2EfHNMnKG4StkATuOyT75EDgwjr4fSCfgpDkUAeEkJJgf8hpjnL_Fsi_PAySABB8ikKSrsYZapz9SnXdJNt1XW-5Ro0b2Scvbp2yWHQZRQE2JwSRJqWYOAl2BC47YX_B091O0i5IhBzadb2r528Dzr4CwuqHP_MWi4_Vw9Pzcv1_p-jRFt7jeu5r3KjuN1XNM8qsTTbLbqvsqNXOE-qdDRPshgl24wS71USj1cTSuzQSMiRJYc24zUltM9PbfF54y-nj62o9m81fBtxAzrBimPXx69XL_oRdW43OXeNy0MvU96bLh_mAO8gnyJl-7pp8pmMMOcs4c8ba6cwOoznkFmrcRo2PhvnXGDXuoMYnrR6aNQ9Z_5vDbuLmdAiuRDq635y2m2P0T924idQ7BFdSH99Tb0vd7J-6eROpdwiupO7cU29L3eqfunUTqXcIrqQ-uafe523UYKJP8VFEMV28kZon69nbicIdFQ-tWKRyS9-l2OY0xfIpx-WFkOKk2GXFwouKrUxgFcyUYKMGZpdgQ83cQW0q0ZYabF2j21aCR2rm0TXMYyXYUTM71zBP1FnpHcdEfcguuTenL_8CAAD__3F9IF8= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), avg(DISTINCT a), variance(a) FILTER (WHERE a > 0) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8k8FruzAUx--_v0LeqT8I1KjdISel60Zgc8O6XjYPmXmI0BpJImwU__ehHjpLOxylO-Yln3w_PN7bQ6UkxmKHBtgrUCDgAQEfCARAYAEZgVqrHI1RunsyAFx-AHMJlFXd2K6cEciVRmB7sKXdIjBIxfsWExQS9dwFAhKtKLd9TK3LndCfoRRWAIEEK4maOSElTkjfGtf10WWM8TiFrCWgGnuIMVYUCIy25IzKwaCplJaoUY7Ss_aEbFQUGgthlZ4vxq7rl8dZSP8DgWhzP7vl65THy9QZSpso4VG8XHUvnDv-kK4SJ_TOSnsjaTq9f_TK_fOmq3hXVvGnq_hXVgmmqwR_OOAnVBI0taoMHg366Z_dbgFQFjhsi1GNzvFZq7yPGY5PPdcXJBo73NLhwKv-qhf8DtMf4ZsR7B7D3iXJ_iVwcAm8-BWctf--AgAA___gL8Aj +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8k8FruzAUx--_v0LeqT8I1KjdISel60Zgc8O6XjYPmXmI0BpJImwU__ehHjpLOxylO-Yln3w_PN7bQ6UkxmKHBtgrUCDgAQEfCARAYAEZgVqrHI1RunsyAFx-AHMJlFXd2K6cEciVRmB7sKXdIjBIxfsWExQS9dwFAhKtKLd9TK3LndCfoRRWAIEEK4maOSElTkjfGtf10WWM8TiFrCWgGnuIMVYUCIy25IzKwaCplJaoUY7Ss_aEbFQUGgthlZ4vxq7rl8dZSP8DgWhzP7vl65THy9QZSpso4VG8XHUvnDv-kK4SJ_TOSnsjaTq9f_TK_fOmq3hXVvGnq_hXVgmmqwR_OOAnVBI0taoMHg366Z_dbgFQFjhsi1GNzvFZq7yPGY5PPdcXJBo73NLhwKv-qhf8DtMf4ZsR7B7D3iXJ_iVwcAm8-BWctf--AgAA___gL8Aj query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), avg(a), count(a), stddev(a), variance(a) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lNFr4kAQxt_vr5B56sGA2SRam6eVWiFw1buofTlC2XOHINis7G7gjuL_fiQpNJG6CagPgpPJl9_37SzzDrmStBBvZCD6DQwQfEAIACEEhBGkCAettmSM0uUrtSCWfyHyEHb5obDl4xRhqzRB9A52Z_cEEazFnz0lJCTpoQcIkqzY7SvMQe_ehP7HpbACEJaFjQacQXpEUIX9_KSxIiOI2BH7Y6dZpikTVunhqE1dbZ7vOPsOCI_LzWL98X_1K5nF83lVnTPgnzXwyS1ypSVpki1oenRbZN45j6vN82tcuvTLah4vpj9eV-vZ7OnljgfIGTYbL9Mkni4en1qthHJJujxZHHA25D4Oql-AAx6ezRq0srL-M2ZXnHEHtnGA49vM2O-f279i7g5sI_f9bXIH_XMHV8zdgW3kntwmd9g_d3jF3B3YRu6H2--yLwwkZA4qN3Sy077-slfuOpIZ1YvRqEJv6adW2wpTl8tKVz2QZGzdZXUR53WrNNgUM6fYb4nZqdh3kzvQgVMdusXhJb5HTvHYTR5fQr53iidu8uQS8oN7Vl7HNXFfslN2evz2PwAA__8p29yC +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lNFr4kAQxt_vr5B56sGA2SRam6eVWiFw1buofTlC2XOHINis7G7gjuL_fiQpNJG6CagPgpPJl9_37SzzDrmStBBvZCD6DQwQfEAIACEEhBGkCAettmSM0uUrtSCWfyHyEHb5obDl4xRhqzRB9A52Z_cEEazFnz0lJCTpoQcIkqzY7SvMQe_ehP7HpbACEJaFjQacQXpEUIX9_KSxIiOI2BH7Y6dZpikTVunhqE1dbZ7vOPsOCI_LzWL98X_1K5nF83lVnTPgnzXwyS1ypSVpki1oenRbZN45j6vN82tcuvTLah4vpj9eV-vZ7OnljgfIGTYbL9Mkni4en1qthHJJujxZHHA25D4Oql-AAx6ezRq0srL-M2ZXnHEHtnGA49vM2O-f279i7g5sI_f9bXIH_XMHV8zdgW3kntwmd9g_d3jF3B3YRu6H2--yLwwkZA4qN3Sy077-slfuOpIZ1YvRqEJv6adW2wpTl8tKVz2QZGzdZXUR53WrNNgUM6fYb4nZqdh3kzvQgVMdusXhJb5HTvHYTR5fQr53iidu8uQS8oN7Vl7HNXFfslN2evz2PwAA__8p29yC query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), avg(b), sum(a), sum(a), avg(b) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lE2L2zAQhu_9FWFOLQhiyc6XTy495ZCk5ONUTNFagzEklpFk2CX4vy-2WGKHRDbEe5uR9OqZVyPmCrkUuOUX1BD-AwoEGBDwgUAABGYQEyiUTFBrqeojVrAW7xB6BLK8KE29HBNIpEIIr2Ayc0YI4cjfzrhHLlBNPSAg0PDs3GAKlV24-ogENxwI7EoTTiJKIgZxRUCW5narNjxFCGlFhpN_p6nClBupprMu-HDa_IzoLyA2YnX0Z3faHpv4GZw9hd-YZS6VQIWiA4wrd3nU66_vcNr8X9cV-nW2x1ygap5rErFp5BMbfqVPTfgdE3R47-i4veshtx5nPn7v2HDbbFzbPeSW7cX4tv3htv1xbfeQW7aX49sOhtsOxrXdQ27ZXn3vgHoA36MuZK7xblA9vtmrBxiKFO2007JUCf5VMmkwNt01umZBoDZ2l9pkndutusC2mDrFrCOm92LmJvegfac6cIuDV-qeOcVzN3n-CnnhFC_d5OUr5JW7V17PN3F_snt2XP34DAAA__-46tBl +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lE2L2zAQhu_9FWFOLQhiyc6XTy495ZCk5ONUTNFagzEklpFk2CX4vy-2WGKHRDbEe5uR9OqZVyPmCrkUuOUX1BD-AwoEGBDwgUAABGYQEyiUTFBrqeojVrAW7xB6BLK8KE29HBNIpEIIr2Ayc0YI4cjfzrhHLlBNPSAg0PDs3GAKlV24-ogENxwI7EoTTiJKIgZxRUCW5narNjxFCGlFhpN_p6nClBupprMu-HDa_IzoLyA2YnX0Z3faHpv4GZw9hd-YZS6VQIWiA4wrd3nU66_vcNr8X9cV-nW2x1ygap5rErFp5BMbfqVPTfgdE3R47-i4veshtx5nPn7v2HDbbFzbPeSW7cX4tv3htv1xbfeQW7aX49sOhtsOxrXdQ27ZXn3vgHoA36MuZK7xblA9vtmrBxiKFO2007JUCf5VMmkwNt01umZBoDZ2l9pkndutusC2mDrFrCOm92LmJvegfac6cIuDV-qeOcVzN3n-CnnhFC_d5OUr5JW7V17PN3F_snt2XP34DAAA__-46tBl query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT avg(c), sum(c), avg(d), sum(d) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lF-L4jAUxd_3U8h9WiFg80fH6VNkYEHYGRf_PC1lyZpLEZxGkhR2GfzuS1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zQonoXJs3vIT0HxPEye30N-Dvcq6ngm4Ud2zU7OX_4FAAD__6ls5F8= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT max(a), min(b) FROM data HAVING min(b) > 2] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslEGLozAUx-_7KeSdZiAwJtpOJyfnsuBh2qX0sLDrIWseIlgjSYRdit99UQ_V0kahOZr4z-_98sK7QK0k7sUZDfBfQIEAAwIREIiBwAYyAo1WORqjdP_LGEjlX-AhgbJuWtsvZwRypRH4BWxpKwQOJ_GnwiMKifotBAISrSirAdPo8iz0v0QKK4DAobU8SBhJKGQdAdXa66nGigKB046sJ38WhcZCWKXfNnPwV7p_SegrEPj6_PmSsNeHQPYQeOW0tdISNcoZJOvcJdFwqSYC38vKouZBQoPfbRhGGDDOebo_rbutaFY8Xd8n6rdPC-TJpWz99ImtV2V-VRfIE9V3P6rRetXIr-oCeaK686Mar1eN_aoukCeqH_4HzR3gEU2jaoM3A-f-yWE_iFAWOE4to1qd4w-t8gEzfh6G3LAg0dhxl44faT1u9QVOw9QZZrMwvQ0zN3kBHTnTsTscP1P3xhneusnbZ8jvzvDOTd49Q_5w9ypceCbuR3bLzrpv_wMAAP__Cj_BNw== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslEGLozAUx-_7KeSdZiAwJtpOJyfnsuBh2qX0sLDrIWseIlgjSYRdit99UQ_V0kahOZr4z-_98sK7QK0k7sUZDfBfQIEAAwIREIiBwAYyAo1WORqjdP_LGEjlX-AhgbJuWtsvZwRypRH4BWxpKwQOJ_GnwiMKifotBAISrSirAdPo8iz0v0QKK4DAobU8SBhJKGQdAdXa66nGigKB046sJ38WhcZCWKXfNnPwV7p_SegrEPj6_PmSsNeHQPYQeOW0tdISNcoZJOvcJdFwqSYC38vKouZBQoPfbRhGGDDOebo_rbutaFY8Xd8n6rdPC-TJpWz99ImtV2V-VRfIE9V3P6rRetXIr-oCeaK686Mar1eN_aoukCeqH_4HzR3gEU2jaoM3A-f-yWE_iFAWOE4to1qd4w-t8gEzfh6G3LAg0dhxl44faT1u9QVOw9QZZrMwvQ0zN3kBHTnTsTscP1P3xhneusnbZ8jvzvDOTd49Q_5w9ypceCbuR3bLzrpv_wMAAP__Cj_BNw== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT (a) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslE2LqzAUhvf3V1ze7Q3UqP1y1cXddHN7KbMbXGTMoQitkSTCDMX_PmjAjmUaZZplEt885zmGc0WlJP0TFzLIXsHBEIMhAUMKhiVyhlqrgoxRuvvEBfbyHVnEUFZ1Y7vtnKFQmpBdYUt7JmR4EW9nOpKQpBcRGCRZUZ57TK3Li9AfOymsAMOhsdnvHUfeMqjG3q40VpwIGW_ZfOzf0tiyKuxiOWbuOreDlqRJemnxQ9oNotw994Q_yFtfSTz6YU3JqCY-v_E8YOMnsIPlKkjj4_mScUDJCewguQ4imcyXTAJKTmAHyU0QyXS-ZBpQcgI7SG6Dz4lvaEcytaoMjViPbo66IULyRG7oGNXogv5rVfQYtzz0uX5DkrHulLvFvnJHXYFfw9wbjkdhfh-O_eQJdOJNp_5w-kzdS2945SevniGvveGNn7x5hrz1_6to4pn4H9k9O29_fQYAAP__HHKzPg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslE2LqzAUhvf3V1ze7Q3UqP1y1cXddHN7KbMbXGTMoQitkSTCDMX_PmjAjmUaZZplEt885zmGc0WlJP0TFzLIXsHBEIMhAUMKhiVyhlqrgoxRuvvEBfbyHVnEUFZ1Y7vtnKFQmpBdYUt7JmR4EW9nOpKQpBcRGCRZUZ57TK3Li9AfOymsAMOhsdnvHUfeMqjG3q40VpwIGW_ZfOzf0tiyKuxiOWbuOreDlqRJemnxQ9oNotw994Q_yFtfSTz6YU3JqCY-v_E8YOMnsIPlKkjj4_mScUDJCewguQ4imcyXTAJKTmAHyU0QyXS-ZBpQcgI7SG6Dz4lvaEcytaoMjViPbo66IULyRG7oGNXogv5rVfQYtzz0uX5DkrHulLvFvnJHXYFfw9wbjkdhfh-O_eQJdOJNp_5w-kzdS2945SevniGvveGNn7x5hrz1_6to4pn4H9k9O29_fQYAAP__HHKzPg== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT SUM (DISTINCT A) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslM9rgzAUx-_7K8o7bRCoUfvLU8d68bB2tN1peMjMQ4TWSBJho_i_DxXslDZK9ZjE7_fzvs_kXSARHLfsjAq8L6BAwAYCDhBwgcAMAgKpFCEqJWTxSSXw-Q94FoE4STNdbAcEQiERvAvoWJ8QPDiy7xPukXGUUwsIcNQsPpWYVMZnJn_XnGkGBHaZ9iZrCkFOQGT6aqk0ixA8mpP-2E2sdJyEejprMg3-9l3_q22WCMlRIm-4BvmNCl6jSGLEtJBT2gp--Hx_3viHo799O07W9OVuSU6jJNq_03TETndg607PH-y03T-WPWKsDmwda_FgLKd_LGfEWB3YOtbywVhu_1juiLE6sHWs1QjP_Yb_HlUqEoWtZ3_b2SrGAfIIq9mhRCZD_JAiLDHVclfqyg2OSlentFr4SXVUFPhfTI1iuyGmbbFtJnegHaPaNYvdIXXPjOK5mTwfQl4YxUszeTmEvDL_K6vjmpgvWZsd5E9_AQAA__9GDZ_K +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslM9rgzAUx-_7K8o7bRCoUfvLU8d68bB2tN1peMjMQ4TWSBJho_i_DxXslDZK9ZjE7_fzvs_kXSARHLfsjAq8L6BAwAYCDhBwgcAMAgKpFCEqJWTxSSXw-Q94FoE4STNdbAcEQiERvAvoWJ8QPDiy7xPukXGUUwsIcNQsPpWYVMZnJn_XnGkGBHaZ9iZrCkFOQGT6aqk0ixA8mpP-2E2sdJyEejprMg3-9l3_q22WCMlRIm-4BvmNCl6jSGLEtJBT2gp--Hx_3viHo799O07W9OVuSU6jJNq_03TETndg607PH-y03T-WPWKsDmwda_FgLKd_LGfEWB3YOtbywVhu_1juiLE6sHWs1QjP_Yb_HlUqEoWtZ3_b2SrGAfIIq9mhRCZD_JAiLDHVclfqyg2OSlentFr4SXVUFPhfTI1iuyGmbbFtJnegHaPaNYvdIXXPjOK5mTwfQl4YxUszeTmEvDL_K6vjmpgvWZsd5E9_AQAA__9GDZ_K query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT SUM (DISTINCT A), SUM (DISTINCT B) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslE_LozAQh-_7KcqcthCoifafJ5ftxcO2S9s9LR6yZhChNZJE2Jfid39Rwb5KG6X1aOJvnnmYMDfIpMA9v6IG_y9QIMCAgAsEPCCwhIhArmSMWktV_dIEQvEffIdAmuWFqY4jArFUCP4NTGouCD6c-b8LHpELVAsHCAg0PL3UmFylV64-AsENBwKHwvizgJKAQVQSkIW5V9WGJwg-Lcl48i7VJs1is1h2sXYEe4q4Vy4yqQQqFJ3CUfmgiR9JojDhRqoF7emf_vz6vgtP53D_8zwL6BxI74jNn3bpdrqk40dApx3BALkdwer1EbDxcmxauQFyK7d-Xc4dL-dOKzdAbuU2r8t54-W8aeUGyK3cdprN8ABxRJ3LTGNvQzyu7FSbA0WCzZrRslAx_lYyrjHN56HO1QcCtWluafMRZs1V1eDXMLWGWSdM-2FmJw-gXWvas4e9d_peWsMrO3n1DnltDW_s5M075K19Vs7AM7E_sj47Kr99BgAA__8FF6qg +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslE_LozAQh-_7KcqcthCoifafJ5ftxcO2S9s9LR6yZhChNZJE2Jfid39Rwb5KG6X1aOJvnnmYMDfIpMA9v6IG_y9QIMCAgAsEPCCwhIhArmSMWktV_dIEQvEffIdAmuWFqY4jArFUCP4NTGouCD6c-b8LHpELVAsHCAg0PL3UmFylV64-AsENBwKHwvizgJKAQVQSkIW5V9WGJwg-Lcl48i7VJs1is1h2sXYEe4q4Vy4yqQQqFJ3CUfmgiR9JojDhRqoF7emf_vz6vgtP53D_8zwL6BxI74jNn3bpdrqk40dApx3BALkdwer1EbDxcmxauQFyK7d-Xc4dL-dOKzdAbuU2r8t54-W8aeUGyK3cdprN8ABxRJ3LTGNvQzyu7FSbA0WCzZrRslAx_lYyrjHN56HO1QcCtWluafMRZs1V1eDXMLWGWSdM-2FmJw-gXWvas4e9d_peWsMrO3n1DnltDW_s5M075K19Vs7AM7E_sj47Kr99BgAA__8FF6qg query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT a, b FROM data WHERE (a + b + c::INT) = 27 ORDER BY a,b] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzElE-LozAYxu_7KeQ9zdDAmGj_TGDBw7LQy3QpvS0esualCNZIEmGX4ndfNGDXso2CHbyUanzye_i9IVcolcQPcUED_CdQIMCAQAQEYiCwhpRApVWGxijdfuICe_kbeEggL6vatq9TApnSCPwKNrcFAoeT-FXgEYVE_RYCAYlW5EWHqXR-EfpPIoUVQOB7XljUPHh5SWiwChL22v5GnO8_Tq_B14BtefcfCBxqy4OEkoRB2hBQtb0VMFacEThtyPSS33Jj8zKzb-thQ4cgcNASNcoxJnvIvKGU2-qesyIJW0Ha-MrRcFa7aNCOTh8bXWxsIyV7M5snjo1NF8MWEzNSshezfaKYaLqYaDExIyV7Mbsniomni4kXEzNSshfz_kk34H-YRzSVKg0OiI92DturEeUZ3XVqVK0z_KFV1mHc46HLdS8kGutWqXvYl26pLfhvmHrDbBCm92HmJ4-gI2869ofjOb3X3vDGT97MIW-94Z2fvJtDfvfPKhw5Jv5Dds9Omy9_AwAA__9hte_R +https://cockroachdb.github.io/distsqlplan/decode.html#eJzElE-LozAYxu_7KeQ9zdDAmGj_TGDBw7LQy3QpvS0esualCNZIEmGX4ndfNGDXso2CHbyUanzye_i9IVcolcQPcUED_CdQIMCAQAQEYiCwhpRApVWGxijdfuICe_kbeEggL6vatq9TApnSCPwKNrcFAoeT-FXgEYVE_RYCAYlW5EWHqXR-EfpPIoUVQOB7XljUPHh5SWiwChL22v5GnO8_Tq_B14BtefcfCBxqy4OEkoRB2hBQtb0VMFacEThtyPSS33Jj8zKzb-thQ4cgcNASNcoxJnvIvKGU2-qesyIJW0Ha-MrRcFa7aNCOTh8bXWxsIyV7M5snjo1NF8MWEzNSshezfaKYaLqYaDExIyV7Mbsniomni4kXEzNSshfz_kk34H-YRzSVKg0OiI92DturEeUZ3XVqVK0z_KFV1mHc46HLdS8kGutWqXvYl26pLfhvmHrDbBCm92HmJ4-gI2869ofjOb3X3vDGT97MIW-94Z2fvJtDfvfPKhw5Jv5Dds9Omy9_AwAA__9hte_R query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT a, b FROM data WHERE (a + b + c::INT) = 27 ORDER BY b,a] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzElU-L2zAQxe_9FGZOu0SQjOz8ExR8KIVcNmW7t5KDaw2LIWsFSYGWJd-92Aq4CY3Gi1N8CZHkp_fmxwO9Q200PRVv5ED9AAQBEgSkICADAXPYCThYU5JzxjafBMFG_wI1E1DVh6NvtncCSmMJ1Dv4yu8JFLwUP_f0TIUmO52BAE2-qPatzcFWb4X9nevCFyDga7X3ZFXy8JBjMkly-dj8pkptnl4ek8-JXKr2PwjYHr1KchS5hN1JgDn6LoDzxSuBwpPoH_K7sZ7sdH6ZL5cTkePkpoX8iMWXyvmqLv0UryiEMQRsrSZLmpsrvWnaeZlw1a1poumuGXwsXXaRDvtXA0erBhPyXI3FkGowFh18vGM1ZH_4cjT4TMgz_OUQ-IxFB1_eEX7aH346Gnwm5Bn-agh8xqKDn94RftYffjYafCbkGf56CHzGooOf_acX6R-mz-QOpnZ04Xjr5lnzVJF-pfC8OXO0JX2zpmxtwnLb6toNTc6HUwyLTR2OmoB_izEqlnGxjIrTCzFei9N47EXcOouq53HxPCpmnBdDhl5Gxau48yoqXsfF6yGxkekYV7J4y5CpGQ7qGTJFyxjzeNOQqRrGu3adfXf69CcAAP__T-n1cg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzElU-L2zAQxe_9FGZOu0SQjOz8ExR8KIVcNmW7t5KDaw2LIWsFSYGWJd-92Aq4CY3Gi1N8CZHkp_fmxwO9Q200PRVv5ED9AAQBEgSkICADAXPYCThYU5JzxjafBMFG_wI1E1DVh6NvtncCSmMJ1Dv4yu8JFLwUP_f0TIUmO52BAE2-qPatzcFWb4X9nevCFyDga7X3ZFXy8JBjMkly-dj8pkptnl4ek8-JXKr2PwjYHr1KchS5hN1JgDn6LoDzxSuBwpPoH_K7sZ7sdH6ZL5cTkePkpoX8iMWXyvmqLv0UryiEMQRsrSZLmpsrvWnaeZlw1a1poumuGXwsXXaRDvtXA0erBhPyXI3FkGowFh18vGM1ZH_4cjT4TMgz_OUQ-IxFB1_eEX7aH346Gnwm5Bn-agh8xqKDn94RftYffjYafCbkGf56CHzGooOf_acX6R-mz-QOpnZ04Xjr5lnzVJF-pfC8OXO0JX2zpmxtwnLb6toNTc6HUwyLTR2OmoB_izEqlnGxjIrTCzFei9N47EXcOouq53HxPCpmnBdDhl5Gxau48yoqXsfF6yGxkekYV7J4y5CpGQ7qGTJFyxjzeNOQqRrGu3adfXf69CcAAP__T-n1cg== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT c, d, sum(a+c::INT) + avg(b+d) FROM data GROUP BY c, d] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUll9r4kAUxd_3U8h9aukseicT_-Rpyj4Jbbq0-rAsUlIzWKF1ZBJhS_G7LzGyRmPvNZgVfUsm-eXeuefMIZ8ws7EJo3eTQPAbEARIEOCBAAUCfBgJmDs7NkliXfZKDvTjPxC0BExn80WaLY8EjK0zEHxCOk3fDAQwiF7ezKOJYuOaLRAQmzSavq3KzN30PXIfOo7SCAQ8mllsXNDQnmhoJRoab7QXBP1wIBpa3mgFo6UAu0g3xZI0mhgIcCkOb-h2MnFmEqXWNf3tfjQKnW37Nvz1HD4MnsPh3d2VxuvSksyWnob3V9r7d6Wyqx8Pw3Cwut5udVP95aPxGiWv-wqPlpsdyS93tPnUYmZdbJy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Jw_8qT-JdpqKBl50L8K-v0rzxv_zLqrf3bqc-_3uH-9U7iX6ahgpbdC_GvV6d_vfP2L6Pe2r_d-vyrDvevOol_mYYKWvYuxL-qTv-q8_Yvo97av73_8--9p-CjSeZ2lpiD_qxb2fBNPDG5UolduLH56ex4VSa_fVhxq4XYJGn-FPOb_ix_lDVYhHEXxiIst2CsBneOgRGPov2j6B5NS3LgHj1wj4QVXVmRsGS09km6TcPtY4xCw4xRaJgzCkMzRmFoxigdcuBdeuDdY4zSozOhxYRCKVIqpQJNc7FA02wuMDgXDAzOCI6lYNmeu2TmTicLoznS0YKKKV4Kl0qi0zQnOk2zojM4JzqDc6LTuYpMsGIpYyqJTmcMMiGDpZSpJDpNc6LTNCs6g3OiMzgnOp2wkklYSf-07Yo-Wn77GwAA___JjMl9 query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT c, d, sum(a+c::INT) + avg(b+d) FROM data GROUP BY c, d ORDER BY c, d] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUl81u4koQhff3KVCtEtFXUG2bH686uiukxLlKYDEaocjBLYKU0KhtpIki3n1kfgYTQ5U9thDsjMnpU11V31H4grmJdBB-6Bj8n4AgQIIABwS4IMCDsYCFNRMdx8amf7IRDKJf4LcFzOaLZZK-HguYGKvB_4Jklrxr8GEYvr7rJx1G2rbaICDSSTh7X9ss7OwjtJ8qCpMQBDzpeaSt31COaChXNBQ2leP7g2AoGko2lQvjlQCzTPZmcRJONfi4EsULuptOrZ6GibEt77AehUKl174LfrwEj8OXYHR_f6PwNvdKpq-eRw83yvnz5KZP_z2OguH6-bDUvfvrZ-MtjN-OGY9X-xvJkzfaH7WcGxtpq6ODw9anEHfGdt2Xfh49vAzSa3u32SliOjWxnWZLeSen55SZXmD-NYsWfptc3pRaF7eM4bOxibYtmWtbUyjZPOnhFRjgsfFlDj55e-l9m_jxEjoHJWBxTPEsmDIFZVa2cyWYYp2Y4mVjykxvi2mnPkwZwx2mubaVwVQWZ0SehRGmoM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QsjTEGZfeldCSNOnYw4l80IM70tI736GGEMd4zk2laGEbc4I-5ZGGEKyuxL_0oYcetkxL1sRpjpbRnp18cIY7hjJNe2v_1JdMTjSccLM491oV867XTAOprqzTbEZmkn-n9rJmubzcfHtW79ItJxsvkWNx8G881XaYFZMX4XY1YsD8RYTtyrIkankrqSt2S8Jdlwh264Q4pdWuySYo8u2yPFskNbd0h1lxZ3q2wZLWYmTYu5LWPUlby5LeuRDe_TDe_TmdBmQoGOFGbPMEfXoblkzHN4lYokWs3lAq1mQ4mRV3PnFgbpaEEmW5AOF_QYOR0v3M7Q8YJMvmClgGHU3NSqRQwnr-bO7gydMsjEDNI5I5mckZVyRtI5I5mckZVyhlEzU2PU3M5w8mru7L8_dM5IJmcknTOSyRlZLmfGq39-BwAA___m0NA1 # There should be no "by hash" routers if there is a single stream. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT c, d, sum(a+c::INT) + avg(b+d) FROM data WHERE a > 9 GROUP BY c, d] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkkFrs0AQhu_fr5A5JWQ-4mp62dPkVAKpKWlSKEXC1h1ESFzZ3UBL8L8X3UNjS217nHfmGR8dL1AbzZk6sQP5DAIQbiBHaKwp2DljuzgMrfQryBihqpuz7-IcoTCWQV7AV_7IICEz_00zTwBBs1fVsR9rEczZf0DOq5JBpi1eLRbji3fq5chbVprtPB6sh8ZWJ2XfSCuvAGHLtWYrI0oxogVGJGaUSrnKdhhRMqMFfCck_iK0LEvLpfLGzsXQhwRS9wWW2dMh2-wO2X69npCYfomSLnrY300o7ZuPtxNaTK9fQXTKGFE6pp0MtH840JZdY2rHv7pQ3OYIrEsOP4EzZ1vwvTVF_5hQbnquDzQ7H7ppKFZ1aHWC17AYhZNxOBmF409w3v57DwAA__8Wy-lU +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkkFrs0AQhu_fr5A5JWQ-4mp62dPkVAKpKWlSKEXC1h1ESFzZ3UBL8L8X3UNjS217nHfmGR8dL1AbzZk6sQP5DAIQbiBHaKwp2DljuzgMrfQryBihqpuz7-IcoTCWQV7AV_7IICEz_00zTwBBs1fVsR9rEczZf0DOq5JBpi1eLRbji3fq5chbVprtPB6sh8ZWJ2XfSCuvAGHLtWYrI0oxogVGJGaUSrnKdhhRMqMFfCck_iK0LEvLpfLGzsXQhwRS9wWW2dMh2-wO2X69npCYfomSLnrY300o7ZuPtxNaTK9fQXTKGFE6pp0MtH840JZdY2rHv7pQ3OYIrEsOP4EzZ1vwvTVF_5hQbnquDzQ7H7ppKFZ1aHWC17AYhZNxOBmF409w3v57DwAA__8Wy-lU query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), sum(b), sum(c) FROM data GROUP BY d HAVING sum(a+b) > 10] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMll1r4kwUx--fTxHOVcszS3MyidVcRfYFBKuL214su1JSc7CCzcgkgS3F774k2a1Rt3NSRiFXji-_nHPm9-fgC6QqoUn8RBmEPwBBgAcCJAjwQUAAcwEbrRaUZUqXP6mBUfILQlfAKt0UefnxXMBCaYLwBfJVviYI4TZ-WNOM4oT0lQsCEsrj1boqs9Grp1g_R0mcxyBgRmlCOnQiXzgR_h955YtwqlcJ860AVeS7QlkeLwlC3Ir2zQyXS03LOFf6KtjvJSpn_nZ3cxF5l39P8vXkv56C8jScfL-fTG_vJ3fj8UWElwfN7eo9PDuPcfZ4UCqA-XY3gPfmALvnFKnSCWlK9p5UPcUwIrpHhf9MgZfstF9W67yygc7PwnUlOeiGYfjp88fRzXAMAqZFHpZyIiki_0098rTTTdQHtbnC4OCX_67t79XG9jnFs-eUaaYhsdfNnOIpc4pdy6nXPive2bPCNNO4yOtuZsU7ZVa8rmVFts-KPHtWmGYaF9nvZlbkKbMiu5YVv31W_LNnhWmmcZGDbmbFP2VW_K5lhfkrO6Nso9KMWv0TcsvpKVlSfVWZKvSCvmq1qMrUb6cVV32QUJbX32L9ZpTWX5UNNmE8hLEJe3swvg_u2cADGxit-sbATHvG-5ZmWJpl9cy2fCMdmOHARrUZZlSbYUa1GeZUMzSjumej-toI982y-jayzDAjywwzsswwJ4uhGVkDG1nIbFFujdrtUbtFardJLVep3S5Fq2WKzDb1GWlH6_Rd0sw0J81Mc9LMNCuNwTlpR0vVKG2-_e93AAAA__9zMYDa +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMll1r4kwUx--fTxHOVcszS3MyidVcRfYFBKuL214su1JSc7CCzcgkgS3F774k2a1Rt3NSRiFXji-_nHPm9-fgC6QqoUn8RBmEPwBBgAcCJAjwQUAAcwEbrRaUZUqXP6mBUfILQlfAKt0UefnxXMBCaYLwBfJVviYI4TZ-WNOM4oT0lQsCEsrj1boqs9Grp1g_R0mcxyBgRmlCOnQiXzgR_h955YtwqlcJ860AVeS7QlkeLwlC3Ir2zQyXS03LOFf6KtjvJSpn_nZ3cxF5l39P8vXkv56C8jScfL-fTG_vJ3fj8UWElwfN7eo9PDuPcfZ4UCqA-XY3gPfmALvnFKnSCWlK9p5UPcUwIrpHhf9MgZfstF9W67yygc7PwnUlOeiGYfjp88fRzXAMAqZFHpZyIiki_0098rTTTdQHtbnC4OCX_67t79XG9jnFs-eUaaYhsdfNnOIpc4pdy6nXPive2bPCNNO4yOtuZsU7ZVa8rmVFts-KPHtWmGYaF9nvZlbkKbMiu5YVv31W_LNnhWmmcZGDbmbFP2VW_K5lhfkrO6Nso9KMWv0TcsvpKVlSfVWZKvSCvmq1qMrUb6cVV32QUJbX32L9ZpTWX5UNNmE8hLEJe3swvg_u2cADGxit-sbATHvG-5ZmWJpl9cy2fCMdmOHARrUZZlSbYUa1GeZUMzSjumej-toI982y-jayzDAjywwzsswwJ4uhGVkDG1nIbFFujdrtUbtFardJLVep3S5Fq2WKzDb1GWlH6_Rd0sw0J81Mc9LMNCuNwTlpR0vVKG2-_e93AAAA__9zMYDa query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT avg(a+b), c FROM data GROUP BY c, d HAVING c = d] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlt9r4kAQx9_vrwjz1HJ76OaH1cBBysGB0MbD6sNxiKRmsILNhk2EK8X_vSR5MKntTMoGyZuufjIz-_ky5BUSFWMYPWMG_j-QIMAGAQ4IcEGABysBqVYbzDKli79UwDT-D_5QwC5JD3lxvBKwURrBf4V8l-8RfFhEj3ucYxSjHgxBQIx5tNuXZVK9e470SxBHeQQCfu_2OWrfChzrpxUUdeeYxNWJsAJXWIH8HtiwOgpQh_xUMsujLYIvj6J9W7fbrcZtlCs98JpdBVIExfC34d91OFusw-Xd3VUgr8-O7OLoYXl_FTjFp1-zZbgoPzcbPNV8fLGeouzpo3Kr42kO-9M5To86JErHqDFuPKx8CjGpHHYz6sPyfj0thnWvG5YGlaRPDTndThaqHyodSO_dPz-u7TZqy_ahlRcMLdNWTeWo16GVXYZW9im0dvvg2BcMDtNW7Tpveh0cu8vg2H0KjtM-OM4Fg8O0VbvOca-D43QZHKdPwXHbB8e9YHCYtmrXOel1cNwug-P2KTjMG_Acs1QlGbZ6exoWk2O8xeqaMnXQG_yj1aYsU32dlVx5EGOWV7_K6ss0qX4qGqzD8j0s67DdgOXX4JEJPDGBpVHf0qNpm7xvh4YdWtaItuWStEfDnolqGmZU0zCjmoY51QzNqB6ZqL4h4TEta2wii4YZWTTMyKJhThZDM7ImJrIks0W5NWq2R80WqdkmNVylZrtUGi1TyWxTl5F2tk6_JI2mOWk0zUmjaVYag3PSzpYqKW11_PYWAAD__woOngg= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlt9r4kAQx9_vrwjz1HJ76OaH1cBBysGB0MbD6sNxiKRmsILNhk2EK8X_vSR5MKntTMoGyZuufjIz-_ky5BUSFWMYPWMG_j-QIMAGAQ4IcEGABysBqVYbzDKli79UwDT-D_5QwC5JD3lxvBKwURrBf4V8l-8RfFhEj3ucYxSjHgxBQIx5tNuXZVK9e470SxBHeQQCfu_2OWrfChzrpxUUdeeYxNWJsAJXWIH8HtiwOgpQh_xUMsujLYIvj6J9W7fbrcZtlCs98JpdBVIExfC34d91OFusw-Xd3VUgr8-O7OLoYXl_FTjFp1-zZbgoPzcbPNV8fLGeouzpo3Kr42kO-9M5To86JErHqDFuPKx8CjGpHHYz6sPyfj0thnWvG5YGlaRPDTndThaqHyodSO_dPz-u7TZqy_ahlRcMLdNWTeWo16GVXYZW9im0dvvg2BcMDtNW7Tpveh0cu8vg2H0KjtM-OM4Fg8O0VbvOca-D43QZHKdPwXHbB8e9YHCYtmrXOel1cNwug-P2KTjMG_Acs1QlGbZ6exoWk2O8xeqaMnXQG_yj1aYsU32dlVx5EGOWV7_K6ss0qX4qGqzD8j0s67DdgOXX4JEJPDGBpVHf0qNpm7xvh4YdWtaItuWStEfDnolqGmZU0zCjmoY51QzNqB6ZqL4h4TEta2wii4YZWTTMyKJhThZDM7ImJrIks0W5NWq2R80WqdkmNVylZrtUGi1TyWxTl5F2tk6_JI2mOWk0zUmjaVYag3PSzpYqKW11_PYWAAD__woOngg= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a+b), sum(a+b) FILTER (WHERE a < d), sum(a+b) FILTER (WHERE a = c) FROM data GROUP BY d] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlt-L2kAQx9_7V8g8nXSL2WziaaCQe2hBsF6x3kNp5ci5gyd4WdlE6HH4v5eYQuKPzuRYFZ80m3wy35nvlyFvkBqNo-QFM4h-gQQBPghQICAAASFMBaysmWGWGVs8UgID_QciT8AiXa3z4ngqYGYsQvQG-SJfIkQwSZ6WOMZEo-14IEBjniyW2zIru3hJ7GuskzwBAWNMNdqoFQeiFcuPsV_8_F57npqVR59jBdONALPOq3pZnswRIrkRzTXdzecW50lubCfclRQXrf94-HYT--3qX-vrYDj5Mm7F6shZMaC70c_H0f3kcfQwHN7Esr0ns6r89Np6TrLnvaIBTDdVK_5_W6nes06N1WhR77xp-xaiWekdFP7Xj2wf9q3226gkqtNKHJlPZtWR4d6Tx2sHO7Vl8_TJS6WP0VQzpHv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5Rbo2571G2Rum1Sx1Xqtkul0zKVzDYNGNMO1um7TKNpzjSa5kyjadY0BudMO1iqpGnTzYe_AQAA__8fu1Dn # Same query but restricted to a single range; no local aggregation stage. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a+b), sum(a+b) FILTER (WHERE a < d), sum(a+b) FILTER (WHERE a = c) FROM data WHERE a = 1 GROUP BY d] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkcFKxDAQhu8-RflPipFt0j0FhHhQWNBV6nrSHmIzlMJuU5IUlKXvLm0OuxW36qmdf-abfDB7NNbQWu_IQ76Cg0GgYGidLcl764Y4Dq3MB2TKUDdtF4a4YCitI8g9Qh22BIm1vbLtQoDBUND1dhzrGWwXDpAPuiLIrGdHi_n84o1-31JO2pBbpJP1aF290-5TGR00GHJqDDmZqCVLFL9UYvi8dWmalTG6VhlOOfH_ON1UlaNKB-sWfKqkhvr55eFciYvDX3K3ut_c5onKfsiWJ53ExOmXA-TkW9t4-tMF0r5gIFNRPLK3nSvpydlyfCaWjyM3BoZ8iN0sFqsmtgbBY5jPwmIeFrNw-g0u-rOvAAAA__8xY-EL +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkcFKxDAQhu8-RflPipFt0j0FhHhQWNBV6nrSHmIzlMJuU5IUlKXvLm0OuxW36qmdf-abfDB7NNbQWu_IQ76Cg0GgYGidLcl764Y4Dq3MB2TKUDdtF4a4YCitI8g9Qh22BIm1vbLtQoDBUND1dhzrGWwXDpAPuiLIrGdHi_n84o1-31JO2pBbpJP1aF290-5TGR00GHJqDDmZqCVLFL9UYvi8dWmalTG6VhlOOfH_ON1UlaNKB-sWfKqkhvr55eFciYvDX3K3ut_c5onKfsiWJ53ExOmXA-TkW9t4-tMF0r5gIFNRPLK3nSvpydlyfCaWjyM3BoZ8iN0sFqsmtgbBY5jPwmIeFrNw-g0u-rOvAAAA__8xY-EL # Verify the XOR execution plan query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT xor_agg(to_hex(a)::bytes) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lF2LozAUhu_3VyznahcCNWq_ctUuLKU328XpxQyDlIw5OEJrJInQofjfB_WiWtro4Hjpx5vnfTjhXCCVAv_xE2pgr0CBgAsEPCDgA4EphAQyJSPUWqrylzqwFWdgDoEkzXJTvg4JRFIhsAuYxBwRGOz52xED5ALVxAECAg1PjhUmU8mJq4-V4IYDgQBTgYr9NPLwjudfK_qbsT8v-79PEBYEZG6uEG14jMBoQfoXWcexwpgbqSbTdo_nXXBYbzYl8SHKfYi6EvJUKoEKRev4sLCXoc7X23itNrT_BOioE-go0pCeDZ2A29_ZHdW5o0jDeT7U2evv7I3q3FGk4bwY6uz3d_ZHde4o0nBefud2uYMKUGcy1XizZe6f7JTbB0WM9arSMlcR_lcyqjD1467KVS8EalN_pfXDNq0_lQWbYWoNu60wvQ27dnIH2rOmfXvYH9J7ag3P7OTZEPLcGl7YyYsh5KV9Vk7HNbFfslt2WPz4DAAA__8fHsx- +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lF2LozAUhu_3VyznahcCNWq_ctUuLKU328XpxQyDlIw5OEJrJInQofjfB_WiWtro4Hjpx5vnfTjhXCCVAv_xE2pgr0CBgAsEPCDgA4EphAQyJSPUWqrylzqwFWdgDoEkzXJTvg4JRFIhsAuYxBwRGOz52xED5ALVxAECAg1PjhUmU8mJq4-V4IYDgQBTgYr9NPLwjudfK_qbsT8v-79PEBYEZG6uEG14jMBoQfoXWcexwpgbqSbTdo_nXXBYbzYl8SHKfYi6EvJUKoEKRev4sLCXoc7X23itNrT_BOioE-go0pCeDZ2A29_ZHdW5o0jDeT7U2evv7I3q3FGk4bwY6uz3d_ZHde4o0nBefud2uYMKUGcy1XizZe6f7JTbB0WM9arSMlcR_lcyqjD1467KVS8EalN_pfXDNq0_lQWbYWoNu60wvQ27dnIH2rOmfXvYH9J7ag3P7OTZEPLcGl7YyYsh5KV9Vk7HNbFfslt2WPz4DAAA__8fHsx- # Verify the XOR execution plan query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT xor_agg(a) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslE2rozAUhvfzK4Z3NQOBGrVfrtpV6WY6lFkMDDLkmoMIrZEkwr0U__tFXVRLG73oMolvnvMcw7khV5J-iSsZRP_AweCDIQBDCIYlYoZCq4SMUbr-pA0c5TsijyHLi9LW2zFDojQhusFm9kKI8Ee8XehMQpJeeGCQZEV2aTCFzq5Cf-yksAIMp9JG33ccccWgSnu_0liREiJesfHYfZpqSoVVerHsU_-ezv_3h8OPHf_5EuW_RN0JZa60JE2yd31cuYvh3terCXrV8PH95jP2ewDbUVxN7bc_3tCf0XAA2zFcTzUMxhsGMxoOYDuGm6mG4XjDcEbDAWzHcDvnVHiCOpMpVG7oYTo8v9mrpwbJlNoRY1SpE_qtVdJg2uWpyTUbkoxtT3m7OObtUV1gN8ydYb8X5o9h300eQAfOdOgOh1PqXjrDKzd5NYW8doY3bvJmCnnr_lfewDNxP7JHdlx9-wwAAP__kuqulw== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslE2rozAUhvfzK4Z3NQOBGrVfrtpV6WY6lFkMDDLkmoMIrZEkwr0U__tFXVRLG73oMolvnvMcw7khV5J-iSsZRP_AweCDIQBDCIYlYoZCq4SMUbr-pA0c5TsijyHLi9LW2zFDojQhusFm9kKI8Ee8XehMQpJeeGCQZEV2aTCFzq5Cf-yksAIMp9JG33ccccWgSnu_0liREiJesfHYfZpqSoVVerHsU_-ezv_3h8OPHf_5EuW_RN0JZa60JE2yd31cuYvh3terCXrV8PH95jP2ewDbUVxN7bc_3tCf0XAA2zFcTzUMxhsGMxoOYDuGm6mG4XjDcEbDAWzHcDvnVHiCOpMpVG7oYTo8v9mrpwbJlNoRY1SpE_qtVdJg2uWpyTUbkoxtT3m7OObtUV1gN8ydYb8X5o9h300eQAfOdOgOh1PqXjrDKzd5NYW8doY3bvJmCnnr_lfewDNxP7JHdlx9-wwAAP__kuqulw== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT max(t.a), min(t.b), avg(t.c) FROM (VALUES (1, 2, 3), (4, 5, 6), (7, 8, 0)) AS t(a, b, c) WHERE b > 3] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkEFL_DAUxO__TxHm1IXANu3lT06tB6WHrSKyCNpDaR-1WJuSl4Cw9LtLmoOusKK3vJlMfpN3wmx6qts3YugnKDQSizUdMRsbpHih6t-hU4lxXrwLciPRGUvQJ7jRTQSNYzt54n0KiZ5cO07xxf_iSiS56F78_Mo7SFyPkyOrRZGJZ5-mOYlca13VD2hWCePdJ4JdOxB0usrf1yiHwdLQOmP36rzKoXxMChUqHKo6KbJwKo83SZHvLqLVX9D3xIuZmc6wlz_VSFA_UNwyG287urOm2zBxvN1ym9ATu-iqOFRztELBr2H1Yzj7Fm7Wfx8BAAD__0YIpH0= +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkEFL_DAUxO__TxHm1IXANu3lT06tB6WHrSKyCNpDaR-1WJuSl4Cw9LtLmoOusKK3vJlMfpN3wmx6qts3YugnKDQSizUdMRsbpHih6t-hU4lxXrwLciPRGUvQJ7jRTQSNYzt54n0KiZ5cO07xxf_iSiS56F78_Mo7SFyPkyOrRZGJZ5-mOYlca13VD2hWCePdJ4JdOxB0usrf1yiHwdLQOmP36rzKoXxMChUqHKo6KbJwKo83SZHvLqLVX9D3xIuZmc6wlz_VSFA_UNwyG287urOm2zBxvN1ym9ATu-iqOFRztELBr2H1Yzj7Fm7Wfx8BAAD__0YIpH0= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM (VALUES (1, '222'), (2, '444')) t1(a,b) JOIN (VALUES (1, 100.0), (3, 32.0)) t2(a,b) ON t1.a = t2.a] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJykkMFq8zAMgO__UwSdWhA0dst_MAzCTusO69hhl-FDiLU2LLODZcOg5N1H7EOXsG6E3WxJnz5JZ7DO0EP9TgzqBQRohN67hpidH0O5YG8-QJUIre1jGMMaoXGeQJ0htKEjUPBcd5F4UwKCoVC3Xe64K26LlSyaU7RvvAY9ILgYLm041EcCVQ64WCVmqv9_VV0M0TpvyJOZKPRI_lbyzbx3NZ_uXWvJb-R05o5ew6oS6xvfHk_pBQiHGFRRCawkVlusdlc3EUuO9kTcO8s03-jKjTQCmSPls7CLvqFH75qkyd9D4lLAEIeclfmztymVBvwKiwWwnMPyR3g7gctBD_8-AwAA__9uR-9k +https://cockroachdb.github.io/distsqlplan/decode.html#eJykkMFq8zAMgO__UwSdWhA0dst_MAzCTusO69hhl-FDiLU2LLODZcOg5N1H7EOXsG6E3WxJnz5JZ7DO0EP9TgzqBQRohN67hpidH0O5YG8-QJUIre1jGMMaoXGeQJ0htKEjUPBcd5F4UwKCoVC3Xe64K26LlSyaU7RvvAY9ILgYLm041EcCVQ64WCVmqv9_VV0M0TpvyJOZKPRI_lbyzbx3NZ_uXWvJb-R05o5ew6oS6xvfHk_pBQiHGFRRCawkVlusdlc3EUuO9kTcO8s03-jKjTQCmSPls7CLvqFH75qkyd9D4lLAEIeclfmztymVBvwKiwWwnMPyR3g7gctBD_8-AwAA__9uR-9k statement ok CREATE TABLE nullables (a INT, b INT, c INT, PRIMARY KEY (a)) @@ -220,12 +220,12 @@ CREATE TABLE nullables (a INT, b INT, c INT, PRIMARY KEY (a)) query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT array_agg(a) FROM (SELECT a FROM data WHERE b = 1 AND c = 1.0 AND d = 1.0 ORDER BY a)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlFFrqzAYhu_Pr5DvSjnh1Kg9F4EDyulpEXraIb0ZQ0ZmPkSwRpIIG8X_PlS2zrFujt54mTc-fu8TSE5QSYE7fkQN7A4oEPCAgA8EAiCwhJRArWSGWkvVfTIAsXgE5hIoqroxXZwSyKRCYCcwhSkRGBz4Q4kJcoFq4QIBgYYXZT-mVsWRq6dQcMOBwLooDSpm2XboWX8syhiLdwfHinYryw79LvrlMsbW2310cF7y4DVf_fsb_4-2DhDYN4ZZIYW0JSAbc26nDc8RGG3JBYNzcakEKhTjyiH9CWn7gWaU5wpzbqRaLMdIlCTR7X202dghdS428kaN6PQzpfM8U2-6gTdPA3-6gT9Pg2C6QTBPgy_elgR1LSuNo_KX_ux21xZFjsM117JRGd4omfVjhuW-5_pAoDbDLh0WcdVv9QXfwvRT-PcIdt_D3jWT_Wvg4Bp4-S04bX88BwAA___m6fFf +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlFFrqzAYhu_Pr5DvSjnh1Kg9F4EDyulpEXraIb0ZQ0ZmPkSwRpIIG8X_PlS2zrFujt54mTc-fu8TSE5QSYE7fkQN7A4oEPCAgA8EAiCwhJRArWSGWkvVfTIAsXgE5hIoqroxXZwSyKRCYCcwhSkRGBz4Q4kJcoFq4QIBgYYXZT-mVsWRq6dQcMOBwLooDSpm2XboWX8syhiLdwfHinYryw79LvrlMsbW2310cF7y4DVf_fsb_4-2DhDYN4ZZIYW0JSAbc26nDc8RGG3JBYNzcakEKhTjyiH9CWn7gWaU5wpzbqRaLMdIlCTR7X202dghdS428kaN6PQzpfM8U2-6gTdPA3-6gT9Pg2C6QTBPgy_elgR1LSuNo_KX_ux21xZFjsM117JRGd4omfVjhuW-5_pAoDbDLh0WcdVv9QXfwvRT-PcIdt_D3jWT_Wvg4Bp4-S04bX88BwAA___m6fFf query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT json_agg(a) FROM (SELECT a FROM data WHERE b = 1 AND c = 1.0 AND d = 1.0 ORDER BY a)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlEGLnDAYhu_9FfKdlIaOUaeHQEHpdAbLVMt0bkVKaj5EcIwkEXYZ_O-Lyu6sy86uy1w85o2P3_sEkjPUUmDCT6iB_QUKBDwg4AOBAAisISPQKJmj1lL1n4xALO6AuQTKumlNH2cEcqkQ2BlMaSoEBkf-v8IDcoFq5QIBgYaX1TCmUeWJq_tQcMOBwLasDCpm2XboWd8syhiLk6NjRcnGskO_j764jLHtPo2OzmMePOWbH9_jX9HeAQJpa5gVUsg6ArI1l3ba8AKB0Y5cMbgUl0qgQjGtHNLPkHWvaEZFobDgRqrVeor8_JMm_6Ldzg6pc7WQNylE5x8pXeaRevMNvGUa-PMN_GUaBPMNgmUavPO0HFA3stY4KX_tz25_a1EUON5yLVuV428l82HMuEwHbggEajPu0nER18PWUPA5TN-Ev05g9yXs3TLZvwUOboHXH4Kz7tNDAAAA__8lCvEa +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlEGLnDAYhu_9FfKdlIaOUaeHQEHpdAbLVMt0bkVKaj5EcIwkEXYZ_O-Lyu6sy86uy1w85o2P3_sEkjPUUmDCT6iB_QUKBDwg4AOBAAisISPQKJmj1lL1n4xALO6AuQTKumlNH2cEcqkQ2BlMaSoEBkf-v8IDcoFq5QIBgYaX1TCmUeWJq_tQcMOBwLasDCpm2XboWd8syhiLk6NjRcnGskO_j764jLHtPo2OzmMePOWbH9_jX9HeAQJpa5gVUsg6ArI1l3ba8AKB0Y5cMbgUl0qgQjGtHNLPkHWvaEZFobDgRqrVeor8_JMm_6Ldzg6pc7WQNylE5x8pXeaRevMNvGUa-PMN_GUaBPMNgmUavPO0HFA3stY4KX_tz25_a1EUON5yLVuV428l82HMuEwHbggEajPu0nER18PWUPA5TN-Ev05g9yXs3TLZvwUOboHXH4Kz7tNDAAAA__8lCvEa # Test that orderings on GROUP BY columns are propagated through aggregations. statement ok @@ -243,29 +243,29 @@ ALTER TABLE sorted_data EXPERIMENTAL_RELOCATE query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT a, max(b) FROM sorted_data GROUP BY a] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlk9v4jwQh-_vp6jm1Or1CuwkFHIKx0pdWFVdaVcrhFw8okgUI9tIW1V891XIgfBnZ1KZrDgm8TPzsx9r4ANW1uBIv6GH_BdIEKBAQAICUhCQwUTA2tkZem9duaQCHsxvyL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rkJxcWHLSvuS0ueS0FclMgNpxDK5Dcnphyem__T9wJs0T-rVdeWz0a98t94NmjtX-vd24GX5zdrZrUz2Od9zuhUEfqq-yenhYVZ_KgHVYHsOyDqsDWH4O7sXAgxhYRuWWGU0r8rwTGk5oWT3aVkrSGQ1nMappmFFNw4xqGuZUMzSjuhej-p6E-7SsfowsGmZk0TAji4Y5WQzNyBrEyJLMFOXGaNwcjRukcZM0cpTGzVIZNUwlM01TRtrJOP2UNJrmpNE0J42mWWkMzkk7GaqktMn2vz8BAAD__5SCPI0= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT a, max(b) FROM sorted_data GROUP BY a ORDER BY a] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlkFrIjEUx-_7Kco7tWwWTWa0OqfxWOjqUrqwyyKSmocVrJEkwpbid1_GOTjq9r0pmSkeZ6a_vH_yC__6BmtrcKxf0EP2ByQIUCAgAQEpCOjBVMDG2Tl6b13xJyVwZ_5C1hWwXG-2oXg9FTC3DiF7g7AMK4QMHvXTCh9QG3SdLggwGPRytR-zccsX7V5zb11AMzM6aBAw2YbsKpciVzDdCbDbcFjcB71AyORO1A8wWiwcLnSwrtM7np8X-5w4gw5NMRIEjMa_Z-PJ42z88_7-Opc3IOD76Nd1rm5OwhzWf3q9etb--Wzp6e4QWL0b-LCOLYOcrvO1XIjYlew2t61D5KTxyGP7zW468ljCe-PTo_Gy_h2TrdwxJkDFRv8y7phs-I7J9u-Yqi9ZtSKZCVA5jtvLkKwalqzal5zUl5y0IpkJUDmOwWVIThqWnLQvOa0vOW1FMhOgchzDy5CcNiw5_dyfBP9J84B-Y9cea_237xb7QbPAcv_ebt0cfzg7348pHyd7bv_CoA_lV1k-3K3LT0XAKixPYVmF1REsPwb3Y-BhDCyjcsseTSvyvBMaTmhZfdpWStI9Gu7FqKZhRjUNM6ppmFPN0IzqfozqWxIe0LIGMbJomJFFw4wsGuZkMTQjaxgjSzItytVoXI_GFWlck0ZWaVyXyqgylUybpoy0szr9kDSa5qTRNCeNpllpDM5JOytVUtp09-VfAAAA__-D7DyK +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlkFrIjEUx-_7Kco7tWwWTWa0OqfxWOjqUrqwyyKSmocVrJEkwpbid1_GOTjq9r0pmSkeZ6a_vH_yC__6BmtrcKxf0EP2ByQIUCAgAQEpCOjBVMDG2Tl6b13xJyVwZ_5C1hWwXG-2oXg9FTC3DiF7g7AMK4QMHvXTCh9QG3SdLggwGPRytR-zccsX7V5zb11AMzM6aBAw2YbsKpciVzDdCbDbcFjcB71AyORO1A8wWiwcLnSwrtM7np8X-5w4gw5NMRIEjMa_Z-PJ42z88_7-Opc3IOD76Nd1rm5OwhzWf3q9etb--Wzp6e4QWL0b-LCOLYOcrvO1XIjYlew2t61D5KTxyGP7zW468ljCe-PTo_Gy_h2TrdwxJkDFRv8y7phs-I7J9u-Yqi9ZtSKZCVA5jtvLkKwalqzal5zUl5y0IpkJUDmOwWVIThqWnLQvOa0vOW1FMhOgchzDy5CcNiw5_dyfBP9J84B-Y9cea_237xb7QbPAcv_ebt0cfzg7348pHyd7bv_CoA_lV1k-3K3LT0XAKixPYVmF1REsPwb3Y-BhDCyjcsseTSvyvBMaTmhZfdpWStI9Gu7FqKZhRjUNM6ppmFPN0IzqfozqWxIe0LIGMbJomJFFw4wsGuZkMTQjaxgjSzItytVoXI_GFWlck0ZWaVyXyqgylUybpoy0szr9kDSa5qTRNCeNpllpDM5JOytVUtp09-VfAAAA__-D7DyK query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT c, min(b), a FROM sorted_data GROUP BY a, c] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMltFr4kAQxt_vryjz1HJ76O4mVvOUPgq9eJTew3GIpGawgnVls8KV4v9-xBwYY24mZRXzmGx-O_PN9zHkA9YmwyR9wxyi3yBBgAIBGgQEICCEqYCNNXPMc2OLT0pgnP2BqC9gud5sXfF6KmBuLEL0AW7pVggRPKcvK3zCNEPb64OADF26XO3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8qchh2PhT5zLPS1YhG0j0VwqVgwPVTmNOp4LIIzxyLown9NQ49PmG_MOsdWfy39QiVmCyynkputneMPa-b7MuXjZM_tX2SYu_JUlg_jdXlUNFiFZR2WVVgdwfJz8MAHHvnA0qtvGdK0IuetaVjTZg1otwKSDmk49LGahhmraZixmoY5qxmasXrgY_U9CQ9ps4Y-ZtEwYxYNM2bRMGcWQzNmjXzMkswW5dao3x71W6R-m9RzlfrtUum1TCWzTQPGtJN1-inTaJozjaY502iaNY3BOdNOlipp2nT35W8AAAD__3mtezA= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT c, min(b), a FROM sorted_data GROUP BY a, c ORDER BY a] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlt9r4kAQx9_vryjzVLk9dHej1Tylj0IvHqX3cBwiqRmsYF3ZXeFK8X8_YgrGH51JWcU8mvjZmdnPlyHvsDQ5ptkrOoj_ggQBCgRoEBCBgC6MBaysmaJzxhZ_KYFh_g_ijoD5crX2xeOxgKmxCPE7-LlfIMTwlD0v8BGzHG27AwJy9Nl8sS2zsvPXzL4lzliP-STPfAYCRmsf3yRSJFokCsYbAWbtd-c7n80QYrkR9Xu4n80szjJvbLu730JRp5h0ZHO0mBeFQcB9-meSjp4m6e-Hh9tEtUDAz2F6m-jW0UvZOmhxV_X57eYlcy8HBbVIJIw3u0nUp5PsjjJle4dHfS8PIsaVnVPlq_PqUyN9zKuO59WH8-4G0WcfJDU_zKot9519Vj7aKy_rp1JeKpVMDxVNvYanUp45lfJaqVT1Y6EuFQumh8o93TU8FurMsVDXioWuHwt9qVgwPVTuqd_wWOgzx0JfKxZR_VhEl4oF00PlngYNj0V05lhETfi0OdHjI7qVWTqs9dXSKabEfIblrTiztlP8Zc10W6b8Odpy2wc5Ol--leWP4bJ8VTRYheUhLKuw2oPl1-BeCDwIgWVQ37JL04q8b03DmpbVo21FJN2l4W6IahpmVNMwo5qGOdUMzajuhai-I-E-LasfIouGGVk0zMiiYU4WQzOyBiGyJLNFuTUatkfDFmnYJg1cpWG7VAYtU8ls04iRdrROvySNpjlpNM1Jo2lWGoNz0o6WKiltvPn2PwAA__-vxnsv +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlt9r4kAQx9_vryjzVLk9dHej1Tylj0IvHqX3cBwiqRmsYF3ZXeFK8X8_YgrGH51JWcU8mvjZmdnPlyHvsDQ5ptkrOoj_ggQBCgRoEBCBgC6MBaysmaJzxhZ_KYFh_g_ijoD5crX2xeOxgKmxCPE7-LlfIMTwlD0v8BGzHG27AwJy9Nl8sS2zsvPXzL4lzliP-STPfAYCRmsf3yRSJFokCsYbAWbtd-c7n80QYrkR9Xu4n80szjJvbLu730JRp5h0ZHO0mBeFQcB9-meSjp4m6e-Hh9tEtUDAz2F6m-jW0UvZOmhxV_X57eYlcy8HBbVIJIw3u0nUp5PsjjJle4dHfS8PIsaVnVPlq_PqUyN9zKuO59WH8-4G0WcfJDU_zKot9519Vj7aKy_rp1JeKpVMDxVNvYanUp45lfJaqVT1Y6EuFQumh8o93TU8FurMsVDXioWuHwt9qVgwPVTuqd_wWOgzx0JfKxZR_VhEl4oF00PlngYNj0V05lhETfi0OdHjI7qVWTqs9dXSKabEfIblrTiztlP8Zc10W6b8Odpy2wc5Ol--leWP4bJ8VTRYheUhLKuw2oPl1-BeCDwIgWVQ37JL04q8b03DmpbVo21FJN2l4W6IahpmVNMwo5qGOdUMzajuhai-I-E-LasfIouGGVk0zMiiYU4WQzOyBiGyJLNFuTUatkfDFmnYJg1cpWG7VAYtU8ls04iRdrROvySNpjlpNM1Jo2lWGoNz0o6WKiltvPn2PwAA__-vxnsv query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT b, max(c) FROM sorted_data@foo GROUP BY b] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUksFqg0AQhu99ivKfEtgSV9OLJ3NMSbWEFFqKhK07FSFxZHeFluC7F7XQWKptjjsz33y_jCeUrClWR7IIXyAhcItUoDKckbVs2nI_tNbvCD2Boqxq15ZTgYwNITzBFe5ACBHzDVeLAAKanCoO3VgjwLX7hqxTOSFcNuJssZxevFOvB9qS0mQW3mA93pgjy8aR3mvlFASS2oXXkcSYWV5ivuOi_BLLobgyxVGZj1_lvoiCUb9_iX-V54Zy5dgs_KE_avMkRpMh3X2vwCp-3sfJbh8_bjazSM4hcL96mkX-fDRMMAjzx323ZCsuLf3rwF6TCpDOqf-HLNcmowfDWafpn0nHdQVN1vXdZf9Yl32rDXgOy0nYn4b9STiYhoNJ2PsBp83VZwAAAP__oMEZww== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUksFqg0AQhu99ivKfEtgSV9OLJ3NMSbWEFFqKhK07FSFxZHeFluC7F7XQWKptjjsz33y_jCeUrClWR7IIXyAhcItUoDKckbVs2nI_tNbvCD2Boqxq15ZTgYwNITzBFe5ACBHzDVeLAAKanCoO3VgjwLX7hqxTOSFcNuJssZxevFOvB9qS0mQW3mA93pgjy8aR3mvlFASS2oXXkcSYWV5ivuOi_BLLobgyxVGZj1_lvoiCUb9_iX-V54Zy5dgs_KE_avMkRpMh3X2vwCp-3sfJbh8_bjazSM4hcL96mkX-fDRMMAjzx323ZCsuLf3rwF6TCpDOqf-HLNcmowfDWafpn0nHdQVN1vXdZf9Yl32rDXgOy0nYn4b9STiYhoNJ2PsBp83VZwAAAP__oMEZww== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM (SELECT a, max(c) FROM sorted_data GROUP BY a) JOIN (SELECT b, min(c) FROM sorted_data@foo GROUP BY b) ON a = b] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMl11r2zAUhu_3K8q5aqlGItn5hIF72dEmo3SwMUJxYzUNpFGQHVgp-e8jMSMfTs9rVfHmuyb2I51TPW9P9UZzk-hB_KJT6v8iSYIUCQpIUEiCWjQStLBmrNPU2PUrOXCd_KZ-U9B0vlhm669HgsbGauq_UTbNZpr6dB8_zvSdjhNtG00SlOgsns422yzs9CW2r1FqbKaThyTOYhI0XGb9s0iK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G00SlOgsns422yzs9CW2r1FqbKaThyTOYhI0XGb9s0iKKKDRSpBZZtvF0yyeaOrLlShfwNVkYvUkzoxttPb3j9Z9Dm2irU7WW5Kgq8HPh8Hw_mHw_ebmPJIXJOj26sd5pC4Oitmu__h69hynz4WlR6ttwerdgrfrmLyQw3Uu84WYrmTzf7UV-LUltm8t58feO9r5rbYT_dVM59o2ZHd_3Zl-ys4jeXnxxU4nz_mPu0opEQUiCt8Vq1OiIYdSB-azWTRUcPDm8b27e3vL8qmSlaQKFLDjX7seqZInTpWsR6qc2zpBqnpVpkqVN1tVYjYoYMeBTj3MVic2W9XDbOe2_M1WzSrNDsqbHVRiNihgx4FuPcwOTmx2UA-znds6gdmySrPD8maHlZgNCthxoFcPs8MTmx3Ww2wHEeTBbevJmOMWvKtA6LL1Ogd_d26Xd1BxDrY-6KD82D8O1wPv02r7SXiCv0PqX93IjhRyp9OFmae61H2ruW5FJxOd_3ZSs7Rj_c2a8Wab_ONww22-SHSa5U9l_uF6nj9aF7gLy0NY7sJqD5ZucMcHltKLbnnRPZ5WLB34wF0fWILjAnTbh1ag7YCVNOThkIVVyCveYuk2D7d98sHDIB88jPIBaJAPQIN8dHzywcMgHzyM8gFokA-eRvno-uSjx0-AJhgBhQHiNAN4Gg0BnoZTAOBoDAAceC75MQJOHNDAdEAj1REOXAc4kl0WZomL7ZKfJRKMA1mYJk668zTSnaeh7gBHugMc6V4YpE668zTSnaeh7gBHuvM41L0wTp10LwyWfd27QPfCZHHSnaeR7jwNdQc40h3gSPfCVHXSnaeR7jwNdQc40p3Hke6Kv5AqcCNVhdmyjyuAu9zOlCPd9aIPjs0Zb3vhCrXudkUbrT79CQAA__-vN-nv diff --git a/pkg/sql/logictest/testdata/planner_test/distsql_auto_mode b/pkg/sql/logictest/testdata/planner_test/distsql_auto_mode index 7d4a21f6ad1f..95c460220bd3 100644 --- a/pkg/sql/logictest/testdata/planner_test/distsql_auto_mode +++ b/pkg/sql/logictest/testdata/planner_test/distsql_auto_mode @@ -13,7 +13,7 @@ query BT colnames EXPLAIN (DISTSQL) VALUES (1) ---- automatic url -false https://cockroachdb.github.io/distsqlplan/decode.html?eJyMjzFrwzAQhff-CvOmFgS1O2rs5qUtHbIEDUI6HBNHZ3QSBIz-e7A0hAyBjO896fu4DYE9_dgLCfQRA4zCGtmRCMe9ag9Gf4XuFeaw5rTXRsFxJOgNaU4LQeNgl0zy2UPBU7LzUolf3Xf3PnTulMNZPmCKAud0p0iyE0H3Rb1u-idZOQg9mJ6TjQL5ido1wjk6-ovsqqbF3_qvFp4ktXVoYQxtKqa83QIAAP__QkpjGQ== +false https://cockroachdb.github.io/distsqlplan/decode.html#eJyMjzFrwzAQhff-CvOmFgS1O2rs5qUtHbIEDUI6HBNHZ3QSBIz-e7A0hAyBjO896fu4DYE9_dgLCfQRA4zCGtmRCMe9ag9Gf4XuFeaw5rTXRsFxJOgNaU4LQeNgl0zy2UPBU7LzUolf3Xf3PnTulMNZPmCKAud0p0iyE0H3Rb1u-idZOQg9mJ6TjQL5ido1wjk6-ovsqqbF3_qvFp4ktXVoYQxtKqa83QIAAP__QkpjGQ== # Check the JSON column is still there, albeit hidden. query T colnames @@ -139,13 +139,13 @@ INSERT INTO kw VALUES (1,1); query T SELECT url FROM [EXPLAIN ANALYZE (DISTSQL) SELECT kv.k, avg(kw.k) FROM kv JOIN kw ON kv.k=kw.k GROUP BY kv.k] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJysk0Fv1DAQhe_8CmtOW2FpY29PlpCyXFChbFBVkBCKKhMPwSKJo7FDW1X731Hsw5Jss7CIW_w8n_3ejPMEnTO40y16UF9AQMmhJ1eh945GKRVcmQdQGQfb9UMY5ZJD5QhBPUGwoUFQcKu_NniD2iCtM-BgMGjbxGN7sq2mx_zHT-BA7t4zQm0UE8DBB900LNgWFcs8cCiGoFguoNxzcEM4XOiDrhGU2PN_MyUWTN3_B1Ny0dTBy9A5MkhoJj7KkfxTyTPJ3iPV-NbZDmktp8ka_BZWuXh58Yps_T19Ao8ymwWN2lHaiM1Lk3hU2-oH1mLr6JENHo1iMmPv7OtDz3guF9u2OWeW27omrHVwtN5MA-ejvyJ1Lo6Jw3b3-W5X3N7tPl5fr3Ix5t9-erPK5cVfTPsok0iZlmJcnhPjBn3vOo_zV_Dsydk4ejQ1pqfk3UAVfiBXxWvSsohcFAz6kHZlWlx1cSv-M7_D4gxYzmF5Et5M4GwOb07ClzO43L_4FQAA__-EfYCR +https://cockroachdb.github.io/distsqlplan/decode.html#eJysk0Fv1DAQhe_8CmtOW2FpY29PlpCyXFChbFBVkBCKKhMPwSKJo7FDW1X731Hsw5Jss7CIW_w8n_3ejPMEnTO40y16UF9AQMmhJ1eh945GKRVcmQdQGQfb9UMY5ZJD5QhBPUGwoUFQcKu_NniD2iCtM-BgMGjbxGN7sq2mx_zHT-BA7t4zQm0UE8DBB900LNgWFcs8cCiGoFguoNxzcEM4XOiDrhGU2PN_MyUWTN3_B1Ny0dTBy9A5MkhoJj7KkfxTyTPJ3iPV-NbZDmktp8ka_BZWuXh58Yps_T19Ao8ymwWN2lHaiM1Lk3hU2-oH1mLr6JENHo1iMmPv7OtDz3guF9u2OWeW27omrHVwtN5MA-ejvyJ1Lo6Jw3b3-W5X3N7tPl5fr3Ix5t9-erPK5cVfTPsok0iZlmJcnhPjBn3vOo_zV_Dsydk4ejQ1pqfk3UAVfiBXxWvSsohcFAz6kHZlWlx1cSv-M7_D4gxYzmF5Et5M4GwOb07ClzO43L_4FQAA__-EfYCR # This query verifies stats collection for the hashJoiner, distinct and sorter. query T SELECT url FROM [EXPLAIN ANALYZE (DISTSQL) SELECT DISTINCT(kw.w) FROM kv JOIN kw ON kv.k = kw.w ORDER BY kw.w] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyck8FunDAQhu99CmtOrWppMZCLpUoo6qFppaZKe6s4uHi6sQIYzZgmUbTvXmEipbCBLnuD3_PBN_b4CVpv8atpkEH_BAWlhI58hcyehmgsuLIPoBMJru36MMSlhMoTgn6C4EKNoOGH-VXjDRqLtEtAgsVgXB0_25FrDD0Wd39AAvl7FoTGaqFAAgdT1yK4BrVIGCRc90GLQkF5kOD78PJDDmaPoNVBnielFqTuT5ZKF6XSRakXl771ZJHQTjzKgfxfySudfTJ8-9m7FmmXThur8Xd4W6h3H8jtb-MTyBiKWZcxO2o1UvPSMTyq5eAJrWBnUYtYAxIa8yAabDw9ip7RapEm4ou7fF6xju-e80RcnrC12Zbz_u4pIO2y6Y4U6v0JZ3zkrVa8l2zzLbYfHQfXVmGXz32HfRknId6FM-TXJC-2SN4gd75lnE_tq19OhlFFu8dx9Nn3VOE38lX8zfh6HbkYWOQwrqbjy1Ubl-Id_xdWG-B0DqercDaBkzmcrcL5OpyvwhczuDy8-RsAAP__mE7PKQ== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyck8FunDAQhu99CmtOrWppMZCLpUoo6qFppaZKe6s4uHi6sQIYzZgmUbTvXmEipbCBLnuD3_PBN_b4CVpv8atpkEH_BAWlhI58hcyehmgsuLIPoBMJru36MMSlhMoTgn6C4EKNoOGH-VXjDRqLtEtAgsVgXB0_25FrDD0Wd39AAvl7FoTGaqFAAgdT1yK4BrVIGCRc90GLQkF5kOD78PJDDmaPoNVBnielFqTuT5ZKF6XSRakXl771ZJHQTjzKgfxfySudfTJ8-9m7FmmXThur8Xd4W6h3H8jtb-MTyBiKWZcxO2o1UvPSMTyq5eAJrWBnUYtYAxIa8yAabDw9ip7RapEm4ou7fF6xju-e80RcnrC12Zbz_u4pIO2y6Y4U6v0JZ3zkrVa8l2zzLbYfHQfXVmGXz32HfRknId6FM-TXJC-2SN4gd75lnE_tq19OhlFFu8dx9Nn3VOE38lX8zfh6HbkYWOQwrqbjy1Ubl-Id_xdWG-B0DqercDaBkzmcrcL5OpyvwhczuDy8-RsAAP__mE7PKQ== # This query verifies support for zeroNode in DistSQL. query B diff --git a/pkg/sql/logictest/testdata/planner_test/distsql_distinct_on b/pkg/sql/logictest/testdata/planner_test/distsql_distinct_on index 78c37a62a409..1da4d71ffc98 100644 --- a/pkg/sql/logictest/testdata/planner_test/distsql_distinct_on +++ b/pkg/sql/logictest/testdata/planner_test/distsql_distinct_on @@ -80,7 +80,7 @@ distinct · · (x, y, z) weak-k query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT ON (x,y,z) x, y, z FROM xyz] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslE2LqzAUhvf3V1zedaAm2i9XLu6mm9uhzG5w4ZhDEVojSYR2iv99UMGOpY0Oukzie57zxHBuyJWk_8mZDMIPcDAIMPhgCMCwRMxQaJWSMUrXn7SBnbwg9BiyvChtvR0zpEoTwhtsZk-EEO_J54kOlEjSCw8MkmySnRpMobNzoq_R5foFhn1pw7-RYJHPogBxxaBKe69rbHIkhLxi49n_MmOzPLWLZR8ccdaAXlLES8q9eJkrLUmT7NWOK1cf3PtlI36vET7-qvncVz3A7hRXk65ajDcUcxsOsDvD9SRDf7yhP7fhALsz3EwyDMYbBnMbDrA7w-1sA-EJ5UCmULmhh8HwvLJXDwySR2qni1GlTulNq7TBtMt9k2s2JBnbnvJ2scvbo7rBn2HuDItemD-GhZs8gPad6cAdDqb0vXSGV27yagp57Qxv3OTNFPLW_a-8gWfifmSP7Lj68x0AAP__pp2oBA== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslE2LqzAUhvf3V1zedaAm2i9XLu6mm9uhzG5w4ZhDEVojSYR2iv99UMGOpY0Oukzie57zxHBuyJWk_8mZDMIPcDAIMPhgCMCwRMxQaJWSMUrXn7SBnbwg9BiyvChtvR0zpEoTwhtsZk-EEO_J54kOlEjSCw8MkmySnRpMobNzoq_R5foFhn1pw7-RYJHPogBxxaBKe69rbHIkhLxi49n_MmOzPLWLZR8ccdaAXlLES8q9eJkrLUmT7NWOK1cf3PtlI36vET7-qvncVz3A7hRXk65ajDcUcxsOsDvD9SRDf7yhP7fhALsz3EwyDMYbBnMbDrA7w-1sA-EJ5UCmULmhh8HwvLJXDwySR2qni1GlTulNq7TBtMt9k2s2JBnbnvJ2scvbo7rBn2HuDItemD-GhZs8gPad6cAdDqb0vXSGV27yagp57Qxv3OTNFPLW_a-8gWfifmSP7Lj68x0AAP__pp2oBA== # Ensure that ordering propagates past local DISTINCT processors. query TTTTT @@ -102,7 +102,7 @@ distinct · · (x, y, z) w query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT ON (x,y,z) x, y, z FROM xyz ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lb9u2zAQh_c-RXBrCdhH0o6tSUOXLE2Rdis8qOIhEOCIBkkBSQO_e6E_gCo3OsqyOkry777jdwf6HUpr6Gv2Qh6Sn4AgQIIABQI0CNjAQcDJ2Zy8t67-SRt4MK-QrAUU5akK9euDgNw6guQdQhGOBAn8yH4d6YkyQ261BgGGQlYcG8zJFS-Ze0tf336DgMcqJHepFKkSqYbDWYCtQl_Xh-yZIMGzmM7-bl0gt9oMsSl-Hi0vryn_pfChKPOwwvUlQTQHqU_lDDkyyV2Ko1A1Cu1Ztq3z0UnYzv45-1Wd6UFnOH3SuPSkI-xu0tu5k46U733igpOW033KpX1G2J3P-7k-I-V7n3JBn2q6T7W0zwi787mb6zNSvvepFvSpp_vUS_uMsDuf-7k-I-V7n_o_3ewfQJ_In2zpaUAcq7yur30yz9T-TXhbuZy-OZs3mPbxsck1Lwz50H7F9uGhbD_VDf4dRjYs-bBkw2oQxsuw4tve8mjNpjd8eMOGI-TtLYe-Z8M7nrxjw3s-vL-lbYzsWGzJ-C3DyJrhTXuGkUXTETi_aRhZNeR37bL3w_nTnwAAAP__eVbBtQ== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lb9u2zAQh_c-RXBrCdhH0o6tSUOXLE2Rdis8qOIhEOCIBkkBSQO_e6E_gCo3OsqyOkry777jdwf6HUpr6Gv2Qh6Sn4AgQIIABQI0CNjAQcDJ2Zy8t67-SRt4MK-QrAUU5akK9euDgNw6guQdQhGOBAn8yH4d6YkyQ261BgGGQlYcG8zJFS-Ze0tf336DgMcqJHepFKkSqYbDWYCtQl_Xh-yZIMGzmM7-bl0gt9oMsSl-Hi0vryn_pfChKPOwwvUlQTQHqU_lDDkyyV2Ko1A1Cu1Ztq3z0UnYzv45-1Wd6UFnOH3SuPSkI-xu0tu5k46U733igpOW033KpX1G2J3P-7k-I-V7n3JBn2q6T7W0zwi787mb6zNSvvepFvSpp_vUS_uMsDuf-7k-I-V7n_o_3ewfQJ_In2zpaUAcq7yur30yz9T-TXhbuZy-OZs3mPbxsck1Lwz50H7F9uGhbD_VDf4dRjYs-bBkw2oQxsuw4tve8mjNpjd8eMOGI-TtLYe-Z8M7nrxjw3s-vL-lbYzsWGzJ-C3DyJrhTXuGkUXTETi_aRhZNeR37bL3w_nTnwAAAP__eVbBtQ== # Ensure that even with more ordering columns, ordering propagates past local # DISTINCT processors. @@ -124,7 +124,7 @@ distinct · · (x, y) query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT ON (y) x, y FROM xyz ORDER BY y, x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslb9u2zAQh_c-RXFrCNhHyo6tSUOXLE2Rdis0qOIhEOCIAkkBSQO_e6E_gCq3OioQR0n-8bv77kC_Q200fS1eyEH6ExAESBCgQEACAg6QC2isKck5Y7ufDIEH_QrpXkBVN63vXucCSmMJ0nfwlb8QpPCj-HWhJyo02d0eBGjyRXXpMY2tXgr7lr2-_QYBj61PP2dSZAryqwDT-ulQ54tnghSvYj34u7Ge7O4wZ2byTmR4t4iQH0F8qZyv6tLvcH9L6RqymizprqlFnFrETRQznLPUB1vXP92vrCuZ1YXrR4xRRxwAjyM-bhlxADGpxCgjlutVyqgqA-BR5f0WlQHEpFJGUanWq1RRVQbAo8rTFpUBxKRSRVGZrFeZRFUZAI8qz1tUBhCTyiT6Hf4f3BO5xtSOZqylk_fd5U76mYY_BGdaW9I3a8oeMzw-9rn-hSbnh684PDzUw6euwL_DyIYlH5ZsWM3CeBtWfNlHHp2w6QMfPrDhAPm4pel7NnziySc2fObD5y1lY2DHQkvGbxkG1gw37RkGFi0JwPlNw8CqIb9rt7Xn109_AgAA__8Zbbvp +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslb9u2zAQh_c-RXFrCNhHyo6tSUOXLE2Rdis0qOIhEOCIAkkBSQO_e6E_gCq3OioQR0n-8bv77kC_Q200fS1eyEH6ExAESBCgQEACAg6QC2isKck5Y7ufDIEH_QrpXkBVN63vXucCSmMJ0nfwlb8QpPCj-HWhJyo02d0eBGjyRXXpMY2tXgr7lr2-_QYBj61PP2dSZAryqwDT-ulQ54tnghSvYj34u7Ge7O4wZ2byTmR4t4iQH0F8qZyv6tLvcH9L6RqymizprqlFnFrETRQznLPUB1vXP92vrCuZ1YXrR4xRRxwAjyM-bhlxADGpxCgjlutVyqgqA-BR5f0WlQHEpFJGUanWq1RRVQbAo8rTFpUBxKRSRVGZrFeZRFUZAI8qz1tUBhCTyiT6Hf4f3BO5xtSOZqylk_fd5U76mYY_BGdaW9I3a8oeMzw-9rn-hSbnh684PDzUw6euwL_DyIYlH5ZsWM3CeBtWfNlHHp2w6QMfPrDhAPm4pel7NnziySc2fObD5y1lY2DHQkvGbxkG1gw37RkGFi0JwPlNw8CqIb9rt7Xn109_AgAA__8Zbbvp # Distinct processors elided becaue of strong key. query TTTTT @@ -137,7 +137,7 @@ scan · · (a, b, c) a!=NULL; b!=NULL; c!=NULL; key(a,b,c) query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT ON (a,b,c) a, b, c FROM abc] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyskj1rwzAQhvf-jHdWiT87eOqaJS2hW_GgWEcwOD5zkqEl-L8Xy0Pq4BYVdZTunnvu4L2iZ0MHfSGL6h0pFDIo5FAooFCiVhiEG7KWZW5ZgL35QJUotP0wuvm7VmhYCNUVrnUdocKbPnV0JG1IdvNcQ063ndcM0l60fD7rU4N6UuDR3eZYp8-EKp3UD66bYuxZDAmZ1fh62tjmwI887Mq7xm11tlKn4WdmsWdm4a481pWHu4pYVxHuSv4zKhuuI9mBe0tBSUjmKJE505I7y6M09CrceM3yfPGc_zBk3VJNl8e-9yW_4Hc4_RV-WsHJPZzFmPMYuIiByz_B9fTwFQAA__97QoeT +https://cockroachdb.github.io/distsqlplan/decode.html#eJyskj1rwzAQhvf-jHdWiT87eOqaJS2hW_GgWEcwOD5zkqEl-L8Xy0Pq4BYVdZTunnvu4L2iZ0MHfSGL6h0pFDIo5FAooFCiVhiEG7KWZW5ZgL35QJUotP0wuvm7VmhYCNUVrnUdocKbPnV0JG1IdvNcQ063ndcM0l60fD7rU4N6UuDR3eZYp8-EKp3UD66bYuxZDAmZ1fh62tjmwI887Mq7xm11tlKn4WdmsWdm4a481pWHu4pYVxHuSv4zKhuuI9mBe0tBSUjmKJE505I7y6M09CrceM3yfPGc_zBk3VJNl8e-9yW_4Hc4_RV-WsHJPZzFmPMYuIiByz_B9fTwFQAA__97QoeT query TTTTT EXPLAIN (VERBOSE) SELECT DISTINCT ON (a, b) a, b FROM abc ORDER BY a, b, c @@ -154,4 +154,4 @@ distinct · · (a, b) a!=NULL; b!=NULL; key(a,b query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT ON (a, b) a, b FROM abc ORDER BY a, b, c] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lM-LqzAQx-_vr3jMtQM10f7y5OFdenldyt4WD9YMRWiNJBF2Kf7vi2axa9lGwezRxO985sOEuUEpBf3PrqQhfgMGCBwQQkCIAGEFKUKlZE5aS9X-YgN78Q5xgFCUVW3a4xQhl4ogvoEpzIUghtfsdKEjZYLUsq0ryGTFpcNUqrhm6iPJTjkgHGoT_00YJhyTENIGQdbmXleb7EwQswans_8V2hRlbpbrIbijtEglSJH4wj5l8qfMO0raUo-cBSZ8gUm4gLRxNciCWR2Ggw7Z9Ilw3xMZYffCG48T4dN9Q9--I-zed-vRN5zuG_n2HWH3vjuPvtF038C37wi791390ob5gXkkXclS04D4rHLQrh0SZ7LrSsta5fSiZN5h7Oehy3UHgrSxt8x-7Et71Tb4PcycYT4Is8cwd5NH0KEzHbnD0Zy-V87w2k1ezyFvnOGtm7ydQ965ZxWMPBP3I3tkp82fzwAAAP__G57AJg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lM-LqzAQx-_vr3jMtQM10f7y5OFdenldyt4WD9YMRWiNJBF2Kf7vi2axa9lGwezRxO985sOEuUEpBf3PrqQhfgMGCBwQQkCIAGEFKUKlZE5aS9X-YgN78Q5xgFCUVW3a4xQhl4ogvoEpzIUghtfsdKEjZYLUsq0ryGTFpcNUqrhm6iPJTjkgHGoT_00YJhyTENIGQdbmXleb7EwQswans_8V2hRlbpbrIbijtEglSJH4wj5l8qfMO0raUo-cBSZ8gUm4gLRxNciCWR2Ggw7Z9Ilw3xMZYffCG48T4dN9Q9--I-zed-vRN5zuG_n2HWH3vjuPvtF038C37wi791390ob5gXkkXclS04D4rHLQrh0SZ7LrSsta5fSiZN5h7Oehy3UHgrSxt8x-7Et71Tb4PcycYT4Is8cwd5NH0KEzHbnD0Zy-V87w2k1ezyFvnOGtm7ydQ965ZxWMPBP3I3tkp82fzwAAAP__G57AJg== diff --git a/pkg/sql/logictest/testdata/planner_test/distsql_indexjoin b/pkg/sql/logictest/testdata/planner_test/distsql_indexjoin index 1e736fb2e42a..16cb443cae43 100644 --- a/pkg/sql/logictest/testdata/planner_test/distsql_indexjoin +++ b/pkg/sql/logictest/testdata/planner_test/distsql_indexjoin @@ -25,21 +25,21 @@ NULL /10 1 {1} 1 query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM t WHERE v > 10 AND v < 50] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslDtrwzAURvf-ivLNt8SvPOrJazokJXQrHlzrEgyJZSS5tJT89-IoUDk0ioMz6nHu8RmsH9RS8KrYs0b6jhCECIQYhASEKXJCo2TJWkvVXbHAUnwhDQhV3bTGbpvK7Bgp2loqwYoFCIJNUe268_yQE0qpGOnf1ZV8ks1kcXaRIFtzGpsTtCm2jDQ-kKMOHfU_g9-Kjx1vuBCsJkFvPD4zA8K6NeljFuKSLbzF9iKr-iRL-rJGVftCfbtKyiLK4oviqCeOhmeG4zOv2JzM6X0z4-GZ0fjMKzYnc3bfzGR4Zjw-84rNyZzfNzPwizesG1lrHvTXB92zwWLL9o3RslUlvypZHjV2uT5yxw3B2tjTZ7tY1vao-0AXDr1w5IcjLxz04PAcjr1w4jcnY8xTLzzzm2djzHMvvPCbFzeZ88PDbwAAAP__eQw40w== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslDtrwzAURvf-ivLNt8SvPOrJazokJXQrHlzrEgyJZSS5tJT89-IoUDk0ioMz6nHu8RmsH9RS8KrYs0b6jhCECIQYhASEKXJCo2TJWkvVXbHAUnwhDQhV3bTGbpvK7Bgp2loqwYoFCIJNUe268_yQE0qpGOnf1ZV8ks1kcXaRIFtzGpsTtCm2jDQ-kKMOHfU_g9-Kjx1vuBCsJkFvPD4zA8K6NeljFuKSLbzF9iKr-iRL-rJGVftCfbtKyiLK4oviqCeOhmeG4zOv2JzM6X0z4-GZ0fjMKzYnc3bfzGR4Zjw-84rNyZzfNzPwizesG1lrHvTXB92zwWLL9o3RslUlvypZHjV2uT5yxw3B2tjTZ7tY1vao-0AXDr1w5IcjLxz04PAcjr1w4jcnY8xTLzzzm2djzHMvvPCbFzeZ88PDbwAAAP__eQw40w== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM t WHERE v > 10 AND v < 50 ORDER BY v] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslM1uozAURvfzFKNvO3cUMORnWLHNLJIq6q5iQfFVhJRgZJuqVcW7V8GRClHjEIWlf46Pz-Z-olKSN_mRDZIXhCAIECIQYhDmyAi1VgUbo_TpigPW8h1JQCirurFu25b2wEigtGTNEgTJNi8P3bup-IOszQiF0ozk-_ZG_VX1bDW4nbUE1djzyxnB2HzPSKKWevawZ__h4ef89cA7ziXrWTD8zFtqQdg2NvmdhpQKXBOG9wj_q7I6--Khr9blMdcfF1ZKo6tiMRCL8aXhJKU3hL3S-bSl0fhSMUnpDWGvdDFtaTy-NJqk9IawV7qctjTwi3dsalUZHjUBgtMIYblnN3KManTBT1oVncYttx3XbUg21p3-c4t15Y5OH-zDoRcWflh44WAAh5dw5IVjvzl-xDz3wgu_efGIeemFV37z6i5z1v76CgAA___W2DtJ +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslM1uozAURvfzFKNvO3cUMORnWLHNLJIq6q5iQfFVhJRgZJuqVcW7V8GRClHjEIWlf46Pz-Z-olKSN_mRDZIXhCAIECIQYhDmyAi1VgUbo_TpigPW8h1JQCirurFu25b2wEigtGTNEgTJNi8P3bup-IOszQiF0ozk-_ZG_VX1bDW4nbUE1djzyxnB2HzPSKKWevawZ__h4ef89cA7ziXrWTD8zFtqQdg2NvmdhpQKXBOG9wj_q7I6--Khr9blMdcfF1ZKo6tiMRCL8aXhJKU3hL3S-bSl0fhSMUnpDWGvdDFtaTy-NJqk9IawV7qctjTwi3dsalUZHjUBgtMIYblnN3KManTBT1oVncYttx3XbUg21p3-c4t15Y5OH-zDoRcWflh44WAAh5dw5IVjvzl-xDz3wgu_efGIeemFV37z6i5z1v76CgAA___W2DtJ # Here we care about ordering by v, but v is not otherwise used. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT w FROM t WHERE v > 10 AND v < 50 ORDER BY v] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslL9uqzAYR_f7FFe_ta6CDflTJtZ0SKqoW8VA8acIKcHINlWrinevgiPVVK1DFEZsn-_4DPgTtZK0KY5kkL6Ag0GAIQZDAoY5coZGq5KMUfp0xAFr-Y40YqjqprVu2Vb2QEihtCRNEgySbFEd-rmZuEPe5Qyl0oT0-_RG3atmthqczjsG1drz5JzB2GJPSOOOeXbu2X8Z_Fy8HmhHhSQ9i4aXecssGLatTf9nnGUCfwn5NcJHVdVnXzL0Nbo6FvrDs8YhqxhYxfhMPknmBaGXOZ8wMx6fKSbJvCD0MhcTZibjM-NJMi8IvczlhJlR2Loj06ja0Ki_Pjo9GyT35J4Zo1pd0pNWZa9xn9ue6xckGet2H9zHunZbpwv6MA_CIgyLIBwNYP4TjoNwEjYnt5jnQXgRNi9uMS-D8CpsXl1lzrt_XwEAAP__NMo41Q== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslL9uqzAYR_f7FFe_ta6CDflTJtZ0SKqoW8VA8acIKcHINlWrinevgiPVVK1DFEZsn-_4DPgTtZK0KY5kkL6Ag0GAIQZDAoY5coZGq5KMUfp0xAFr-Y40YqjqprVu2Vb2QEihtCRNEgySbFEd-rmZuEPe5Qyl0oT0-_RG3atmthqczjsG1drz5JzB2GJPSOOOeXbu2X8Z_Fy8HmhHhSQ9i4aXecssGLatTf9nnGUCfwn5NcJHVdVnXzL0Nbo6FvrDs8YhqxhYxfhMPknmBaGXOZ8wMx6fKSbJvCD0MhcTZibjM-NJMi8IvczlhJlR2Loj06ja0Ki_Pjo9GyT35J4Zo1pd0pNWZa9xn9ue6xckGet2H9zHunZbpwv6MA_CIgyLIBwNYP4TjoNwEjYnt5jnQXgRNi9uMS-D8CpsXl1lzrt_XwEAAP__NMo41Q== # The single join reader should be on node 5, and doesn't need to output v. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT w FROM t WHERE v > 40 AND v < 50 ORDER BY v] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkT1rwzAQhvf-ivLOKrFsumjKmg5JCd2KB9U6gsHRCelcWoL_e7FVqF2I24z38byPOF3g2dHeninBvEJD4RG1QojcUEocx3Ze2rkPmEKh9aGXsV0rNBwJ5gJppSMY7PmBw6aEgiOxbTetDQrcyw-UxJ4IphrULFivB7_Yt46OZB3FTbGIx_tWoHDoxdxvNa7Z9C22J279t0wvZSG2Zxs_Z8rqqrJcKP-43JFSYJ_oX6crhlqB3Iny7yTuY0PPkZtJk8vDxE0NR0nytMrFzufR-MA5rFfhch0uV-HiF1wPd18BAAD__56h0KE= +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkT1rwzAQhvf-ivLOKrFsumjKmg5JCd2KB9U6gsHRCelcWoL_e7FVqF2I24z38byPOF3g2dHeninBvEJD4RG1QojcUEocx3Ze2rkPmEKh9aGXsV0rNBwJ5gJppSMY7PmBw6aEgiOxbTetDQrcyw-UxJ4IphrULFivB7_Yt46OZB3FTbGIx_tWoHDoxdxvNa7Z9C22J279t0wvZSG2Zxs_Z8rqqrJcKP-43JFSYJ_oX6crhlqB3Iny7yTuY0PPkZtJk8vDxE0NR0nytMrFzufR-MA5rFfhch0uV-HiF1wPd18BAAD__56h0KE= diff --git a/pkg/sql/logictest/testdata/planner_test/distsql_interleaved_join b/pkg/sql/logictest/testdata/planner_test/distsql_interleaved_join index 4d6f3ab4cb2e..be229a030e31 100644 --- a/pkg/sql/logictest/testdata/planner_test/distsql_interleaved_join +++ b/pkg/sql/logictest/testdata/planner_test/distsql_interleaved_join @@ -189,13 +189,13 @@ SET CLUSTER SETTING sql.distsql.interleaved_joins.enabled = true; query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM parent1 JOIN child1 USING(pid1) WHERE pid1 >= 3 AND pid1 <= 5] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMkkFr6zAQhO_vVzzm9B7dEstpL4aCryklKbkWH4S1SQSOZFZyaSn570VWoU5oQ9tTb5ZmZscf2hc4b3ip9xxQPUCBUIIwR0PoxbccgpckZePCPKEqCNb1Q8zX0caOUWFwXgwLGxAMR227pDeHhtB6YVTv1qW_9P2sPDES_BDfxjaEEPWWUZUHmlSrSfUHgxcusnSsH3nN2rDceutYZsVRE-54E5Hw7F7Lc91rYRcT-dpud1Ol3dnOJCHPAaHjTfxXq4v_N5K84ycIqyFWf2tFdUn1FdXX-IxGHdGUP6JRv5SmOE-z5tB7F_hLr16ktWGz5bxjwQ_S8r34dqzJx9WYGy8Mh5jVeT4sXJbSD07D6my4OAqr03D5rXBz-PMaAAD__y7yGHk= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMkkFr6zAQhO_vVzzm9B7dEstpL4aCryklKbkWH4S1SQSOZFZyaSn570VWoU5oQ9tTb5ZmZscf2hc4b3ip9xxQPUCBUIIwR0PoxbccgpckZePCPKEqCNb1Q8zX0caOUWFwXgwLGxAMR227pDeHhtB6YVTv1qW_9P2sPDES_BDfxjaEEPWWUZUHmlSrSfUHgxcusnSsH3nN2rDceutYZsVRE-54E5Hw7F7Lc91rYRcT-dpud1Ol3dnOJCHPAaHjTfxXq4v_N5K84ycIqyFWf2tFdUn1FdXX-IxGHdGUP6JRv5SmOE-z5tB7F_hLr16ktWGz5bxjwQ_S8r34dqzJx9WYGy8Mh5jVeT4sXJbSD07D6my4OAqr03D5rXBz-PMaAAD__y7yGHk= # Swap parent1 and child1 tables. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM child1 JOIN parent1 USING(pid1) WHERE pid1 >= 3 AND pid1 <= 5] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMklFL-zAUxd__n-LPeVK8sqbDl4LQ14lsslfpQ2jutkCXlJtUFNl3lzSC3dChPvnW5JxzT3_kvsJ5w0u954DqEQqEEoQ5GkIvvuUQvCQpGxfmGVVBsK4fYr6ONnaMCoPzYljYgGA4atslvTk0hNYLo_qwLv2172fliZHgh_g-tiGEqLeMqjzQpFpNqj8ZvHCRpWP9xGvWhuXOW8cyK46acM-biIRn91pe6nZnO5PA13a7mwq9FnYxKXkOCB1v4kWtri5vJZnHTxBWQ6z-14rqkuo51Tf4ikYd0ZS_olF_lKY4T7Pm0HsX-FuvXqS1YbPlvGPBD9Lyg_h2rMnH1ZgbLwyHmNV5PixcltIPTsPqbLg4CqvTcPmjcHP49xYAAP__IiwYdw== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMklFL-zAUxd__n-LPeVK8sqbDl4LQ14lsslfpQ2jutkCXlJtUFNl3lzSC3dChPvnW5JxzT3_kvsJ5w0u954DqEQqEEoQ5GkIvvuUQvCQpGxfmGVVBsK4fYr6ONnaMCoPzYljYgGA4atslvTk0hNYLo_qwLv2172fliZHgh_g-tiGEqLeMqjzQpFpNqj8ZvHCRpWP9xGvWhuXOW8cyK46acM-biIRn91pe6nZnO5PA13a7mwq9FnYxKXkOCB1v4kWtri5vJZnHTxBWQ6z-14rqkuo51Tf4ikYd0ZS_olF_lKY4T7Pm0HsX-FuvXqS1YbPlvGPBD9Lyg_h2rMnH1ZgbLwyHmNV5PixcltIPTsPqbLg4CqvTcPmjcHP49xYAAP__IiwYdw== # Select over two ranges for parent/child with split at grandchild key. # Also, rows with pid1 <= 30 should have 4 rows whereas pid1 > 30 should @@ -203,7 +203,7 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJzMklFL-zAUxd__n-LPeVK8sq query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM parent1 JOIN child1 ON parent1.pid1 = child1.pid1 WHERE parent1.pid1 >= 29 AND parent1.pid1 <= 31 ORDER BY parent1.pid1] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUUcFq6zAQvL-veOypJSqxnOZiKOiaUpKSa_FBWBtH4EhmtS4twf9eJB0Sl6S0vfVm7czs7IyP4LzBtT5ggOoFJAhYQi2gJ99gCJ7iOJNW5g2qQoB1_cBxXAtoPCFUR2DLHUIFK8dIHepX3KI2SI_eOqR5XGuQte2SyxPuGKKHPWh6V70mdBw5W9vuz5FmbzsTgbwHBHS44xslZ7cPFLnpEwRsBq7-KylUKdRCqHuhllCPAvzAp2MD6xahkqO4EuiUw5NBQjM9W8kZ1OOF1Gt_5_t5OWFfcy8n7vJXdRZ_o84LgbYYeu8CfquqInaNpsX8b4IfqMFn8k2yyc9N0qWBwcAZlfmxcglKB56L5ZfixURcfBaXP3Kux38fAQAA__8x_hkU +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUUcFq6zAQvL-veOypJSqxnOZiKOiaUpKSa_FBWBtH4EhmtS4twf9eJB0Sl6S0vfVm7czs7IyP4LzBtT5ggOoFJAhYQi2gJ99gCJ7iOJNW5g2qQoB1_cBxXAtoPCFUR2DLHUIFK8dIHepX3KI2SI_eOqR5XGuQte2SyxPuGKKHPWh6V70mdBw5W9vuz5FmbzsTgbwHBHS44xslZ7cPFLnpEwRsBq7-KylUKdRCqHuhllCPAvzAp2MD6xahkqO4EuiUw5NBQjM9W8kZ1OOF1Gt_5_t5OWFfcy8n7vJXdRZ_o84LgbYYeu8CfquqInaNpsX8b4IfqMFn8k2yyc9N0qWBwcAZlfmxcglKB56L5ZfixURcfBaXP3Kux38fAQAA__8x_hkU # Parent-child where pid1 <= 15 have one joined row and pid1 > 15 have no # joined rows (since child2 only has 15 rows up to pid1 = 15). @@ -215,13 +215,13 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJzUUcFq6zAQvL-veOypJSqxnO query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM parent1 JOIN child2 USING(pid1) WHERE pid1 >= 12 ORDER BY pid1] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlD1rwzAQhvf-ivJOLbkSyx8ZDAWtKSUpWYsHY10Sg2MZSS4twf-92B4Sl6YfzuLN0t3j9x6BdESpFa_SA1vErxAg-CAEIIQgREgIldEZW6tN29IDS_WO2CPkZVW7djshZNow4iNc7gpGjGXp2BScvvGGU8XmSeclm7kHgmKX5kWX-MxbhzYjP6TmQ1ap4dK1Y2zy3f68ku3zQrWz9f8BoeCtu5Nidv9o2t7uE4R17eJbKUj6JEOSEckFkoaga3ca1rp0x4hFQxeETh7aKDashmNLMUPSfGO90g-6mkeD7kvp_iBdjDpOMd3j9EcJ-dMVCkYJBdMVCkcJhdMV-uVJ2rCtdGn5T7fTa683qx33z4HVtcn4xeisi-mX647rNhRb11dFv1iWXakb8BwWP8KLAex9hf1rkoNr4PAaOPoXnDQ3nwEAAP__9wcgdA== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlD1rwzAQhvf-ivJOLbkSyx8ZDAWtKSUpWYsHY10Sg2MZSS4twf-92B4Sl6YfzuLN0t3j9x6BdESpFa_SA1vErxAg-CAEIIQgREgIldEZW6tN29IDS_WO2CPkZVW7djshZNow4iNc7gpGjGXp2BScvvGGU8XmSeclm7kHgmKX5kWX-MxbhzYjP6TmQ1ap4dK1Y2zy3f68ku3zQrWz9f8BoeCtu5Nidv9o2t7uE4R17eJbKUj6JEOSEckFkoaga3ca1rp0x4hFQxeETh7aKDashmNLMUPSfGO90g-6mkeD7kvp_iBdjDpOMd3j9EcJ-dMVCkYJBdMVCkcJhdMV-uVJ2rCtdGn5T7fTa683qx33z4HVtcn4xeisi-mX647rNhRb11dFv1iWXakb8BwWP8KLAex9hf1rkoNr4PAaOPoXnDQ3nwEAAP__9wcgdA== # These rows are all on the same node 1 (gateway). query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM parent1 JOIN child2 USING(pid1) WHERE pid1 IN (1, 11, 21, 31) ORDER BY pid1] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyMUE1LxDAUvPsrZE6KD9ws6iEg5LoirvQqPYTmbTfQTcrLqyhL_7u0OagHwVvmIzOZnJFy4Bd_4gL7BoOWMEruuJQsC1UNu_ABuyHENE660C2hy8KwZ2jUgWGxS8oysH_nhn1gecoxsdxuQAisPg5rwzMfFEtHPHn5dKMXTmpAaGJ__Kl0xziELQg1B4SBD3rlzM31oyze9QjCflJ76Qy5Lbk7cvfkHtDOhDzp92OL-p5hzUz_H9RwGXMq_GvAX8mbuSVw6Ll-WsmTdPwquVtrKtyv91YicNGqmgp2qUpzO198BQAA___Vk4P- +https://cockroachdb.github.io/distsqlplan/decode.html#eJyMUE1LxDAUvPsrZE6KD9ws6iEg5LoirvQqPYTmbTfQTcrLqyhL_7u0OagHwVvmIzOZnJFy4Bd_4gL7BoOWMEruuJQsC1UNu_ABuyHENE660C2hy8KwZ2jUgWGxS8oysH_nhn1gecoxsdxuQAisPg5rwzMfFEtHPHn5dKMXTmpAaGJ__Kl0xziELQg1B4SBD3rlzM31oyze9QjCflJ76Qy5Lbk7cvfkHtDOhDzp92OL-p5hzUz_H9RwGXMq_GvAX8mbuSVw6Ll-WsmTdPwquVtrKtyv91YicNGqmgp2qUpzO198BQAA___Vk4P- # Parent-grandchild. query T @@ -232,7 +232,7 @@ SELECT url FROM [EXPLAIN (DISTSQL) OR pid1 >= 31 AND pid1 <= 33 ] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzslE9r3DAQxe_9FGJOu3RKLDlpqWBBhVJwKd5iemt9ENbEETiSkeTSEvzdi-0u8Yb0Xwohh71ZevPjDX6juQHnDZX6miLIz8ABQQDCBdQIffANxejDJC2FhfkGMkOwrh_SdF0jND4QyBtINnUEEgqXKHSkv1JF2lB4762jcJYBgqGkbTc7faDLBJOHvdbhu-p1IJcm-0lg72yXKEi22SjOvgxZljc7xnMpZVF-2rJ9tVJox_jrg_KmfMvWjOA_le1CraD8IAFCZdurdTtt0M40V7Yz4qA-ek_LfwOEji7TRvHn212YGpk_AWE_JMkURyVQnaO6QPUS1SuoRwQ_pNt8YtItgeQj_iLD2-gG54OhQOYoq3q8J-XSv_D9WX6n8H5rcWTNHzQ-_DQ-T2h8xIMyFKcMn1CGf1jjFcXeu0h_9cKzaUWQaWnZJ9EPoaGPwTezzXLcz9x8YSimReXLoXCzNDe4hvlv4fMjOLsLi_9xzv8JrsdnPwIAAP__gf0kvQ== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzslE9r3DAQxe_9FGJOu3RKLDlpqWBBhVJwKd5iemt9ENbEETiSkeTSEvzdi-0u8Yb0Xwohh71ZevPjDX6juQHnDZX6miLIz8ABQQDCBdQIffANxejDJC2FhfkGMkOwrh_SdF0jND4QyBtINnUEEgqXKHSkv1JF2lB4762jcJYBgqGkbTc7faDLBJOHvdbhu-p1IJcm-0lg72yXKEi22SjOvgxZljc7xnMpZVF-2rJ9tVJox_jrg_KmfMvWjOA_le1CraD8IAFCZdurdTtt0M40V7Yz4qA-ek_LfwOEji7TRvHn212YGpk_AWE_JMkURyVQnaO6QPUS1SuoRwQ_pNt8YtItgeQj_iLD2-gG54OhQOYoq3q8J-XSv_D9WX6n8H5rcWTNHzQ-_DQ-T2h8xIMyFKcMn1CGf1jjFcXeu0h_9cKzaUWQaWnZJ9EPoaGPwTezzXLcz9x8YSimReXLoXCzNDe4hvlv4fMjOLsLi_9xzv8JrsdnPwIAAP__gf0kvQ== query T SELECT url FROM [EXPLAIN (DISTSQL) @@ -242,7 +242,7 @@ SELECT url FROM [EXPLAIN (DISTSQL) OR pid1 >= 31 AND pid1 <= 33 ] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzslE-L2zAQxe_9FGJOCZ2ylr1LqSCgQim4FKeY3lofhDXrFXglI8mlZfF3L7Yb4oT0Xwolh9wsvfnxBr_RPIF1mgr1SAHEJ-CAkALCHVQInXc1heD8KM2Fuf4KIkEwtuvjeF0h1M4TiCeIJrYEAnIbybekvlBJSpN_54wlf5MAgqaoTDs5vaf7CKOHeVT-m2y8srp-MK0e7UeRvTVtJC_YaiU5-9wnSVZvGM-EEHnxcc225UKhDeOvdsrr4g1bMin_oaxnagFlOwkQStM8LFvqlCcb-U757_3M_w0QWrqPK8mfrzd-bGT6BIRtHwWTHGWKMkN5i_IO5UuoBgTXx30-IaqGQPABf5LhPrreOq_Jkz7IqhpOpFy4F667yY4KT1unB9b8rPHh1_G5oPFJz8owvWZ4QRn-Zo2XFDpnA_3RC0_GFUG6oXmfBNf7mj54V08283E7cdOFphBnlc-H3E7S1OAS5r-Ebw_g5BhO_8U5-yu4Gp59DwAA__8zXSS0 +https://cockroachdb.github.io/distsqlplan/decode.html#eJzslE-L2zAQxe_9FGJOCZ2ylr1LqSCgQim4FKeY3lofhDXrFXglI8mlZfF3L7Yb4oT0Xwolh9wsvfnxBr_RPIF1mgr1SAHEJ-CAkALCHVQInXc1heD8KM2Fuf4KIkEwtuvjeF0h1M4TiCeIJrYEAnIbybekvlBJSpN_54wlf5MAgqaoTDs5vaf7CKOHeVT-m2y8srp-MK0e7UeRvTVtJC_YaiU5-9wnSVZvGM-EEHnxcc225UKhDeOvdsrr4g1bMin_oaxnagFlOwkQStM8LFvqlCcb-U757_3M_w0QWrqPK8mfrzd-bGT6BIRtHwWTHGWKMkN5i_IO5UuoBgTXx30-IaqGQPABf5LhPrreOq_Jkz7IqhpOpFy4F667yY4KT1unB9b8rPHh1_G5oPFJz8owvWZ4QRn-Zo2XFDpnA_3RC0_GFUG6oXmfBNf7mj54V08283E7cdOFphBnlc-H3E7S1OAS5r-Ebw_g5BhO_8U5-yu4Gp59DwAA__8zXSS0 query TTT EXPLAIN SELECT * FROM grandchild2 JOIN parent1 USING(pid1) WHERE @@ -277,7 +277,7 @@ SELECT url FROM [EXPLAIN (DISTSQL) OR gcid2 >= 49 AND gcid2 <= 51 ] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzslUFr2zAUx-_7FOKdHPJGLVluV0FAgzHIGMkIu20-GOs1NbhWkOSxUfLdh-3FrUs21gRy8tH668df8k_wHqG2hlb5A3lQ34ADggCEBBAkIKSQIeycLch769otPbA0P0HFCGW9a0K7nCEU1hGoRwhlqAgULOtArqL8B20oN-Q-2bImdxUDgqGQl1XX-JnuArQd5UPufunivqxMe4JNub1_HmxdXptxyj6WVSCnWBRFmrPvTRwntGCpUmq5-jpj71cf2BAUC3bzJ5ix9YZFkRYDwsWYEQPD5QE6UHKg5O2YkgOV8gMFCP29AaGiuxBpPkct5qiT-Wzh2muMlgBh3QTFNEctUCeoJeoU9TXqG9TvUN9CtkewTXj68T7kWwLF9_gXOU9Omto6Q47MSEK2P6JvZd_a3VX6YuPxajGq5ie9Cz69i0u8C3GSHDHJuYSc5CQ5ySTnEnLkSXLkJOfS4-6InA35na09_dc0i9txSGZL_ez0tnEFfXG26Gr6z3XHdQuGfOhT3n8s6y7qDvgc5v-Er0dw_BIW5zQn58DyHDh9FZzt3_wOAAD__-mfE2o= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzslUFr2zAUx-_7FOKdHPJGLVluV0FAgzHIGMkIu20-GOs1NbhWkOSxUfLdh-3FrUs21gRy8tH668df8k_wHqG2hlb5A3lQ34ADggCEBBAkIKSQIeycLch769otPbA0P0HFCGW9a0K7nCEU1hGoRwhlqAgULOtArqL8B20oN-Q-2bImdxUDgqGQl1XX-JnuArQd5UPufunivqxMe4JNub1_HmxdXptxyj6WVSCnWBRFmrPvTRwntGCpUmq5-jpj71cf2BAUC3bzJ5ix9YZFkRYDwsWYEQPD5QE6UHKg5O2YkgOV8gMFCP29AaGiuxBpPkct5qiT-Wzh2muMlgBh3QTFNEctUCeoJeoU9TXqG9TvUN9CtkewTXj68T7kWwLF9_gXOU9Omto6Q47MSEK2P6JvZd_a3VX6YuPxajGq5ie9Cz69i0u8C3GSHDHJuYSc5CQ5ySTnEnLkSXLkJOfS4-6InA35na09_dc0i9txSGZL_ez0tnEFfXG26Gr6z3XHdQuGfOhT3n8s6y7qDvgc5v-Er0dw_BIW5zQn58DyHDh9FZzt3_wOAAD__-mfE2o= query TTT EXPLAIN @@ -308,7 +308,7 @@ SELECT url FROM [EXPLAIN (DISTSQL) pid1 >= 10 AND pid1 <= 39 ] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUlVGrmzAUx9_3KS7n6V4WuEZtbysM3GPHto6OPQ0fgjm1gk0kiWOj-N1HlLVa2jisL74lOefv75z_CeYEQnL8yo6oIfoJFAj4QCAAAiEQWEBCoFQyRa2lsimtYMN_Q-QRyEVZGXucEEilQohOYHJTIESwEQZVgewX7pBxVJ9kLlC9WgRHw_KiIX7GvQHLyI9M_YlLplAYm2MDT9vKRE-x3e7y7NBNTA95wc-Bf4kkttW3JCBQ4N48x_T9ywdls5olEDgnB5DUBGRlLl1owzKEiNbk_zv9mGUKM2akel32u_v-48tzTC2zWfkvd4H-XeCFUwmpOCrkPUhSu0ui3tiagl5NdNS4_RmOe6DTjrdv04zbH2VtMENrBzrtWLuaxtpglLXhDK0d6LRj7Xoaa8NR1noztHag0461i-n__zeAO9SlFBqv3oHbX_bs-4A8w_Yx0bJSKX5TMm0w7Xbb6JoDjtq0UdpuNqIN2QK7YuoU-z0xvRb7bvIAOnCqQ7c4fKTuhVO8dJOXj5DfnOKVm7x6hLx2z8obuCbuS3bNTup3fwMAAP__hy1jzg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUlVGrmzAUx9_3KS7n6V4WuEZtbysM3GPHto6OPQ0fgjm1gk0kiWOj-N1HlLVa2jisL74lOefv75z_CeYEQnL8yo6oIfoJFAj4QCAAAiEQWEBCoFQyRa2lsimtYMN_Q-QRyEVZGXucEEilQohOYHJTIESwEQZVgewX7pBxVJ9kLlC9WgRHw_KiIX7GvQHLyI9M_YlLplAYm2MDT9vKRE-x3e7y7NBNTA95wc-Bf4kkttW3JCBQ4N48x_T9ywdls5olEDgnB5DUBGRlLl1owzKEiNbk_zv9mGUKM2akel32u_v-48tzTC2zWfkvd4H-XeCFUwmpOCrkPUhSu0ui3tiagl5NdNS4_RmOe6DTjrdv04zbH2VtMENrBzrtWLuaxtpglLXhDK0d6LRj7Xoaa8NR1noztHag0461i-n__zeAO9SlFBqv3oHbX_bs-4A8w_Yx0bJSKX5TMm0w7Xbb6JoDjtq0UdpuNqIN2QK7YuoU-z0xvRb7bvIAOnCqQ7c4fKTuhVO8dJOXj5DfnOKVm7x6hLx2z8obuCbuS3bNTup3fwMAAP__hy1jzg== ############### # Outer joins # @@ -379,22 +379,22 @@ NULL /0 20 {5} 5 query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM outer_p1 FULL OUTER JOIN outer_c1 USING (pid1)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzclE2L2zAQhu_9FWJOu3TK-nMPhoIuDTgYp5jkVEwx1iQ1OJKR5NIQ_N-L7EOaNP1Y5-abpdEzr585zBmkEpRXRzKQfAEfEAJACAEhAoQYSoROq5qMUdo9mYBU_IDEQ2hk11t3XSLUShMkZ7CNbQkSSKUl3VL1nQqqBOm1aiTpFxchyFZNOyZmtLfgMppjpU9c9Zb01849KprDt99LtStNrQBhe-ooYatdlrHNbvupYOtNmgNCS3v7xP33zx-16zJ-upYkBemEpat8l2VP3EcePiPjATIeIeMxMv4K5YCgensxM7Y6ECT-gH-wv0j3UmlBmsSVZTncmU-uPqjuJb55eD86uIr2Zw0-WMjgg1n24ULsw1n20ULso1n23kLs_7FwCzKdkob-a6N4biWRONC0v4zqdU2ftarHmOm4GbnxQpCxU9WfDqkcS-MP_gr7f4Vfr2DvFg4eSQ4fgaNH4PhNcDm8-xkAAP__5oReVw== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzclE2L2zAQhu_9FWJOu3TK-nMPhoIuDTgYp5jkVEwx1iQ1OJKR5NIQ_N-L7EOaNP1Y5-abpdEzr585zBmkEpRXRzKQfAEfEAJACAEhAoQYSoROq5qMUdo9mYBU_IDEQ2hk11t3XSLUShMkZ7CNbQkSSKUl3VL1nQqqBOm1aiTpFxchyFZNOyZmtLfgMppjpU9c9Zb01849KprDt99LtStNrQBhe-ooYatdlrHNbvupYOtNmgNCS3v7xP33zx-16zJ-upYkBemEpat8l2VP3EcePiPjATIeIeMxMv4K5YCgensxM7Y6ECT-gH-wv0j3UmlBmsSVZTncmU-uPqjuJb55eD86uIr2Zw0-WMjgg1n24ULsw1n20ULso1n23kLs_7FwCzKdkob-a6N4biWRONC0v4zqdU2ftarHmOm4GbnxQpCxU9WfDqkcS-MP_gr7f4Vfr2DvFg4eSQ4fgaNH4PhNcDm8-xkAAP__5oReVw== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM outer_gc1 FULL OUTER JOIN outer_c1 USING (pid1, cid1, cid2)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzklU2LnEAQhu_5FVKnHabC-rlJhEBfsuAiTpCdU5Agdq0R3G7pbkOWwf8eWiEzTiYf6xw9Vlc9_crTUB5ASE5Z-Uwa4i_gAYIPCAEghIAQQYHQKVmR1lLZkQlI-A-IXYRGdL2xxwVCJRVBfADTmJYghkQYUi2V3ymnkpN6kI0gdWsjOJmyacfElJ4M2IzmuVQvTPaG1Ne6slN5U3_7vTe2prsA4fGlo9i536eps9s_fsqdh12SAUJLT-aGeVtk_hZZsN18VPa22ZGNIMFJxU5yn-3T9IZ5yO42-Kv0kb07KQNk7zfosBAdFqHDPkAxIMjeHCVoU9YEsTfgH0Qd_fRCKk6K-ExIMVxQmcm3sruNzgYvR_uzaG_RG_nreyN_kahgfaKCRaLC9YkKF4ly1yfqH_-RnHQnhab_2n6uXZ_Ea5p2rZa9quizktUYM5W7kRsPOGkzdb2pSMTYGj_wFPb-Ct_NYPcc9q9JDq6Bw2vg6FVwMbz5GQAA__8alY8h +https://cockroachdb.github.io/distsqlplan/decode.html#eJzklU2LnEAQhu_5FVKnHabC-rlJhEBfsuAiTpCdU5Agdq0R3G7pbkOWwf8eWiEzTiYf6xw9Vlc9_crTUB5ASE5Z-Uwa4i_gAYIPCAEghIAQQYHQKVmR1lLZkQlI-A-IXYRGdL2xxwVCJRVBfADTmJYghkQYUi2V3ymnkpN6kI0gdWsjOJmyacfElJ4M2IzmuVQvTPaG1Ne6slN5U3_7vTe2prsA4fGlo9i536eps9s_fsqdh12SAUJLT-aGeVtk_hZZsN18VPa22ZGNIMFJxU5yn-3T9IZ5yO42-Kv0kb07KQNk7zfosBAdFqHDPkAxIMjeHCVoU9YEsTfgH0Qd_fRCKk6K-ExIMVxQmcm3sruNzgYvR_uzaG_RG_nreyN_kahgfaKCRaLC9YkKF4ly1yfqH_-RnHQnhab_2n6uXZ_Ea5p2rZa9quizktUYM5W7kRsPOGkzdb2pSMTYGj_wFPb-Ct_NYPcc9q9JDq6Bw2vg6FVwMbz5GQAA__8alY8h query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM outer_c1 LEFT OUTER JOIN outer_p1 USING (pid1) WHERE pid1 >= 0 AND pid1 < 40] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUlE-Lo0AQxe_7KeSddtlaYqu7B2HBSwYMIQ6SOQ0yiF3JCMaW7naYEPzug3rIJJP5l5xys_v1q1e_gnKHWkle5Bs2CO8hQPBA8EEIkBEarQo2RuleHh_H8hmhSyjrprX9dUYolGaEO9jSVowQcW1ZV5w_ccq5ZD1TZc164oIg2eZlNaTNeWXRZ5SbXG8j1VrWD0XfQ1quH99KTS-NpUBYbhsOnfn0Zukkd8tp6sySeAFCxSv7MxK_f_3XfZXhE4SktaETCYo8inyKAor-IesIqrV7DmPzNSMUHb3Dukdsa6Ula5YHTFl3YhoL9Uc1k-Do4elo7yBanDVmcZVj9s5i9a6S1T-L1b9K1k9-FSmbRtWGv7Qdbr9eLNc87qJRrS74VqtiiBmPyeAbLiQbO6piPMT1IA0NvjaLD81_D8zusdm7JNm_xBx8y5x1P14CAAD___ca6HA= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUlE-Lo0AQxe_7KeSddtlaYqu7B2HBSwYMIQ6SOQ0yiF3JCMaW7naYEPzug3rIJJP5l5xys_v1q1e_gnKHWkle5Bs2CO8hQPBA8EEIkBEarQo2RuleHh_H8hmhSyjrprX9dUYolGaEO9jSVowQcW1ZV5w_ccq5ZD1TZc164oIg2eZlNaTNeWXRZ5SbXG8j1VrWD0XfQ1quH99KTS-NpUBYbhsOnfn0Zukkd8tp6sySeAFCxSv7MxK_f_3XfZXhE4SktaETCYo8inyKAor-IesIqrV7DmPzNSMUHb3Dukdsa6Ula5YHTFl3YhoL9Uc1k-Do4elo7yBanDVmcZVj9s5i9a6S1T-L1b9K1k9-FSmbRtWGv7Qdbr9eLNc87qJRrS74VqtiiBmPyeAbLiQbO6piPMT1IA0NvjaLD81_D8zusdm7JNm_xBx8y5x1P14CAAD___ca6HA= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM outer_p1 RIGHT OUTER JOIN outer_gc1 USING (pid1) WHERE pid1 >= 1 AND pid1 <= 20] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUlE9r20AQxe_9FOKdWjrF-ucWBIW9lFamWEW4pyCC0I4VgawVu6sQY_Tdg6SDY8f5Z5980-7bN29-A6MdGiV5mW_YILqBB4IPQgBCiIzQalWwMUoP8vQ4lg-IXELVtJ0drjNCoTQj2sFWtmZEiBvLuub8nlPOJeuFqhrWMxcEyTav6jHtL68thoxqk-utUJ1lfdsOPaRVefdcKotBm2qBsNq2HDlp_PvPykn-r36lziKJlyDUvLafhff1y0891Bk_QUg6GzkiIOGTCEnMSXwn8QNZT1Cd3cMYm5eMyOvpBeA9Z9coLVmzPADL-hMjWapvqp2FRw9PR_sH0d5Zs_aud9b-WcD-9QIHZwEH1wv8xu8jZdOqxvC7lsUdto1lydNqGtXpgv9pVYwx0zEZfeOFZGMn1ZsOcTNKY4NPzd6r5vmB2T02-5ckB5eYww-Zs_7TYwAAAP__Vjbt9A== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUlE9r20AQxe_9FOKdWjrF-ucWBIW9lFamWEW4pyCC0I4VgawVu6sQY_Tdg6SDY8f5Z5980-7bN29-A6MdGiV5mW_YILqBB4IPQgBCiIzQalWwMUoP8vQ4lg-IXELVtJ0drjNCoTQj2sFWtmZEiBvLuub8nlPOJeuFqhrWMxcEyTav6jHtL68thoxqk-utUJ1lfdsOPaRVefdcKotBm2qBsNq2HDlp_PvPykn-r36lziKJlyDUvLafhff1y0891Bk_QUg6GzkiIOGTCEnMSXwn8QNZT1Cd3cMYm5eMyOvpBeA9Z9coLVmzPADL-hMjWapvqp2FRw9PR_sH0d5Zs_aud9b-WcD-9QIHZwEH1wv8xu8jZdOqxvC7lsUdto1lydNqGtXpgv9pVYwx0zEZfeOFZGMn1ZsOcTNKY4NPzd6r5vmB2T02-5ckB5eYww-Zs_7TYwAAAP__Vjbt9A== ######################## # Non-interleaved joins # @@ -405,37 +405,37 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJzUlE9r20AQxe_9FOKdWjrF-u query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM child1 JOIN child2 USING(pid1)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzElsFq20AQhu99ijCnlmyxdyXZsaCgawpNSuit-KBYU1vgaM1Kgobgdy-yCq5ldUabwfLNsvbbnZ35QP8bFDbDh_QFS4h_ggYFBhQEoCAEBREsFeycXWFZWtcsaYH77DfEUwV5saur5u-lgpV1CPEbVHm1RYjhR_q8xSdMM3STKSjIsErz7eGYnctfUvearDb5NtOw3CuwdfV3q-MOz683m7TcnLJJs36poKzSNUKs9-p9JUVESUZUkvlvScd9rMvQYdbd57Y5eNCqntt9Q7fGrzYv0E10p-Nb_FV9TPTtpy8uX2_an6Dgsa7im0SrxKgkUEmkkplK5p3bH28WDLhZXfRV3Vvwg_1sdxMddVb2nx2enK2HD1qP5J5HSbOR3NPXcU9f3j0zvNlmpPl7lDQfaf7mOvM3l59_MLzZwUjz9yjpbqT5B9eZf3D5-YfDmx2ONH-PkhYjzT-8zvzDcbNHTzlPWO5sUeKgZDFtLoTZGts2lbZ2K_zu7OpwTPv4eOAOX9QMy6p9a9qH-6J91RQ4HJ5J4IUE1qK6dUTT2qNlxg-eSeCFBNaiujstO6NNl57-Swd0vwMS1qc9m3bpUCI4DTOC0zAjOA1zgjM0I3gkEZyGGcFpmBGchjnBGZoRfCYRfC5RlIYZRWmYUZSGOUUZmlH0TqIoDTOK0jCjKA1zijI0o-hCoqgW5QSGZiRlaMZShuY05XAuK8jCgiwtyOKCMC_IAoMWJQZ9Fhm8bKVpzlaa5myladZWBuds9QlL5zPzSUu-NGerV17yxjlbz8IDaety_-FPAAAA__-7ahyi +https://cockroachdb.github.io/distsqlplan/decode.html#eJzElsFq20AQhu99ijCnlmyxdyXZsaCgawpNSuit-KBYU1vgaM1Kgobgdy-yCq5ldUabwfLNsvbbnZ35QP8bFDbDh_QFS4h_ggYFBhQEoCAEBREsFeycXWFZWtcsaYH77DfEUwV5saur5u-lgpV1CPEbVHm1RYjhR_q8xSdMM3STKSjIsErz7eGYnctfUvearDb5NtOw3CuwdfV3q-MOz683m7TcnLJJs36poKzSNUKs9-p9JUVESUZUkvlvScd9rMvQYdbd57Y5eNCqntt9Q7fGrzYv0E10p-Nb_FV9TPTtpy8uX2_an6Dgsa7im0SrxKgkUEmkkplK5p3bH28WDLhZXfRV3Vvwg_1sdxMddVb2nx2enK2HD1qP5J5HSbOR3NPXcU9f3j0zvNlmpPl7lDQfaf7mOvM3l59_MLzZwUjz9yjpbqT5B9eZf3D5-YfDmx2ONH-PkhYjzT-8zvzDcbNHTzlPWO5sUeKgZDFtLoTZGts2lbZ2K_zu7OpwTPv4eOAOX9QMy6p9a9qH-6J91RQ4HJ5J4IUE1qK6dUTT2qNlxg-eSeCFBNaiujstO6NNl57-Swd0vwMS1qc9m3bpUCI4DTOC0zAjOA1zgjM0I3gkEZyGGcFpmBGchjnBGZoRfCYRfC5RlIYZRWmYUZSGOUUZmlH0TqIoDTOK0jCjKA1zijI0o-hCoqgW5QSGZiRlaMZShuY05XAuK8jCgiwtyOKCMC_IAoMWJQZ9Fhm8bKVpzlaa5myladZWBuds9QlL5zPzSUu-NGerV17yxjlbz8IDaety_-FPAAAA__-7ahyi # Join on non-interleaved tables (with key) uses merge joiner. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM parent1 JOIN parent2 ON pid1=pid2] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lVFr2zAQx9_3Kco9bVQjluykqWHg1w7WjrK34Qc1uiWG1DKSDCsl333YLmQxic5GRG9xrJ_u_r8D3zvUWuGjfEUL-W_gwEAAgxQYZMBgCSWDxugNWqtNd2QAHtRfyBMGVd20rvu7ZLDRBiF_B1e5PUIOv-TLHp9RKjSLBBgodLLa92UaU71K81Y00mDtOJQHBrp1H3cdr3h5u9lJuzuFi-58ycA6uUXI-YFd6Ol4jzYKDarxPbdd4eOptj53rq81zvYDzRa_66pGs1idXrvHP-5zwW-_fDPVdjf8BAZPrctvCs4KwYqUFdko8zFPOiHPjE4f9VfdLDgfnTxfOzupzafPl8eaL48_37trzldMdyxiORbxHa-v6Tid7jiN5TiN7_j-mo6z6Y6zWI5n9LT09SSCehIXe4o0d57EWlBnGnlG2-ja4qT1k3RRUG1xsGN1azb40-hNX2Z4fOq5fhEotG54-_HwUA-vuganw1kIvAqB1yEwJ0LzMZ38Tws_LLwwP6WTMZ2GDMsPE8Pyw8Sw_DAxLCIzEToLGdYyRLcfJnT7YUK3HyZ0E5mJ0KsQ3Xchuv0wodsPE7r9MKGbyEyEXofovg_R7YcJ3X6Y0O2HCd1EZurLP2dZipl0FkSvguh1EM2p4PM2Znn49C8AAP__9ASy7Q== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lVFr2zAQx9_3Kco9bVQjluykqWHg1w7WjrK34Qc1uiWG1DKSDCsl333YLmQxic5GRG9xrJ_u_r8D3zvUWuGjfEUL-W_gwEAAgxQYZMBgCSWDxugNWqtNd2QAHtRfyBMGVd20rvu7ZLDRBiF_B1e5PUIOv-TLHp9RKjSLBBgodLLa92UaU71K81Y00mDtOJQHBrp1H3cdr3h5u9lJuzuFi-58ycA6uUXI-YFd6Ol4jzYKDarxPbdd4eOptj53rq81zvYDzRa_66pGs1idXrvHP-5zwW-_fDPVdjf8BAZPrctvCs4KwYqUFdko8zFPOiHPjE4f9VfdLDgfnTxfOzupzafPl8eaL48_37trzldMdyxiORbxHa-v6Tid7jiN5TiN7_j-mo6z6Y6zWI5n9LT09SSCehIXe4o0d57EWlBnGnlG2-ja4qT1k3RRUG1xsGN1azb40-hNX2Z4fOq5fhEotG54-_HwUA-vuganw1kIvAqB1yEwJ0LzMZ38Tws_LLwwP6WTMZ2GDMsPE8Pyw8Sw_DAxLCIzEToLGdYyRLcfJnT7YUK3HyZ0E5mJ0KsQ3Xchuv0wodsPE7r9MKGbyEyEXofovg_R7YcJ3X6Y0O2HCd1EZurLP2dZipl0FkSvguh1EM2p4PM2Znn49C8AAP__9ASy7Q== # Join on non-interleaved column uses hash joiner. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM parent1 JOIN child1 ON pa1 = ca1] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8llFr2zwUhu-_X1HOVQv6SCTZaWMY-HLdRTvK7oYv3PgsMaSWkRVYKfnvI_Egi-PpWDtEl2nySK_OeaDvBzSmwqfyDTvIvoMEAQoEaBCQgIAUCgGtNSvsOmMPP-mBx-onZHMBddPu3OHPhYCVsQjZB7jabREy-Fa-bvEFywrtbA4CKnRlvT1e09r6rbTveVtabJyEYi_A7Nzvs05HvL7fbMpucw7nCop9IaBz5Rohk3vxb5nS8UyrTb2tQiPps0jqr5FO5-waYyu0WJ2dVBxI6icj7_pcdpsvpm7QzuRg1lv84W5zdffJ1uuNu831HQh43rnsJpciVyLXIk9Eng5efHqNZrxmJOqT-d-0M5kO3z16d3J2t5y-XBlLuIBMi0jCycjCyasKp6YPWMVaekCm-0hLV5GXrq66dD19wDrW0gMyPURauo68dH3VpSfTB5zEWnpApmWkpSeRl55E6xMjQV6wa03T4aS2MD88Bas19qPpzM6u8Ks1q-M1_cfnI3f8J1lh5_pvVf_hsem_OgScDi848JIDS1ZumfppGTAyFQYvOPCSA0tW7sHILmg1pOd_0to_b-2F5fnM5kM64QjuhwnB_TAhuB-mBCdoQvCUI7gfJgT3w4TgfpgSnKAJwRccwe85ivphQlE_TCjqhylFCZpQ9IGjqB8mFPXDhKJ-mFKUoAlFlxxFJasnEDQhKUETlhI0pSmFU12BVxZ4bYFXF5h9gVcYJKsxyIvKEGSrn6Zs9dOUrX6atJXAKVtDytLlzkLaUihN2RrUl4JxytaL8uC1tdj_9ysAAP__U3kYdA== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8llFr2zwUhu-_X1HOVQv6SCTZaWMY-HLdRTvK7oYv3PgsMaSWkRVYKfnvI_Egi-PpWDtEl2nySK_OeaDvBzSmwqfyDTvIvoMEAQoEaBCQgIAUCgGtNSvsOmMPP-mBx-onZHMBddPu3OHPhYCVsQjZB7jabREy-Fa-bvEFywrtbA4CKnRlvT1e09r6rbTveVtabJyEYi_A7Nzvs05HvL7fbMpucw7nCop9IaBz5Rohk3vxb5nS8UyrTb2tQiPps0jqr5FO5-waYyu0WJ2dVBxI6icj7_pcdpsvpm7QzuRg1lv84W5zdffJ1uuNu831HQh43rnsJpciVyLXIk9Eng5efHqNZrxmJOqT-d-0M5kO3z16d3J2t5y-XBlLuIBMi0jCycjCyasKp6YPWMVaekCm-0hLV5GXrq66dD19wDrW0gMyPURauo68dH3VpSfTB5zEWnpApmWkpSeRl55E6xMjQV6wa03T4aS2MD88Bas19qPpzM6u8Ks1q-M1_cfnI3f8J1lh5_pvVf_hsem_OgScDi848JIDS1ZumfppGTAyFQYvOPCSA0tW7sHILmg1pOd_0to_b-2F5fnM5kM64QjuhwnB_TAhuB-mBCdoQvCUI7gfJgT3w4TgfpgSnKAJwRccwe85ivphQlE_TCjqhylFCZpQ9IGjqB8mFPXDhKJ-mFKUoAlFlxxFJasnEDQhKUETlhI0pSmFU12BVxZ4bYFXF5h9gVcYJKsxyIvKEGSrn6Zs9dOUrX6atJXAKVtDytLlzkLaUihN2RrUl4JxytaL8uC1tdj_9ysAAP__U3kYdA== # Prefix join on interleaved columns uses merge joiner. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM child2 JOIN grandchild2 USING(pid1, cid2)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEll1r2zAUhu_3K8q52qhGItn5Mgx828HaUXY3cuFGZ47BtYxsw0rJfx-2C1kcT8eainzp2I_06uiBvK9QKIn3yTNWEP0EDgwEMAiAQQgMVrBnUGp1wKpSuv2kB-7kb4iWDLKibOr25z2Dg9II0SvUWZ0jRPAjecrxEROJerEEBhLrJMu7bUqdPSf6JT4cs1wK2J8YqKZ-W-q8wtPLzTGpjpdszFncInsGVZ2kCBE_sf9LtRpPleqkkO8TTfwz2nkppSVqlMOlblksbtv9J385ctpvqFP8qrIC9YIPLiHHX_XHN_rTF52lx_MjMHho6uimOxGLAx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N28NoF3rnA3Cn3YGRXtBjSy7_pwDzvwAjzy5kth3ToIrgZJgQ3w4TgZpgSnKAJwVcugpthQnAzTAhuhinBCZoQfO0i-MZFUTNMKGqGCUXNMKUoQROKbl0UNcOEomaYUNQMU4oSNKHozkVR7tQTCJqQlKAJSwma0pTCqa7gVhbc2oJbXXDsC26FgTs1Bn5VGaxsNdOUrWaastVMk7YSOGWrTVm6vjObtmRLU7Za9SVrnLL1qjwYbd2fPvwJAAD__4eyQAE= # Subset join on interleaved columns uses hash joiner. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM child2 JOIN grandchild2 USING(pid1, cid3)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzElsGK2zAQhu99imVOLagkkp1sYij42O1htyy9FR-80TQxZK0gOdBlybsX2y1pHFdjdYp6VOxP-jX-IP8r1EbjffmMDrKvIEGAAgEJCEhBwAIKAQdrNuicse0rPXCnv0M2F1DVh2PT_lwI2BiLkL1CUzV7hAy-lE97fMRSo53NQYDGpqz23TEHWz2X9iXf7Kq9VlCcBJhj83Or8w5PLze70u0u2VyKPIHiVAhwTblFyORJ_F2qxXiqrS1r_W-iqT9GO291rI3VaFFfbFa0JPXKyP0-lm73yVQ12pkcTH2P35q3XcZ3H2y13f1agICHY5PddCuRK5GnIl-KfCXy9WAA55sljJuNxL43781hJhfDGYyenV6cLad_cBlPw4BUy8gaysgaymgaqulDV_FUCEh1G1kFFVkFFU2FZPrQk3gqBKRaRVYhiaxCEk2FdPrQ03gqBKRaR1YhjaxC-l96ykioR3QHUzuc1ELm7bVQb7EfkzNHu8HP1my6Y_rlQ8d1f7kaXdM_Vf3iru4ftQGnw0sOvObAkpVbLvy0DBiZCoOXHHjNgSUr92BkV7Qa0vPf6cQ_78QLy8uZzYd0yhHcDxOC-2FCcD9MCU7QhOALjuB-mBDcDxOC-2FKcIImBF9yBL_lKOqHCUX9MKGoH6YUJWhC0RVHUT9MKOqHCUX9MKUoQROKrjmKSlZPIGhCUoImLCVoSlMKp7oCryzw2gKvLjD7Aq8wSFZjkFeVIchWP03Z6qcpW_00aSuBU7aGlKXrbxbSlkJpytagvhSMU7ZelQevrcXpzY8AAAD__5b5Mtw= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzElsGK2zAQhu99imVOLagkkp1sYij42O1htyy9FR-80TQxZK0gOdBlybsX2y1pHFdjdYp6VOxP-jX-IP8r1EbjffmMDrKvIEGAAgEJCEhBwAIKAQdrNuicse0rPXCnv0M2F1DVh2PT_lwI2BiLkL1CUzV7hAy-lE97fMRSo53NQYDGpqz23TEHWz2X9iXf7Kq9VlCcBJhj83Or8w5PLze70u0u2VyKPIHiVAhwTblFyORJ_F2qxXiqrS1r_W-iqT9GO291rI3VaFFfbFa0JPXKyP0-lm73yVQ12pkcTH2P35q3XcZ3H2y13f1agICHY5PddCuRK5GnIl-KfCXy9WAA55sljJuNxL43781hJhfDGYyenV6cLad_cBlPw4BUy8gaysgaymgaqulDV_FUCEh1G1kFFVkFFU2FZPrQk3gqBKRaRVYhiaxCEk2FdPrQ03gqBKRaR1YhjaxC-l96ykioR3QHUzuc1ELm7bVQb7EfkzNHu8HP1my6Y_rlQ8d1f7kaXdM_Vf3iru4ftQGnw0sOvObAkpVbLvy0DBiZCoOXHHjNgSUr92BkV7Qa0vPf6cQ_78QLy8uZzYd0yhHcDxOC-2FCcD9MCU7QhOALjuB-mBDcDxOC-2FKcIImBF9yBL_lKOqHCUX9MKGoH6YUJWhC0RVHUT9MKOqHCUX9MKUoQROKrjmKSlZPIGhCUoImLCVoSlMKp7oCryzw2gKvLjD7Aq8wSFZjkFeVIchWP03Z6qcpW_00aSuBU7aGlKXrbxbSlkJpytagvhSMU7ZelQevrcXpzY8AAAD__5b5Mtw= # Sort node in between join and child nodes produces hash joiner. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM parent1 JOIN (SELECT * FROM child1 ORDER BY cid1) USING(pid1)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lk9vm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srw4VPV_x4K2xmoKX6jKqr2mkH4kD3t9r5NU22uPBKW6SrL9sUxhs6fEPkdFYnVeSYpfBZlD9fdZb494eL7aJeWuDUf172NBZZU8agrlq_i3nhbne9rusn3abemtnOKU-25spe217Bw_Uh9HHdl_t4e35xxyY1Ntddp6UlyT6CdnDvIlKXdfTZbXh-nMba9_Vf9H8sNnmz3ujv8iQXeHKryKpIiUiAIRLd4dZzDiKGf6vDWfTHGtvO6hz9ZetGrL4ebIuWxm9LS8gM2g3MlmOaXNcmabl9PZrIbfnprLKEZPqwsYBcqdjFJTGqVmNmo1nVH-8Nvz5zKK0dP6AkaBciej_CmN8mc2aj2dUcHw2wvmMorR0-YCRoFyJ6OCKY0KZjZqM8873Jku7nVZmLzUg97QvPocOn3UzVxKc7Bb_c2a7bFM8_HuyB1fHFJdVs23fvPhJm--qhscDq_HwFKNopdjaOW5admlvRbdgr0urBgDVzx4PQbuDJxLL8fQnYH3aN858MB9W4H7tqT7uhZj9sMNg_1ww2g_AA32w02j_Vg6J75yD3w1Zj_cMNgPN4z2A9BgP9w02o_1mP3YjDHcDQPD3TAyHNDAcDcNE6AXIK2JS_BHRfYShCM5oIHlgEaaIxx4DnAkuuzlCMd02csRjuqABq4DGsmOcGA7wKHu7gyVC6A7J0T7d85JUS4NdWflKBeHuruTFOnOiVIujXRnhSkbR7qz4rSPu_NUboDunETt3zknUrk01J0Vqlwc6a7cqdrVPX79708AAAD__3t4GdI= query TTT EXPLAIN SELECT * FROM parent1 JOIN (SELECT * FROM child1 ORDER BY cid1) USING (pid1) @@ -463,7 +463,7 @@ SELECT url FROM[EXPLAIN (DISTSQL) ORDER BY pid1 ] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzcls9u2kAQh-99imhOrbIV7NpAsFTJV6o2qVBvlQ8OnoAlx4vWS9Uo4t0rYxLMn-xgRhiJo7377c7OfIffK-Q6wfv4GQsI_oAEAQoEeCDABwE9iATMjZ5gUWhTbqmAUfIPgq6ANJ8vbPk7E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DIpTi-Ab_jx2z99k5v-9i3B81jg7mVrJrUhzVtztEmQYPJ7jm35cVH7TrwvJ9oprgeqtyZ6ttYaiM5PI7e_kQ2L_N4LztQ873-qucduT2Nj673t66XJ9kur8d2ogF12_tt2S4vY7s8v-3qJN3U9ehGNKCu26At3dRldFPn1807STfvenQjGlDX7a4t3bzL6OadXzf_JN3869GNaEBdt2FbuvmX0c1vNzoeKGeMxVznBR6VCrvlgzCZYtWmQi_MBH8ZPVldU30-rLhVPEmwsNWqqj5GebVUFng83OfAQw4sWXXLnpuWDVqmmsF9DjzkwJJV907L9mi1S3frtOfut-eE5XbPuru0zxHcDROCu2FCcDdMCU7QhOA9juBumBDcDROCu2FKcIImBO9zBB9wFHXDhKJumFDUDVOKEjSh6B1HUTdMKOqGCUXdMKUoQROKDjmKSlZOIGhCUoImLCVoSlMKp7ICLyzw0gIvLjDzAi8wSFZikHuRoZGtbpqy1U1Ttrpp0lYCp2xtEpb2Z9YkLTWlKVsb5aXGOGXrXnhw2hotP_0PAAD__9pnwiY= # Multi-table join with parent1 and child1 at the bottom uses interleaved # joiner but induces a hash joiner on the higher join. @@ -474,4 +474,4 @@ SELECT url FROM [EXPLAIN (DISTSQL) JOIN grandchild1 USING (pid1, cid1) ] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUls-K2zAQh-99imVOLVXZSLbzx1DwsSllt4Teig_aeDYxeK0gK6XLkncvjrPEdlJNHIEgtzjSJ81ovsPvDUqV4YN8wQri38CBgQAGATAIgUEEKYONVkusKqXrLQ0wz_5CPGKQl5utqf9OGSyVRojfwOSmQIhhXhrUBco_uECZof6u8hL1_QgYZGhkXuxv_IHPBuo78hepX5ON1FiauoxFvlq3V5brvMjqheYcYFDgs_mY8M-fvup67_4nMHjcmvgu4SwRLAlZEkG6Y6C25lDpscCn17u1rNbdemowgHSXMqiMXCHEfMcub_qXfCoO_d5H3ZPfG1lpWWaHbgaXJjqlif-WdjxqWyqdocasc1hak9SWM_19k9X6MEjem-Rh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qnvCbIXNG1Vqq5f4U6vl_prm83HP7TNIhpVpVkXzMS-bpbrAy-GxCzxzgblT3Tyy03zAk4lh8NgFnrnA3Knu3pOd0KJPj9p0YH_vwArz7puN-nToIrgdJgS3w4TgdpgSnKAJwSMXwe0wIbgdJgS3w5TgBE0IPnYRfOKiqB0mFLXDhKJ2mFKUoAlFpy6K2mFCUTtMKGqHKUUJmlB05qIod8oJBE1IStCEpQRNaUrhVFZwCwtuacEtLjjmBbfAwJ0SAz-JDINstdOUrXaastVOk7YSOGXrkLB0OrMhaWkoTdk6KC8NxilbT8KD1dZ09-FfAAAA___T9r_v diff --git a/pkg/sql/logictest/testdata/planner_test/distsql_join b/pkg/sql/logictest/testdata/planner_test/distsql_join index 57bb42b88294..0740ff8c863e 100644 --- a/pkg/sql/logictest/testdata/planner_test/distsql_join +++ b/pkg/sql/logictest/testdata/planner_test/distsql_join @@ -79,7 +79,7 @@ join · · (a, b, c, d) query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT * FROM (SELECT a,b FROM data AS data1) JOIN (SELECT c,d FROM data AS data2 ORDER BY c,d) ON a=c AND b=d ORDER BY c,d)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzElk9v2kwQxu_vp4jm9FbZCu_a_LNUiWsqNanS3ioODt6CJcKitZEaRXz3ChyEbMM-ni6yjwR-3tmZ3-TxO21Mqh-TV51T_IskCVIkKCRBEQka0lzQ1pqFznNjDz8pgYf0D8WBoGyz3RWHP88FLYzVFL9TkRVrTTH9TF7W-lknqbaDgASlukiy9fGYrc1eE_s2S5MiIUFPuyK-m0kxUzTfCzK74uOp54e9vN2tknxVfcwJmQvKi2SpKZZ78W8FDlsUGIpZVCvwfLLinPzD2ELbgQzq97kXM3Xv24TwainnRxmbaqvTq-e3_uWF233Tdqm_mmxzuGKtsWv9u_j_g_70xWbL1fljxQThbnfkf8cLlT-az2Y7UNWxXCthWClBtndN9rIMjAJHt10GcPJpGWQHyyD7XYZRF8ug2g9a9WIio8Dx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k-q8KL8Nyw8Pm_KrQ4Ht4YkPLJUXPfKhVeCmZZ0OKnQFDuqwYjRc8eCJD1xrOJce-dC1hjfo0NnwyD2tyD0t6R7X0Gc_3DDYDzeM9gPQYD_cNNqPkbPjY3fDxz774YbBfrhhtB-ABvvhptF-THz2Y-pjuBsGhrthZDiggeFuGiZAI0AqHZfgn4psJAhHckADywGNNEc48BzgSHTZyBGO6bKRIxzVAQ1cBzSSHeHAdoBD3d0ZKodAd06INmfOSVEuDXVn5SgXh7q7kxTpzolSLo10Z4UpG0e6s-K0ibvzVE6B7pxEbc6cE6lcGurOClUujnRX7lSt6z7f__c3AAD__68_ThQ= # ORDER BY on the columns equal to the mergeJoinOrder columns should not # require a terminal SORT node. @@ -108,7 +108,7 @@ join · · (a, b, c, d) query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT * FROM (SELECT a,b FROM data AS data1) JOIN (SELECT c,d FROM data AS data2 ORDER BY c,d) ON a=c AND b=d ORDER BY a,b)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzElk9v2kwQxu_vp4jm9FbZCu_a_LNUiWsqNanS3ioODt6CJcKitZEaRXz3ChyEbMM-ni6yjwR-3tmZ3-TxO21Mqh-TV51T_IskCVIkKCRBEQka0lzQ1pqFznNjDz8pgYf0D8WBoGyz3RWHP88FLYzVFL9TkRVrTTH9TF7W-lknqbaDgASlukiy9fGYrc1eE_s2S5MiIUFPuyK-m0kxUzTfCzK74uOp54e9vN2tknxVfcwJmQvKi2SpKZZ78W8FDlsUGIpZVCvwfLLinPzD2ELbgQzq97kXM3Xv24TwainnRxmbaqvTq-e3_uWF233Tdqm_mmxzuGKtsWv9u_j_g_70xWbL1fljxQThbnfkf8cLlT-az2Y7UNWxXCthWClBtndN9rIMjAJHt10GcPJpGWQHyyD7XYZRF8ug2g9a9WIio8DxbU0EJ59MVB2YqPo1cdyFiWH7QYe9mMgocHJbE8HJJxPDDkwM-zVx0oWJUftBR72YyChwelsTwcknE6MOTIz6NXHa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2tyD0t6R7X0Gc_3DDYDzeM9gPQYD_cNNqPkbPjY3fDxz774YbBfrhhtB-ABvvhptF-THz2Y-pjuBsGhrthZDiggeFuGiZAI0AqHZfgn4psJAhHckADywGNNEc48BzgSHTZyBGO6bKRIxzVAQ1cBzSSHeHAdoBD3d0ZKodAd06INmfOSVEuDXVn5SgXh7q7kxTpzolSLo10Z4UpG0e6s-K0ibvzVE6B7pxEbc6cE6lcGurOClUujnRX7lSt6z7f__c3AAD__68_ThQ= # ORDER BY on a different ordering should require a terminal SORT NODE. query TTTTT @@ -138,24 +138,24 @@ sort · · (a, b, c, d) query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT * FROM (SELECT a,b FROM data AS data1) JOIN (SELECT c,d FROM data AS data2 ORDER BY c,d) ON a=c AND b=d ORDER BY b,a)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEV0Fv2kwUvH-_Inqnr8pW8T4bAkiVuKZSkyrtreLg4C1BIixaG6lRlP9eAaHIJtnZ5SH7aOzZeZ6d2cEvtLSFuc2fTEmjX6RJEZOilBRlpKhHE0UrZ6emLK3bPLID3BR_aJQomi9X62rz80TR1DpDoxeq5tXC0Ih-5g8Lc2_ywrirhBQVpsrniy3Nys2fcvc8LvIqJ0V362p0MdZqzDR5VWTX1duqh8Ueni8e8_KxvsweMlFUVvnM0Ei_qtMG7AUMmKpx1hjwwMwxzD-sq4y70knzfS7VmC-lIqQfjnJYyrrCOFN8yB_85Dtv9824mflq58vNKzaEXZjf1f9v6E9f3Hz2eLisOUH55c5OkJubcvOlGuum3AeO3sk6_lv4nWFu7We7uuK6Lh-N0K-NoMP9rDsJXMSA_fMGDjDvA6dbCJzuNnD9NgIXJjc35Y4KHIebiTtxe8SA1-d1O2Deu51bcDt36_brNtweJjc35Y5yexpuprQTt0cMODiv2wHz3u1pC25Pu3X7oA23h8nNTbmj3J6FmynrxO0RAw7P63bAvHd71oLbs27dPmzD7WFyc1Pukz8d3uG4N-XKLksT9EWQbGQzx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NMEcITjHgYcScEPwWLSImwF36hU88wueecE9_1b3_Fvd91P3JeHyg4HB_WAULoAWcaNwXXsVH_gFH0jC5QcDg_vBKFwALeJG4Rp6BdeJX3F9dJTGxEsfHaUxCQFoYFOARhlBcBk7rKCjA7W-aynYtaMTNSYoAA3cCtAoKgguY0dh0f420T2gu79PUFpEfQLQyK-yRkFwGTtMi79UNGgVLaoVgEZ-lRULgsvYYVr83cKgW1jULSzqFoAGfgVolBYEl7GjtLC_Wxh0C4u6BaDRZ4asWxBcxo7Swv5uYdAtHNctk9f__gYAAP__smJU-w== # Merge joins should be planned for (FULL|LEFT|RIGHT) OUTER joins query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT * FROM (SELECT a,b FROM data AS data1) FULL OUTER JOIN (SELECT c,d FROM data AS data2 ORDER BY c,d) ON a=c and b=d ORDER BY a,b)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEl0Fv2kAQhe_9FWhOrbJVvGNDwFIlLq2UKA1VmpwqDg7eEiTCorWRGkX57xUQhAxh3zqD8NHBb994Zj6_-IVmNjc32ZMpKP1DmhQxKYpJUUKK2jRUNHd2ZIrCuuUta8Fl_o_SSNFkNl-Uyz8PFY2sM5S-UDkpp4ZSussepubWZLlx5xEpyk2ZTaYrm7mbPGXuuZ9nZUaKBosybfW16jMNXxXZRfl26vawh-fWY1Y8Vo_ZSIaKijIbG0r1q_pYge2AAmPVT3YK3DpzHeff1pXGneto93nOVJ_PpE2ID5ayPcq63DiTH_QPvvOdp_tp3Nhc2cls-Yg7jb17npu09eP--ro1uL_7ftu6GlzekKKp-Vt-fjv1yzc3GT9uLysbovxjSD4wBg4aw9ajLe_vO8Xc2K92fs7Vfh0qoVMpQYfvuW4ExBoFdo4LInDegKhPAKJuFsROkyCGjYGDxnAIRA5fMm6EghoFXhyXAuC8oYBPQAE3S8FFkxSEjYGDxnCIgjh8yeJGKKhRYPe4FADnDQXxCSiIm6Wg2yQFYWPgoDEcoiAJX7KkEQpqFNg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JQdgYOGgMIZ8m73jcmmJuZ4UJ-uKIlu00-dish1XYhRuZX86OVjbry8FKt_pvLzdFuf41Xl9cztY_LQsMF_ckYp2I1CJvBt56Vx1V1BVxtCvmGg3neuKeRLzT8LpqkTcD79jb8MTf8MQrbvtH3faPuuO37kjg8ovBgvvFCC6gFnkjuC68He_6G96VwOUXgwX3ixFcQC3yRnD1vA3Xkb_jeu9VWgcvvfcqrUMIUIM1BWrECJLL3GEE7b1Qq1OLwdT23qh1QAFqsK1AjVBBcpk7gkX700S3Qd_9eYJoEeUJUKN9lSUKksvcIS3-UNEgVbQoVoAa7assWJBc5g5p8WcLg2xhUbawKFuAGuwrUCNakFzmjmhhf7YwyBYWZQtQo88MWbYgucwd0cL-bGGQLVwvW4avn_4HAAD__9-kdhE= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT * FROM (SELECT a,b FROM data AS data1) LEFT OUTER JOIN (SELECT c,d FROM data AS data2 ORDER BY c,d) ON a=c and b=d ORDER BY a,b)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEl0Fv2k4Qxe__T4Hm9K-yVbxjQ8BSJS6plKgNVUpPFQcHbwkSYdHaSI2ifPcKCEKGsG-dQfjo4LdvPDM_v_iF5jY3d9mTKSj9TZoUMSmKSVFCito0UrRwdmyKwrrVLRvBTf6X0kjRdL5Ylqs_jxSNrTOUvlA5LWeGUhpmDzNzb7LcuMuIFOWmzKaztc3CTZ8y99zPszIjRYNlmbb6WvWZRq-K7LJ8O3V32MNz6zErHqvHbCUjRUWZTQyl-lV9rMB2QIGx6id7Be6cuY7zT-tK4y51tP88F6rPF9ImxEdL2R1lXW6cyY_6B9_5ztN9N25ibu10vnrEvcYOnxcmbX27_jpsDX4Nr-9bt4ObO1I0M3_K_99O_fTFTSePu8vKhij_GJIPjIGDxrDzaMv7-04xd_azXVxytV_HSuhUStDhe64bAbFGgZ3TggictyDqM4ComwWx0ySIYWPgoDEcA5HDl4wboaBGgVenpQA4byngM1DAzVJw1S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pqFNg9LQXAeUtBfAYK4mYp6DZJQdgYOGgMxyhIwpcsaYSCGgX2TksBcN5SkJyBgqRZCnpNUhA2Bg4aQ8inyTse96ZY2Hlhgr44olU7TT4xm2EVdunG5oez47XN5nKw1q3_28tNUW5-jTcXN_PNT6sCw8U9iVgnIrXIm4G33ldHFXVFHO2LuUbDuZ64JxHvNbyuWuTNwDv2NjzxNzzxitv-Ubf9o-74rTsSuPxisOB-MYILqEXeCK4rb8e7_oZ3JXD5xWDB_WIEF1CLvBFcPW_DdeTvuD54ldbBSx-8SusQAtRgTYEaMYLkMncYQQcv1OrUYjC1gzdqHVCAGmwrUCNUkFzmjmDR_jTRbdB3f54gWkR5AtRoX2WJguQyd0iLP1Q0SBUtihWgRvsqCxYkl7lDWvzZwiBbWJQtLMoWoAb7CtSIFiSXuSNa2J8tDLKFRdkC1OgzQ5YtSC5zR7SwP1sYZAvXy5bR63__AgAA__86O3Xp query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT * FROM (SELECT a,b FROM data AS data1) RIGHT OUTER JOIN (SELECT c,d FROM data AS data2 ORDER BY c,d) ON a=c and b=d ORDER BY a,b)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEl0Fv2kAQhe_9FWhOrbJV2LEhYKkSl6olUkNF6ani4OAtQSIsWhupUZT_XgFByBD2rTMIHx389o1n5vOLn2lhM3OXPpqckj-kSRGToogUxaSoRWNFS2cnJs-tW9-yFfSzf5Q0Fc0Wy1Wx_vNY0cQ6Q8kzFbNibiihUXo_N0OTZsZdN0lRZop0Nt_YLN3sMXVPvSwtUlI0WBVJo6dVj2n8osiuitdT94fdPzUe0vyhfMxOMlaUF-nUUKJf1PsKbAUUGKlefFDg3pmrOP-yrjDuWjcPn-dK9fhK2oToZCn7o6zLjDPZSf_gO994uh_GTc2tnS3Wj3jQ2NHT0iSNYf_b91Fj8Hv0ddi4HfTvSNHc_C0-vh776YubTR_2l6UVUf45xO-YAwfNYe_Rkjf4jWLu7Ge7vOZ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XIFHXS2K7VhLD5sBBczhFIodvGdeCQYUCb86LAXDeYcAXwIDrxeCmVgzC5sBBcziFQRS-ZVEtGFQosHNeDIDzDoPoAhhE9WLQqRWDsDlw0BxOYRCHb1lcCwYVCuyeFwPgvMMgvgAGcb0YdGvFIGwOHDSHkM-TNzyGJl_aRW6Cvjqa636abGq208rtyk3MT2cnG5vt5WCj2_zDl5m82P4abS_6i-1P6wLDxV2JWMcitcibgbc-VDdL6pK4eSjmCg3nauKuRHzQ8KpqkTcD78jb8Njf8NgrbvlH3fKPuu23bkvg8ovBgvvFCC6gFnkjuG68He_4G96RwOUXgwX3ixFcQC3yRnB1vQ3XTX_H9dGrtApe-uhVWoUQoAZrCtSIESSXucMIOnqhlqcWgakdvVGrgALUYFuBGqGC5DJ3BIv2p4lugb778wTRIsoToEb7KksUJJe5Q1r8oaJBqmhRrAA12ldZsCC5zB3S4s8WBtnComxhUbYANdhXoEa0ILnMHdHC_mxhkC0syhagRp8ZsmxBcpk7ooX92cIgW7hatoxfPvwPAAD__wYqd4g= # Nested merge joins should be planned on the same ordering @@ -194,7 +194,7 @@ render · · query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT * FROM (SELECT a,b from data AS data3 NATURAL JOIN ((SELECT a,b FROM data AS data1) JOIN (SELECT c,d FROM data AS data2 ORDER BY c,d) ON a=c AND b=d)))] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMmE1v2kwQx-_Pp4jm9FTZKt61eZUq-ZpKTaq0t4qDg7cEiWBkG6lRxHevgFBiL5m_xxY2R15-zOxk9-d_9pWWSWzvomeb0fgXaVJkSJFPigJS1KOJolWaTG2WJen2K3vgNv5DY0_RfLla59u3J4qmSWpp_Er5PF9YGtPP6HFhH2wU2_TGI0WxzaP5Yldmlc6fo_QljKM8oslGUbLO337oyD--XD1F2VORDLUKjQp9FQY02UwUZXk0szTWG1Wvsx7TmaL7dT6-2tWs0WahQVO3Qc3N7tDh2zzed3gs7UtK_0jSfFu1V17QtQrN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hBJlqehZAGOJMvjULI8jiRrJIFKSiPJIhxIFuBIsghHlwpOqijsWGN4yRonVUgkC2gkWYQDyQIcSRbhQLJGkqikNJIswoFkAY4kC3AkWePEColkjZMqJJIFNJIswoFkAY4kC3AoWUmgktJQsqJAJcWhZEWBysWdVFGU7BBIVnJF4x4X0R2NGEeSFd3SiHEkWUmiktJQsqJEJcWhZEWJyr04d2IFK9nJ5r-_AQAA__9IVxsL # Test that the distSQL MergeJoiner follows SQL NULL semantics for ON predicate equivilance. @@ -206,4 +206,4 @@ CREATE TABLE distsql_mj_test (k INT, v INT) query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT l.k, r.k FROM (SELECT * FROM distsql_mj_test ORDER BY k) l INNER JOIN (SELECT * FROM distsql_mj_test ORDER BY k) r ON l.k = r.k)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyskk9Lw0AQxe9-CpmT0pVk06SHgJBrBVup3qSUmB3jSpqNsxtQSr-7JHtIE8z2D952Z-f35r1ldlAqgYt0ixriV-DAIII1g4pUhlorasq2aS6-IfYZyLKqTVNeM8gUIcQ7MNIUCDEs1J2qvAgYCDSpLNq2PQNVmw7SJs0R4tmeHQhzt_BL-lbgClOB5Pk9eahIblP6SYTURn8Vm-3nxqA2wGBZm_g64TDmgJ_j4FmRQfJ4f3jCJ6PywaUBg_8KOL0g4PT0gOGofKdal4oEEorhThxv-cPjI1KOD0qWSF7YN1rgu7lJ-OT2nmT-YY_dF7EkGI0R9WIc2fAV6kqVGk9acb_JgCJH-yda1ZThE6msHWOvy5ZrCwK1sa8ze5mX9qkxeAhzJxy44cAJRz2YD-GpEw7dk8MzJgdDOHLC_mDyen_1GwAA___yFZqv +https://cockroachdb.github.io/distsqlplan/decode.html#eJyskk9Lw0AQxe9-CpmT0pVk06SHgJBrBVup3qSUmB3jSpqNsxtQSr-7JHtIE8z2D952Z-f35r1ldlAqgYt0ixriV-DAIII1g4pUhlorasq2aS6-IfYZyLKqTVNeM8gUIcQ7MNIUCDEs1J2qvAgYCDSpLNq2PQNVmw7SJs0R4tmeHQhzt_BL-lbgClOB5Pk9eahIblP6SYTURn8Vm-3nxqA2wGBZm_g64TDmgJ_j4FmRQfJ4f3jCJ6PywaUBg_8KOL0g4PT0gOGofKdal4oEEorhThxv-cPjI1KOD0qWSF7YN1rgu7lJ-OT2nmT-YY_dF7EkGI0R9WIc2fAV6kqVGk9acb_JgCJH-yda1ZThE6msHWOvy5ZrCwK1sa8ze5mX9qkxeAhzJxy44cAJRz2YD-GpEw7dk8MzJgdDOHLC_mDyen_1GwAA___yFZqv diff --git a/pkg/sql/logictest/testdata/planner_test/distsql_lookup_join b/pkg/sql/logictest/testdata/planner_test/distsql_lookup_join index c35c59039248..72a0866cf134 100644 --- a/pkg/sql/logictest/testdata/planner_test/distsql_lookup_join +++ b/pkg/sql/logictest/testdata/planner_test/distsql_lookup_join @@ -28,26 +28,26 @@ CREATE TABLE distsql_lookup_test_2 (d INT, e INT, f INT, PRIMARY KEY (f, e)) query T rowsort SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM distsql_lookup_test_1 JOIN distsql_lookup_test_2 ON f = b] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkcFq8zAQhO__U5g9708sp-lBJ11TSlJCb8UY1VqCWkerSjK0BL97sVVoUoibHne0386gOYJjQxt9oAjyCQQgrKBG8IFbipHDKOeltXkHWSJY5_s0yjVCy4FAHiHZ1BFI2PB_9osKEAwlbbtpbUDgPn1DMek9gVwOeHJYzB9-1M8d7UgbCovy7Dz4YA86fChjY4pvXdMxv_a-SRRTI-CSu_iL-x1b92Uurjcfv-F-mosXtq5gJws1its-yUIJVBWqJaobVCtUtxejVmdRf2lgR9Gzi3RVBeVQI5DZU245ch9aegjcTjZ53E7cJBiKKb8u87B2-WkMeAqLWbiah6tZuPwB18O_zwAAAP__2Q3qzg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkcFq8zAQhO__U5g9708sp-lBJ11TSlJCb8UY1VqCWkerSjK0BL97sVVoUoibHne0386gOYJjQxt9oAjyCQQgrKBG8IFbipHDKOeltXkHWSJY5_s0yjVCy4FAHiHZ1BFI2PB_9osKEAwlbbtpbUDgPn1DMek9gVwOeHJYzB9-1M8d7UgbCovy7Dz4YA86fChjY4pvXdMxv_a-SRRTI-CSu_iL-x1b92Uurjcfv-F-mosXtq5gJws1its-yUIJVBWqJaobVCtUtxejVmdRf2lgR9Gzi3RVBeVQI5DZU245ch9aegjcTjZ53E7cJBiKKb8u87B2-WkMeAqLWbiah6tZuPwB18O_zwAAAP__2Q3qzg== query T rowsort SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM distsql_lookup_test_1 JOIN distsql_lookup_test_2 ON f = b WHERE a > 1 AND e > 1] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkkFr4zAQhe_7K8ScdmGWWPZmDzrpVHApSQm5tSa41pCqdTSuJENC8H8vtgtNCnHT47yZ7z2PR0dwbGhR7iiAegAJCHMoEBrPFYXAvpfHodzsQSUI1jVt7OUCoWJPoI4QbawJFCz4LzezFBAMxdLWw1iHwG38hEIstwQq6_DEWE4br8unmlZUGvKz5MweGm93pT9oY0MMb_WmZn5tm02kEDcSLqXLn6TfsnUf4fL68P433A21eGHrBDsldC_mztD-xtaRfK-IxzZJMhJSKZUv1uK3t9vnKII1JNjVhz-AsGyjElqiTlFnqP-hnqP-f3G79Gy7b462otCwC3TV1ZKuQCCzpfFhBG59RfeeqyFmLJcDNwiGQhy72Vjkbmz1H3gKy0k4nYbTSTj5Ahfdr_cAAAD__8vq-nE= +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkkFr4zAQhe_7K8ScdmGWWPZmDzrpVHApSQm5tSa41pCqdTSuJENC8H8vtgtNCnHT47yZ7z2PR0dwbGhR7iiAegAJCHMoEBrPFYXAvpfHodzsQSUI1jVt7OUCoWJPoI4QbawJFCz4LzezFBAMxdLWw1iHwG38hEIstwQq6_DEWE4br8unmlZUGvKz5MweGm93pT9oY0MMb_WmZn5tm02kEDcSLqXLn6TfsnUf4fL68P433A21eGHrBDsldC_mztD-xtaRfK-IxzZJMhJSKZUv1uK3t9vnKII1JNjVhz-AsGyjElqiTlFnqP-hnqP-f3G79Gy7b462otCwC3TV1ZKuQCCzpfFhBG59RfeeqyFmLJcDNwiGQhy72Vjkbmz1H3gKy0k4nYbTSTj5Ahfdr_cAAAD__8vq-nE= # Ensure lookup join is planned on a multi-node cluster. query T rowsort SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM data JOIN data AS data2 on data.b = data2.a] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzElE-LnTAUxff9FHLXt4zx33NcZTulzJShu-IiNZfB9k2uJBFaBr97UQvje7yJgguXJjn-Ts4J9w0Ma3pUr-Sg-gECEBJASAEhA4QcaoTOckPOsR2PzIIH_QeqGKE1Xe_H5RqhYUtQvYFv_Zmggu_q55meSWmydzEgaPKqPU-Yzravyv6VWnkF9YDAvX__kfPqhaASA26HfeHW_GflARbCV-bffRf94tZEbKpIjtd96n0VSYEyQZmizFDmKAuUJ5Tlh_6SD_292-oNW02W9IWnerhxg0f-zN2diK9O3manF2yxvQixu4gV2KKI4pAiku1hJLvDWIEtwjgdEka6PYx0dxgrsEUY5SFhZNvDyHaHsQJbhHF_-Ly64e-ZXMfG0aZpFI_zjPQLzcPPcW8b-ma5mTDz59OkmxY0OT_vivnjwcxbo8GlWATFyYVYXIuTMHkFnQbVWVic7fGdB8VFmFzsIZ-C4jJMLveQ78NdxSvPJPzIrtn18OlfAAAA__8Afujr +https://cockroachdb.github.io/distsqlplan/decode.html#eJzElE-LnTAUxff9FHLXt4zx33NcZTulzJShu-IiNZfB9k2uJBFaBr97UQvje7yJgguXJjn-Ts4J9w0Ma3pUr-Sg-gECEBJASAEhA4QcaoTOckPOsR2PzIIH_QeqGKE1Xe_H5RqhYUtQvYFv_Zmggu_q55meSWmydzEgaPKqPU-Yzravyv6VWnkF9YDAvX__kfPqhaASA26HfeHW_GflARbCV-bffRf94tZEbKpIjtd96n0VSYEyQZmizFDmKAuUJ5Tlh_6SD_292-oNW02W9IWnerhxg0f-zN2diK9O3manF2yxvQixu4gV2KKI4pAiku1hJLvDWIEtwjgdEka6PYx0dxgrsEUY5SFhZNvDyHaHsQJbhHF_-Ly64e-ZXMfG0aZpFI_zjPQLzcPPcW8b-ma5mTDz59OkmxY0OT_vivnjwcxbo8GlWATFyYVYXIuTMHkFnQbVWVic7fGdB8VFmFzsIZ-C4jJMLveQ78NdxSvPJPzIrtn18OlfAAAA__8Afujr query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT count(*) FROM data as d1 NATURAL JOIN data as d2] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lV9r2zAUxd_3KcJ96kDQXNtJEz957CljS0aasodhihZdjLdUMpIMGyXffTgeVDGN5KGSR_85Oke_e-A-g1SC1vyJDOTfAYFBAgxSYJABgxmUDBqt9mSM0t0vvWAlfkM-ZVDLprXd65LBXmmC_BlsbQ8EOez4jwNtiQvSt1NgIMjy-nCyaXT9xPWfQnDLoTwyUK19OchYXhHkeGTjzT6pWv7zmnm8GHxW6lfbTH6qWk6UzCcFsiJhRcqK7r6b1uaTtZJ0MVXyP6k-VJWmilulb3GA4OPmYb173G6-3d-8v2iWXjR78Wil0oI0ibPzy2MgzoDS_cOXx9V6d1Pg5TTZWRocP32Mnn7AzJn-_IrTD6RycWP09JPxvJNo3gEzh_fdFXkHUrm8k2je6XjeaTTvgJnDe3FF3oFULu80mnc2nncWzTtg5vBeXpF3IJXLO3vTbfKK2ZZMo6ShwVZ5_eRpt21IVNSvJqNavaevWu1PNv3j5qQ7vRBkbP8V-4eV7D91AV0xesWJX5x4xemZGIfi1B977rfOvOqZXzzzigPO85hL33nFC7_zwite-sXLmNgY6FioZP6WYaBmGNUzDBQtC5j7m4aBqqG_a8Ps5fHd3wAAAP__1CT_Hg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lV9r2zAUxd_3KcJ96kDQXNtJEz957CljS0aasodhihZdjLdUMpIMGyXffTgeVDGN5KGSR_85Oke_e-A-g1SC1vyJDOTfAYFBAgxSYJABgxmUDBqt9mSM0t0vvWAlfkM-ZVDLprXd65LBXmmC_BlsbQ8EOez4jwNtiQvSt1NgIMjy-nCyaXT9xPWfQnDLoTwyUK19OchYXhHkeGTjzT6pWv7zmnm8GHxW6lfbTH6qWk6UzCcFsiJhRcqK7r6b1uaTtZJ0MVXyP6k-VJWmilulb3GA4OPmYb173G6-3d-8v2iWXjR78Wil0oI0ibPzy2MgzoDS_cOXx9V6d1Pg5TTZWRocP32Mnn7AzJn-_IrTD6RycWP09JPxvJNo3gEzh_fdFXkHUrm8k2je6XjeaTTvgJnDe3FF3oFULu80mnc2nncWzTtg5vBeXpF3IJXLO3vTbfKK2ZZMo6ShwVZ5_eRpt21IVNSvJqNavaevWu1PNv3j5qQ7vRBkbP8V-4eV7D91AV0xesWJX5x4xemZGIfi1B977rfOvOqZXzzzigPO85hL33nFC7_zwite-sXLmNgY6FioZP6WYaBmGNUzDBQtC5j7m4aBqqG_a8Ps5fHd3wAAAP__1CT_Hg== statement ok @@ -59,14 +59,14 @@ CREATE TABLE bar (a int PRIMARY KEY, c int) query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM foo NATURAL JOIN bar] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkTFPwzAQhXd-RfXmQ01SWDxlLUItqthQBjc-KkPrs2xHAlX57ygxEi2iAUa_u--9p_MRTgyv9IEj1BNKEG7REHyQlmOUMMh5aWneoAqCdb5Lg9wQWgkMdUSyac9QWMm1-HkFguGk7X5c6wnSpS8oJr1jqEVPJ8bltPGj3u55w9pwmBdn9vDBHnR4r59FQFh3Sc3qkuoKl4LL_wTfiXWfueXPuVsdQLgXee387EWsm4kbKpyVofrmYp_qrM8vF95w9OIi_-nERd8Q2Ow4_2KULrT8EKQdY_JzPXKjYDimPF3kx9Ll0VDwFC4n4Woaribh4hvc9FcfAQAA__97bt0c +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkTFPwzAQhXd-RfXmQ01SWDxlLUItqthQBjc-KkPrs2xHAlX57ygxEi2iAUa_u--9p_MRTgyv9IEj1BNKEG7REHyQlmOUMMh5aWneoAqCdb5Lg9wQWgkMdUSyac9QWMm1-HkFguGk7X5c6wnSpS8oJr1jqEVPJ8bltPGj3u55w9pwmBdn9vDBHnR4r59FQFh3Sc3qkuoKl4LL_wTfiXWfueXPuVsdQLgXee387EWsm4kbKpyVofrmYp_qrM8vF95w9OIi_-nERd8Q2Ow4_2KULrT8EKQdY_JzPXKjYDimPF3kx9Ll0VDwFC4n4Woaribh4hvc9FcfAQAA__97bt0c # Ensure lookup join is not planned when no index is available. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM bar NATURAL JOIN foo] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyckjFrwzAQhff-inJTCyqx7HQRFDw2HZISupUMinVJBI7OnGRoCf7vxdaQ2MRO20063XfvPXEncGRwqY_oQX2CBAHPsBFQMRXoPXFbjk0L8wUqEWBdVYe2vBFQECOoEwQbSgQFS3qiapaBAINB27JrawRQHc6QD3qPoOaNuBgspwd_6G2Ja9QGeZb0xkPF9qj5O99qhjEt-V8teV1rRwQCVnVQ97kUeToqnI4Kn_VqR2yQ0Qy_7XbLFfev2h_eyDrkWdo3X-IuPOTy8YXt_tCdehlEPh-NkfVi3FiCNfqKnMdfbUHSZkCzx_gnnmou8J2p6GTiddVxXcGgD_F1Hi8LF59ag5ewnISzHiyHcPoHOB3C2SScDGxvmrufAAAA___gtCho +https://cockroachdb.github.io/distsqlplan/decode.html#eJyckjFrwzAQhff-inJTCyqx7HQRFDw2HZISupUMinVJBI7OnGRoCf7vxdaQ2MRO20063XfvPXEncGRwqY_oQX2CBAHPsBFQMRXoPXFbjk0L8wUqEWBdVYe2vBFQECOoEwQbSgQFS3qiapaBAINB27JrawRQHc6QD3qPoOaNuBgspwd_6G2Ja9QGeZb0xkPF9qj5O99qhjEt-V8teV1rRwQCVnVQ97kUeToqnI4Kn_VqR2yQ0Qy_7XbLFfev2h_eyDrkWdo3X-IuPOTy8YXt_tCdehlEPh-NkfVi3FiCNfqKnMdfbUHSZkCzx_gnnmou8J2p6GTiddVxXcGgD_F1Hi8LF59ag5ewnISzHiyHcPoHOB3C2SScDGxvmrufAAAA___gtCho statement ok @@ -78,7 +78,7 @@ CREATE TABLE authors (name STRING, book STRING) query T rowsort SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT(authors.name) FROM authors, books AS b1, books AS b2 WHERE b1.title = b2.title AND authors.book = b1.title AND b1.shelf <> b2.shelf] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyck8-K2zAQh-99CndOu6Biy3_2YFjwoYduKUkJvZUcFGuaqHE0RpKhJeTdi-xCYhMryR4tzTffb8boCJokLsQBLZQ_gQODAtYMWkM1WkvGHw9Fb_IPlAkDpdvO-eM1g5oMQnkEp1yDUMKCPlEbF8BAohOq6ctODKhzZ8g6sUUoX07sojEPN_4hNg2uUEg0cTJqD61RB2H-VqJzO5-XwbJzZVRxVqUwJ-fvlfPr8g3RfqTOZtXpI-qvpPR_cxo2fyPad230m5SOSPsQPs4iqtLo42tUFedws8my2WTnQJ0mI9GgnP7j2yVXxvsi7M6PiCbOxuM1-Ms9Venzq1HbnXuq-PMdA-SPrPazsk7p2sX52BzoX4z633gLK7QtaYt3PYbEbwflFodtW-pMjd8N1b1m-Fz2XH8g0brh9mX4eNPDlQ94CfMgnI9gPoXTIJyFzdkD5nQK50G4CJuLIJxM4PXpw78AAAD__xhmpWg= +https://cockroachdb.github.io/distsqlplan/decode.html#eJyck8-K2zAQh-99CndOu6Biy3_2YFjwoYduKUkJvZUcFGuaqHE0RpKhJeTdi-xCYhMryR4tzTffb8boCJokLsQBLZQ_gQODAtYMWkM1WkvGHw9Fb_IPlAkDpdvO-eM1g5oMQnkEp1yDUMKCPlEbF8BAohOq6ctODKhzZ8g6sUUoX07sojEPN_4hNg2uUEg0cTJqD61RB2H-VqJzO5-XwbJzZVRxVqUwJ-fvlfPr8g3RfqTOZtXpI-qvpPR_cxo2fyPad230m5SOSPsQPs4iqtLo42tUFedws8my2WTnQJ0mI9GgnP7j2yVXxvsi7M6PiCbOxuM1-Ms9Venzq1HbnXuq-PMdA-SPrPazsk7p2sX52BzoX4z633gLK7QtaYt3PYbEbwflFodtW-pMjd8N1b1m-Fz2XH8g0brh9mX4eNPDlQ94CfMgnI9gPoXTIJyFzdkD5nQK50G4CJuLIJxM4PXpw78AAAD__xhmpWg= query TTTTT colnames EXPLAIN (VERBOSE) SELECT DISTINCT(authors.name) FROM authors, books AS b1, books AS b2 WHERE b1.title = b2.title AND authors.book = b1.title AND b1.shelf <> b2.shelf @@ -111,13 +111,13 @@ distinct · · (name) query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM books as b1 CROSS JOIN books as b2] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyckTFvszAQhvfvV3y6-apgIB08eWw6JFXUrWJw8ClFJT5kG6lVxH-vwEMCKqTN6PM99z66O4NlQ1t9Ig_yDQQgrKFAaByX5D27vhybNuYTZIJQ2aYNfblAKNkRyDOEKtQEErb8wM0qAwRDQVf10NYhcBsukA_6SCDzDq8Gi-XBr_pQ0560IbdKRuOhcdVJuy91YP7wMJcm7k0T96Sls2mXkNayM-TITLd1u-UH5Sft35-5suRW6dh41wb5XwlUKaoMVY5qjepxVj0bqd-49558w9bTrw6e9N5kjhT34Ll1Jb04LoeY-NwN3FAw5EP8zeNjY-NXL3gNi0U4G8FiCqd_gNMpnC3CyUS76P59BwAA__9upyMC +https://cockroachdb.github.io/distsqlplan/decode.html#eJyckTFvszAQhvfvV3y6-apgIB08eWw6JFXUrWJw8ClFJT5kG6lVxH-vwEMCKqTN6PM99z66O4NlQ1t9Ig_yDQQgrKFAaByX5D27vhybNuYTZIJQ2aYNfblAKNkRyDOEKtQEErb8wM0qAwRDQVf10NYhcBsukA_6SCDzDq8Gi-XBr_pQ0560IbdKRuOhcdVJuy91YP7wMJcm7k0T96Sls2mXkNayM-TITLd1u-UH5Sft35-5suRW6dh41wb5XwlUKaoMVY5qjepxVj0bqd-49558w9bTrw6e9N5kjhT34Ll1Jb04LoeY-NwN3FAw5EP8zeNjY-NXL3gNi0U4G8FiCqd_gNMpnC3CyUS76P59BwAA__9upyMC query T rowsort SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM authors INNER JOIN books ON books.edition = 1 WHERE books.title = authors.book] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkUFLAzEQhe_-ijAnhUg3W3sJCDkJK9JK6U32kG6GNnabWZIstJT975JdwVbsqse8mW_eTN4JHBmc6z0GkG8ggMMMSg6NpwpDIJ_koakwB5AZB-uaNia55FCRR5AniDbWCBLmdE_NJAcOBqO2dd_WcaA2fkEh6g2CnHb8bLAYH7zS6xqXqA36SXYxHhpv99oflW7jNu3LYdFGyZTgKodr5uI_5s9k3ae3-Nl7TbRLzi9Eu7Zh72QdIyeZSl9ROIOHJ1tH9Elhj0xIKYv5it16u9lGFqxBRq4-3l0sz9WUqweuZlevyC-u-CWbJYaGXMA_hZN1JQc0GxzyD9T6Cl89Vb3N8Fz0XC8YDHGoTodH4YZSWvAcFqNwPg7no3D2DS67m48AAAD__5V27x8= +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkUFLAzEQhe_-ijAnhUg3W3sJCDkJK9JK6U32kG6GNnabWZIstJT975JdwVbsqse8mW_eTN4JHBmc6z0GkG8ggMMMSg6NpwpDIJ_koakwB5AZB-uaNia55FCRR5AniDbWCBLmdE_NJAcOBqO2dd_WcaA2fkEh6g2CnHb8bLAYH7zS6xqXqA36SXYxHhpv99oflW7jNu3LYdFGyZTgKodr5uI_5s9k3ae3-Nl7TbRLzi9Eu7Zh72QdIyeZSl9ROIOHJ1tH9Elhj0xIKYv5it16u9lGFqxBRq4-3l0sz9WUqweuZlevyC-u-CWbJYaGXMA_hZN1JQc0GxzyD9T6Cl89Vb3N8Fz0XC8YDHGoTodH4YZSWvAcFqNwPg7no3D2DS67m48AAAD__5V27x8= statement ok @@ -136,7 +136,7 @@ SET experimental_force_lookup_join = false; query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM foo JOIN bar USING(a)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJycksFqwzAMhu97iqHTBh6Nk-5iGOS47tCOstvowY3V1pBaQXZgo-TdR-JDm9Ck2262pE__L6ETODK41Ef0oD5BgoBn2AiomAr0nrgNx6KF-QKVCLCuqkMb3ggoiBHUCYINJYKCJT1RNctAgMGgbdmVNQKoDmfIB71HUPNGXDSW040_9LbENWqDPEt67aFie9T8ne-IQMCqDuo-lyJPYUxY_ldYXhfeah7VSke1zhK1IzbIaIZru11yxfCr9oc3sg55lvb9lrgLD7l8fGG7P3Sv3r5EPh8dI-uNceMI1ugrch5_dQVJOwOaPcadeKq5wHemopOJ31XHdQGDPsTsPH4WLqZag5ewnISzHiyHcPoHOB3C2SScDGxvmrufAAAA__9feSho +https://cockroachdb.github.io/distsqlplan/decode.html#eJycksFqwzAMhu97iqHTBh6Nk-5iGOS47tCOstvowY3V1pBaQXZgo-TdR-JDm9Ck2262pE__L6ETODK41Ef0oD5BgoBn2AiomAr0nrgNx6KF-QKVCLCuqkMb3ggoiBHUCYINJYKCJT1RNctAgMGgbdmVNQKoDmfIB71HUPNGXDSW040_9LbENWqDPEt67aFie9T8ne-IQMCqDuo-lyJPYUxY_ldYXhfeah7VSke1zhK1IzbIaIZru11yxfCr9oc3sg55lvb9lrgLD7l8fGG7P3Sv3r5EPh8dI-uNceMI1ugrch5_dQVJOwOaPcadeKq5wHemopOJ31XHdQGDPsTsPH4WLqZag5ewnISzHiyHcPoHOB3C2SScDGxvmrufAAAA__9feSho #################################### @@ -178,7 +178,7 @@ render · · query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.a, t2.c FROM multiples t1 JOIN multiples@bc t2 ON t1.a = t2.b] ---- -https://cockro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up join on non-covering secondary index # The index join should be subsumed by joinreader, which takes care of the @@ -205,7 +205,7 @@ render · · query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.a, t2.d FROM multiples t1 JOIN multiples@bc t2 ON t1.a = t2.b] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lM2LqzAUxffvryh3nUeNH_1w1W0fj3YosxtcWHMpzthcSSLMUPzfB3WYammjUHGZj5Pf4ZxwLyBJ4C4-o4bwDTgwcIGBBwx8YBBAxCBXlKDWpKorjWArPiF0GKQyL0y1HTFISCGEFzCpyRBCeI2PGR4wFqjmDjAQaOI0qzG5Ss-x-tqci8ykeYYaGOwLE842HKKSARXm-q428Qkh5CUbzv5HqfxBB130MelQ_xN9FPnsnVI5I1kb-LXCNsFDN-5DN1cThSQlUKHoOIjKO3539JfyOXdubt5nex02H94CH7uFHnarhcUELbjDk3DHTqKH3UpiOUES3vAkvLGT6GG3klhNkIQ_PAl_7CR62K0k1hPPqDtuDqhzkhoHTSCnmmEoTtgMPE2FSvBFUVJjmuW-1tUbArVpTnmz2MrmqDLYFnOr2O2I-a3YtZN70J5V7dvF_jO-A6t4YScvniEvreKVnbx6hry2d-X0fBP7J7tlR-Wf7wAAAP__gsjtvg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lM2LqzAUxffvryh3nUeNH_1w1W0fj3YosxtcWHMpzthcSSLMUPzfB3WYammjUHGZj5Pf4ZxwLyBJ4C4-o4bwDTgwcIGBBwx8YBBAxCBXlKDWpKorjWArPiF0GKQyL0y1HTFISCGEFzCpyRBCeI2PGR4wFqjmDjAQaOI0qzG5Ss-x-tqci8ykeYYaGOwLE842HKKSARXm-q428Qkh5CUbzv5HqfxBB130MelQ_xN9FPnsnVI5I1kb-LXCNsFDN-5DN1cThSQlUKHoOIjKO3539JfyOXdubt5nex02H94CH7uFHnarhcUELbjDk3DHTqKH3UpiOUES3vAkvLGT6GG3klhNkIQ_PAl_7CR62K0k1hPPqDtuDqhzkhoHTSCnmmEoTtgMPE2FSvBFUVJjmuW-1tUbArVpTnmz2MrmqDLYFnOr2O2I-a3YtZN70J5V7dvF_jO-A6t4YScvniEvreKVnbx6hry2d-X0fBP7J7tlR-Wf7wAAAP__gsjtvg== ############################ # LEFT OUTER LOOKUP JOIN # @@ -214,46 +214,46 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lM2LqzAUxffvryh3nUeNH_ query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.b, t2.a FROM multiples t1 LEFT JOIN multiples t2 ON t1.b = t2.a] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzElF-Lm0AUxd_7KeQ-T1lHTTY7T3nZQpYlKSF9Kj5Y57LYmrnDzAhdFr97UUujIR2FCD7On-PveM5wP0CRxH12RgviO3BgEAGDGBgkwGAFKQNtKEdryTRXOsFO_gYRMiiUrlyznTLIySCID3CFKxEEnLIfJR4xk2geQmAg0WVF2WK0Kc6Zed-eq9IVukQLDA6VE8E2grRmQJW7fNe67A1B8JpNZ79Qof6iV0P06V2jCF6fv5yCw7fT8zF4Oez2wG5aeiX6VengJxUqICWCLf_nkzOP1ei_Vi8OK0VGokE5sJfWN35mT59JP_Dw6uZtdjxg8-kV8bkrGmH3KlovXVE0PaZo7phG2L2YHpeOKZ4eUzx3TCPsXkybpWNKpseUzB3TCLsX09PSMY2M8CNaTcripKkXNnMT5Rt2Q9ZSZXL8aihvMd3y0OraDYnWdae8W-xUd9QY7Iu5VxwNxPxaHPnJI-jYq0784uQe3yuveO0nr-8hP3rFGz95cw_5yd9VOPJM_I_smp3Wn_4EAAD__6ZdGew= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzElF-Lm0AUxd_7KeQ-T1lHTTY7T3nZQpYlKSF9Kj5Y57LYmrnDzAhdFr97UUujIR2FCD7On-PveM5wP0CRxH12RgviO3BgEAGDGBgkwGAFKQNtKEdryTRXOsFO_gYRMiiUrlyznTLIySCID3CFKxEEnLIfJR4xk2geQmAg0WVF2WK0Kc6Zed-eq9IVukQLDA6VE8E2grRmQJW7fNe67A1B8JpNZ79Qof6iV0P06V2jCF6fv5yCw7fT8zF4Oez2wG5aeiX6VengJxUqICWCLf_nkzOP1ei_Vi8OK0VGokE5sJfWN35mT59JP_Dw6uZtdjxg8-kV8bkrGmH3KlovXVE0PaZo7phG2L2YHpeOKZ4eUzx3TCPsXkybpWNKpseUzB3TCLsX09PSMY2M8CNaTcripKkXNnMT5Rt2Q9ZSZXL8aihvMd3y0OraDYnWdae8W-xUd9QY7Iu5VxwNxPxaHPnJI-jYq0784uQe3yuveO0nr-8hP3rFGz95cw_5yd9VOPJM_I_smp3Wn_4EAAD__6ZdGew= # Left join against covering secondary index query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.c, t2.c FROM multiples t1 LEFT JOIN multiples@bc t2 ON t1.c = t2.b] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlF9r2zAUxd_3Kcx91qhlO2mqp7x0kFKSEbKn4QfXuhRvjq6QZFgp_u7D9ljtkMiGGNJH_Tn-HZ8j7jsokrjNjmhB_AQODCJgEAODBBgsIGWgDeVoLZnmSifYyD8gQgaF0pVrtlMGORkE8Q6ucCWCgEP2UuIeM4nmLgQGEl1WlC1Gm-KYmbf1sSpdoUu0wGBXORGsY0hrBlS5j-9al70iCF6z6ewnKtQ_9GKIPrxpFMHz47dDsPtxeNwHT7vNFhi85AM3z0S_Kx38okIFpESw5v8tcrZOLrqMLrr8MFcpMhINyoGztD7zH1v6SvqOhyc3z7PjAZtPb4fP3c4Iu9fO8obtRNMTiuZOaITdS-j-hgnF0xOK505ohN1LaHXDhJLpCSVzJzTC7iX08Elm4BmXe7SalMVJEy5sZiTKV-wGqqXK5PjdUN5iuuWu1bUbEq3rTnm32KjuqDHYF3OvOBqI-ak48pNH0LFXnfjFyTW-F17x0k9eXkO-94pXfvLqGvKDv6tw5Jn4H9kpO62__A0AAP__DxgOwA== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlF9r2zAUxd_3Kcx91qhlO2mqp7x0kFKSEbKn4QfXuhRvjq6QZFgp_u7D9ljtkMiGGNJH_Tn-HZ8j7jsokrjNjmhB_AQODCJgEAODBBgsIGWgDeVoLZnmSifYyD8gQgaF0pVrtlMGORkE8Q6ucCWCgEP2UuIeM4nmLgQGEl1WlC1Gm-KYmbf1sSpdoUu0wGBXORGsY0hrBlS5j-9al70iCF6z6ewnKtQ_9GKIPrxpFMHz47dDsPtxeNwHT7vNFhi85AM3z0S_Kx38okIFpESw5v8tcrZOLrqMLrr8MFcpMhINyoGztD7zH1v6SvqOhyc3z7PjAZtPb4fP3c4Iu9fO8obtRNMTiuZOaITdS-j-hgnF0xOK505ohN1LaHXDhJLpCSVzJzTC7iX08Elm4BmXe7SalMVJEy5sZiTKV-wGqqXK5PjdUN5iuuWu1bUbEq3rTnm32KjuqDHYF3OvOBqI-ak48pNH0LFXnfjFyTW-F17x0k9eXkO-94pXfvLqGvKDv6tw5Jn4H9kpO62__A0AAP__DxgOwA== # Verify stats for covering secondary index do not include extra primary index lookups. query T SELECT url FROM [EXPLAIN ANALYZE (DISTSQL) SELECT t1.c, t2.c FROM multiples t1 LEFT JOIN multiples@bc t2 ON t1.c = t2.b] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzclU-L2zAQxe_9FGLOKmvZTjarUy5byLIkJaSn4oNjDYtaR2MkmW5Y8t2L7cLaYSO7h80hR_15er_RG5g3MKRwnR_QgfwJAjjEwCEBDilwmEHGobJUoHNkmyudYKVeQUYctKlq32xnHAqyCPINvPYlgoRdvi9xi7lCexcBB4U-12VrU1l9yO1xeahLr6sSHXCw9Mcxi7mSrLntfF6WzOsDShY155vaS7ZMIDtxoNq_-zqfvyBIceLT2Z5Im39osyHa7lihZM-P33Zs82P3uGVPm9UaOOyLAe0z0e-6Yr9IG0ZGsqWYUII2Cl_Z2a1u80K5gi_TixXHFyt-L7Q2ZBVaVIMqs9MHf7Kmr1Tdiejs5sfeycBbTO8Ece1OGGHrdcL8Rjohnp5GfO00Rth6adzfSBrJ9DSSa6cxwtZLY3EjaaTT00ivncYIWy-NhxtJY2RKb9FVZBxOmkhRM9NQvWA3AB3VtsDvlorWpltuWl27odD57lR0i5XpjhrAvlgExfFALM7Fcdh5xDoJqtOwOP0f7vYX2w-F_dGjYw6Nb7LOzp-dBZ-dh5nmn8N0H3x2EWZafA7TQzj5aKTpwi07nSo7ffkbAAD__zpP2mM= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzclU-L2zAQxe_9FGLOKmvZTjarUy5byLIkJaSn4oNjDYtaR2MkmW5Y8t2L7cLaYSO7h80hR_15er_RG5g3MKRwnR_QgfwJAjjEwCEBDilwmEHGobJUoHNkmyudYKVeQUYctKlq32xnHAqyCPINvPYlgoRdvi9xi7lCexcBB4U-12VrU1l9yO1xeahLr6sSHXCw9Mcxi7mSrLntfF6WzOsDShY155vaS7ZMIDtxoNq_-zqfvyBIceLT2Z5Im39osyHa7lihZM-P33Zs82P3uGVPm9UaOOyLAe0z0e-6Yr9IG0ZGsqWYUII2Cl_Z2a1u80K5gi_TixXHFyt-L7Q2ZBVaVIMqs9MHf7Kmr1Tdiejs5sfeycBbTO8Ece1OGGHrdcL8Rjohnp5GfO00Rth6adzfSBrJ9DSSa6cxwtZLY3EjaaTT00ivncYIWy-NhxtJY2RKb9FVZBxOmkhRM9NQvWA3AB3VtsDvlorWpltuWl27odD57lR0i5XpjhrAvlgExfFALM7Fcdh5xDoJqtOwOP0f7vYX2w-F_dGjYw6Nb7LOzp-dBZ-dh5nmn8N0H3x2EWZafA7TQzj5aKTpwi07nSo7ffkbAAD__zpP2mM= # Left join against non-covering secondary index query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.c, t2.d FROM multiples t1 LEFT JOIN multiples@bc t2 ON t1.c = t2.b] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlF9r2zAUxd_3Kcx91qhlO2mqp7x0kFKSEbKn4QfXuhRvjq6QZFgp_u7D9ljtkMiGGNJH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verify stats for non-covering secondary index include primary index lookups. query T SELECT url FROM [EXPLAIN ANALYZE (DISTSQL) SELECT t1.c, t2.d FROM multiples t1 LEFT JOIN multiples@bc t2 ON t1.c = t2.b] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzslkGP2jAQhe_9FdacXW2cAMv6xGUrsVpBheipyiHEo5Xb4IlsR1204r9XSVbahIKTHpYTx3jmeT7eG8m8gSGFq2yPDuRPEMAhBg4JcJgAhymkHEpLOTpHtm5pBUv1CjLioE1Z-fo45ZCTRZBv4LUvECRss12BG8wU2rsIOCj0mS6aMaXV-8weFvuq8Los0AEHS38cs5gpyepu57OiYF7vUbKorq8rL9kigfTIgSr_Mdf57AVBiiMfz_ZE2ryjTfto20OJkj0_ftuy9Y_t44Y9rZcr4LDLe7TPRL-rkv0ibRgZyRZixE_QRuErO-lqD__pfbeIndX0ixesEnwxvehWfNGtD5MqQ1ahRdVzKD2e8XNFX6m8E9FJ5_nZSW-2GL9F4tpbNMDW2aLZbYtkPD7J-NpJDrB1kry_JSmT8Ukm105ygK2T5PyWpJyMT3Jy7SQH2DpJPtySHPpHs0FXknE46gWO6jcc1Qu2D76jyub43VLejGk_142uOVDofFsV7cfStKUasCsWQXHcE4tTcRyePDA6CaonYfHkf7gbFxtDYXfw6JhD4-vM09Nrp8FrZ2Gm2ecw3QevnYeZ5p_D9BBOPhpYuvDKjqdKj1_-BgAA__-RkEFg +https://cockroachdb.github.io/distsqlplan/decode.html#eJzslkGP2jAQhe_9FdacXW2cAMv6xGUrsVpBheipyiHEo5Xb4IlsR1204r9XSVbahIKTHpYTx3jmeT7eG8m8gSGFq2yPDuRPEMAhBg4JcJgAhymkHEpLOTpHtm5pBUv1CjLioE1Z-fo45ZCTRZBv4LUvECRss12BG8wU2rsIOCj0mS6aMaXV-8weFvuq8Los0AEHS38cs5gpyepu57OiYF7vUbKorq8rL9kigfTIgSr_Mdf57AVBiiMfz_ZE2ryjTfto20OJkj0_ftuy9Y_t44Y9rZcr4LDLe7TPRL-rkv0ibRgZyRZixE_QRuErO-lqD__pfbeIndX0ixesEnwxvehWfNGtD5MqQ1ahRdVzKD2e8XNFX6m8E9FJ5_nZSW-2GL9F4tpbNMDW2aLZbYtkPD7J-NpJDrB1kry_JSmT8Ukm105ygK2T5PyWpJyMT3Jy7SQH2DpJPtySHPpHs0FXknE46gWO6jcc1Qu2D76jyub43VLejGk_142uOVDofFsV7cfStKUasCsWQXHcE4tTcRyePDA6CaonYfHkf7gbFxtDYXfw6JhD4-vM09Nrp8FrZ2Gm2ecw3QevnYeZ5p_D9BBOPhpYuvDKjqdKj1_-BgAA__-RkEFg # Left join with ON filter on covering index query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.c, t2.c FROM multiples t1 LEFT JOIN multiples@bc t2 ON t1.c = t2.b AND t2.c < 20] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUlc9r2zAUx-_7K8Q7baBR_0qa6pRLCy4lGcE7bT641iPT5ugZSYaGkv99OB6rHVrZkFxytK2vP-99npBeQZPEVbFDC-IHhMAhAg4xcEiAwwxyDrWhEq0l0y7pAql8ARFwULpuXPs651CSQRCv4JSrEARkxXOFGywkmpsAOEh0haqOmNqoXWH2y11TOVVXaIHDunGCLWPIDxyocW__ta7YIojwwKezH0npf-jZEJ3taxTs6f4hY-vv2f2GPa7TFXB4LgfVPBH9aWr2m5RmpAVbtmZSLfHlQVUOTVsq-9kEQVyyKBBCpKuMfTZq-8sxqyQy0tX-y_-2Qr5MPuws-rCzt4YaTUaiQTnoJj-80_uKvlJ9EwYnK99nxwN2OH2i4aUnOsLuTXR-ZRONpluNLm11hN2zentlVuPpVuNLWx1h96wursxqMt1qcmmrI-ye1bsrszpyW23Q1qQtTjqxg_bMR7nF7oKw1JgSvxkqj5jucX3MHV9ItK77GnYPqe4-tQX2w6E3HA3C4Wk48pNH0LE3nfjDyTl1z7zhuZ88P4d86w0v_OTFOeQ7_6yCkW3i32Sn7Pzw6W8AAAD__16RXd8= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUlc9r2zAUx-_7K8Q7baBR_0qa6pRLCy4lGcE7bT641iPT5ugZSYaGkv99OB6rHVrZkFxytK2vP-99npBeQZPEVbFDC-IHhMAhAg4xcEiAwwxyDrWhEq0l0y7pAql8ARFwULpuXPs651CSQRCv4JSrEARkxXOFGywkmpsAOEh0haqOmNqoXWH2y11TOVVXaIHDunGCLWPIDxyocW__ta7YIojwwKezH0npf-jZEJ3taxTs6f4hY-vv2f2GPa7TFXB4LgfVPBH9aWr2m5RmpAVbtmZSLfHlQVUOTVsq-9kEQVyyKBBCpKuMfTZq-8sxqyQy0tX-y_-2Qr5MPuws-rCzt4YaTUaiQTnoJj-80_uKvlJ9EwYnK99nxwN2OH2i4aUnOsLuTXR-ZRONpluNLm11hN2zentlVuPpVuNLWx1h96wursxqMt1qcmmrI-ye1bsrszpyW23Q1qQtTjqxg_bMR7nF7oKw1JgSvxkqj5jucX3MHV9ItK77GnYPqe4-tQX2w6E3HA3C4Wk48pNH0LE3nfjDyTl1z7zhuZ88P4d86w0v_OTFOeQ7_6yCkW3i32Sn7Pzw6W8AAAD__16RXd8= # Left join with ON filter on non-covering index query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.c, t2.d FROM multiples t1 LEFT JOIN multiples@bc t2 ON t1.c = t2.b AND t2.d < 30] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUlUFvmzAUx-_7FNY7bZKnYiBp6hOXVqKqkilip40DxU-ZN2Ij20iNqnz3iTCtELUGKblwxPafn9_vWfYrKC1wXezRAv8BDCiEQCECCjFQWEBOoTa6RGu1aZd0gVS8AA8oSFU3rh3OKZTaIPBXcNJVCByy4rnCLRYCzU0AFAS6QlYnTG3kvjCHZN9UTtYVWqCwaRwnSQT5kYJu3Nt_rSt2CJwd6XT2o5bqH3oxRGeHGjl5un_IyOZ7dr8lj5t0DRSey8FunrT-09Tkt5aKaMVJ0ppJlcCXB1k5NJwkMfnZBEFUkijgnKfrjHw2cvfLESsFEq2qw5f_ZTGaLD6sLPywsreCGqWNQINiUE1-fKf2tf6q6xsWnK18nx0N2Gx6R9m1OzrC7nV0ObOOhtOthte2OsLuWb2dmdVoutXo2lZH2D2rq5lZjadbja9tdYTds3o3M6sjr9UWba2VxUk3dtDe-Sh22D0QVjemxG9GlydM97k55U4DAq3rZln3kapuqt1gP8y84XAQZufh0E8eQUfedOwPx5fse-ENL_3k5SXkW2945SevLiHf-XsVjBwT_yE7Z-fHT38DAAD__7jtXe4= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUlUFvmzAUx-_7FNY7bZKnYiBp6hOXVqKqkilip40DxU-ZN2Ij20iNqnz3iTCtELUGKblwxPafn9_vWfYrKC1wXezRAv8BDCiEQCECCjFQWEBOoTa6RGu1aZd0gVS8AA8oSFU3rh3OKZTaIPBXcNJVCByy4rnCLRYCzU0AFAS6QlYnTG3kvjCHZN9UTtYVWqCwaRwnSQT5kYJu3Nt_rSt2CJwd6XT2o5bqH3oxRGeHGjl5un_IyOZ7dr8lj5t0DRSey8FunrT-09Tkt5aKaMVJ0ppJlcCXB1k5NJwkMfnZBEFUkijgnKfrjHw2cvfLESsFEq2qw5f_ZTGaLD6sLPywsreCGqWNQINiUE1-fKf2tf6q6xsWnK18nx0N2Gx6R9m1OzrC7nV0ObOOhtOthte2OsLuWb2dmdVoutXo2lZH2D2rq5lZjadbja9tdYTds3o3M6sjr9UWba2VxUk3dtDe-Sh22D0QVjemxG9GlydM97k55U4DAq3rZln3kapuqt1gP8y84XAQZufh0E8eQUfedOwPx5fse-ENL_3k5SXkW2945SevLiHf-XsVjBwT_yE7Z-fHT38DAAD__7jtXe4= # Left join with ON filter and WHERE clause query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.c, t2.d FROM multiples t1 LEFT JOIN multiples@bc t2 ON t1.c = t2.b WHERE t2.d < 30] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlUtr20AQx-_9FMuct0Srh-PsSZcEHIJdjH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H40vqTrzhlZ-8uoR86w2v_eT1JeQ7f6-CiWviv2Tn7Pz45W8AAAD__4bONQ0= diff --git a/pkg/sql/logictest/testdata/planner_test/distsql_misc b/pkg/sql/logictest/testdata/planner_test/distsql_misc index 4149519253ac..805d8a84ba5f 100644 --- a/pkg/sql/logictest/testdata/planner_test/distsql_misc +++ b/pkg/sql/logictest/testdata/planner_test/distsql_misc @@ -19,7 +19,7 @@ SELECT url FROM [EXPLAIN (DISTSQL) (rightside.k IS NULL) ] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyckc2K2zAQgO99CjGnLBlIJDs9CAq6dCFLGpdscio-uNY0a3AkM5Khy5J3L45hNw5x2vQ4I33zzc8bOG9pXRwogP4BEnKEhn1JIXjuUv2Hpf0Neo5QuaaNXTpHKD0T6DeIVawJNGyLnzVtqLDEszkgWIpFVZ_KNlwdCn41kUIEhKyNWhiFRqJJID8i-DZ-FA6x2BNoecR_lz97jsQzOfQaOUWjpmiS6ahG3aM5n1ENXYFK7-zdUyb_MWUyPiXCoYjli6jJaaFGremo9UPWOs-WmOzAlnfk375caf0b8Z6efOWIZ-mw_-1rQ1o87lYrke22XzfiKVuuAaGmX3FyNtzDF672L8MUIDxWdSTWYmKUWD6L9W61ehDZRkzM4j1-P4fE7iIJmhTNAs3n0Q0t7rnLhkLjXaDLTV2tPO_WQ3ZP_bqDb7mk7-zLk6YPsxN3SlgKsX-VfbB0_VPX4Dksb8LpAJaXsLoJJ7fNyR1mdQmnN-HFhTk_fvoTAAD__3P7gDg= +https://cockroachdb.github.io/distsqlplan/decode.html#eJyckc2K2zAQgO99CjGnLBlIJDs9CAq6dCFLGpdscio-uNY0a3AkM5Khy5J3L45hNw5x2vQ4I33zzc8bOG9pXRwogP4BEnKEhn1JIXjuUv2Hpf0Neo5QuaaNXTpHKD0T6DeIVawJNGyLnzVtqLDEszkgWIpFVZ_KNlwdCn41kUIEhKyNWhiFRqJJID8i-DZ-FA6x2BNoecR_lz97jsQzOfQaOUWjpmiS6ahG3aM5n1ENXYFK7-zdUyb_MWUyPiXCoYjli6jJaaFGremo9UPWOs-WmOzAlnfk375caf0b8Z6efOWIZ-mw_-1rQ1o87lYrke22XzfiKVuuAaGmX3FyNtzDF672L8MUIDxWdSTWYmKUWD6L9W61ehDZRkzM4j1-P4fE7iIJmhTNAs3n0Q0t7rnLhkLjXaDLTV2tPO_WQ3ZP_bqDb7mk7-zLk6YPsxN3SlgKsX-VfbB0_VPX4Dksb8LpAJaXsLoJJ7fNyR1mdQmnN-HFhTk_fvoTAAD__3P7gDg= # Verify the foreign key check execution plan uses a merge join. @@ -50,7 +50,7 @@ SELECT url FROM [EXPLAIN (DISTSQL) c.id IS NULL AND c.id2 IS NULL ] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJycklFrnTAUx9_3KcJ58nID1bi9BAYZbAWL0-G8T0PEmXNtqEskidBS_O7DCGstvRvdY345__wO5-QRtJFYdL_QAf8BCTQUJmt6dM7YFW0FmbwHHlNQepr9ihsKvbEI_BG88iMCh7r7OWKFnUR7FQMFib5TY3i2v1WjbLvZm1Zpifft-a5VsrV4bqfOovYiVECzUDCzf3I43w0IPFno__WR7PvYZKtaSdbe4YPYyEUxuyh-8s3aWIkW5c7VrMl_lbzS_Ve0A94YpdFesX339cOEnFyf8pyUp_pLRW7KrAAKI559JNiRivR4-GjVcOsjkRypYMcDULhWo0fLSRRFgpHsOynKmhSnPD-QsiKRSHfsQD4Vn0kk3gf6nHz4Q4BCOXtOREIFoyK9OL70LXur0E1GO3w5xldfjtfZoRxw24Uzs-3xmzV90GzHMuQCkOj8dsu2Q6bDVfhYz8PJG8LsZZj9NZzuwvHSLO9-BwAA__9_viDb +https://cockroachdb.github.io/distsqlplan/decode.html#eJycklFrnTAUx9_3KcJ58nID1bi9BAYZbAWL0-G8T0PEmXNtqEskidBS_O7DCGstvRvdY345__wO5-QRtJFYdL_QAf8BCTQUJmt6dM7YFW0FmbwHHlNQepr9ihsKvbEI_BG88iMCh7r7OWKFnUR7FQMFib5TY3i2v1WjbLvZm1Zpifft-a5VsrV4bqfOovYiVECzUDCzf3I43w0IPFno__WR7PvYZKtaSdbe4YPYyEUxuyh-8s3aWIkW5c7VrMl_lbzS_Ve0A94YpdFesX339cOEnFyf8pyUp_pLRW7KrAAKI559JNiRivR4-GjVcOsjkRypYMcDULhWo0fLSRRFgpHsOynKmhSnPD-QsiKRSHfsQD4Vn0kk3gf6nHz4Q4BCOXtOREIFoyK9OL70LXur0E1GO3w5xldfjtfZoRxw24Uzs-3xmzV90GzHMuQCkOj8dsu2Q6bDVfhYz8PJG8LsZZj9NZzuwvHSLO9-BwAA__9_viDb subtest stats @@ -85,4 +85,4 @@ NULL /1 {1} 1 query T SELECT url FROM [EXPLAIN (DISTSQL) CREATE STATISTICS s1 ON a FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lM-KszAUxfffU8hdfQOBJmr_ueosu5kO7ewGF6m5iIw1kkSYmeK7DyrSsbRRaGbpjSe_czjhnqGQAl_4CTVE78CAgA8EAiAQAoE5xARKJRPUWqrml06wFZ8QUQJZUVamGccEEqkQojOYzOQIEbzxY4575ALVjAIBgYZneYspVXbi6msjuOFAYFeZyNswiGsCsjKXK7XhKULEajIde-CnMkc1mw-R3fiQfWPkMUpp4-hguB3s3wVfeFUhlUCFYsCL67vWntNUYcqNVDNGp5v0_vuUescq-UCjn-5aDgaW2fSKmMOKRrB9RQvnFfnT8_oO845g-7xL53mD6XkDh3lHsH3elfO84fS8ocO8I9g-7_pPV84N8B51KQuNV6vn9s20WUkoUuz2l5aVSvBVyaTFdJ-7VtcOBGrTnbLuY1t0R43B32JmFfsDMbsW-3byCDqwqkO7OHzE99wqXtjJi0fIS6t4ZSevHiGv7V3RkWdif2TX7Lj-9xMAAP__kHfOZg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lM-KszAUxfffU8hdfQOBJmr_ueosu5kO7ewGF6m5iIw1kkSYmeK7DyrSsbRRaGbpjSe_czjhnqGQAl_4CTVE78CAgA8EAiAQAoE5xARKJRPUWqrml06wFZ8QUQJZUVamGccEEqkQojOYzOQIEbzxY4575ALVjAIBgYZneYspVXbi6msjuOFAYFeZyNswiGsCsjKXK7XhKULEajIde-CnMkc1mw-R3fiQfWPkMUpp4-hguB3s3wVfeFUhlUCFYsCL67vWntNUYcqNVDNGp5v0_vuUescq-UCjn-5aDgaW2fSKmMOKRrB9RQvnFfnT8_oO845g-7xL53mD6XkDh3lHsH3elfO84fS8ocO8I9g-7_pPV84N8B51KQuNV6vn9s20WUkoUuz2l5aVSvBVyaTFdJ-7VtcOBGrTnbLuY1t0R43B32JmFfsDMbsW-3byCDqwqkO7OHzE99wqXtjJi0fIS6t4ZSevHiGv7V3RkWdif2TX7Lj-9xMAAP__kHfOZg== diff --git a/pkg/sql/logictest/testdata/planner_test/distsql_numtables b/pkg/sql/logictest/testdata/planner_test/distsql_numtables index 6dfdb48b02da..718801989e39 100644 --- a/pkg/sql/logictest/testdata/planner_test/distsql_numtables +++ b/pkg/sql/logictest/testdata/planner_test/distsql_numtables @@ -48,25 +48,25 @@ NULL /2000 {1} 1 query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT 5, 2+y, * FROM NumToStr WHERE y <= 10 ORDER BY str] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkLFq9DAQhPv_Kcy0JzjL_GlUuXVzCc51wYViLYfB1prVGhIOv3uwVSQXuJAUAu2s5ptBV0QOdPITJbgXWHQGs3BPKbFsUn7QhDe40mCI86Kb3Bn0LAR3hQ46EhzO_nWklnwgOZYwCKR-GHfsLMPk5b2Oy6ScVGDQUgwkrnhwzjWnsymqfDnU1hT7qdCtBrzoZ2RSfyE4u5rf13pmUZKjvW1U_z_cxVd_wbeUZo6JbvD3yOXaGVC4UP7ZxIv09CTc7zF5fNx9uxAoad7aPDQxr7aCX832R3P1zdyt_z4CAAD___V0o_g= +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkLFq9DAQhPv_Kcy0JzjL_GlUuXVzCc51wYViLYfB1prVGhIOv3uwVSQXuJAUAu2s5ptBV0QOdPITJbgXWHQGs3BPKbFsUn7QhDe40mCI86Kb3Bn0LAR3hQ46EhzO_nWklnwgOZYwCKR-GHfsLMPk5b2Oy6ScVGDQUgwkrnhwzjWnsymqfDnU1hT7qdCtBrzoZ2RSfyE4u5rf13pmUZKjvW1U_z_cxVd_wbeUZo6JbvD3yOXaGVC4UP7ZxIv09CTc7zF5fNx9uxAoad7aPDQxr7aCX832R3P1zdyt_z4CAAD___V0o_g= # Query which requires a full table scan. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT 5, 2 + y, * FROM NumToStr WHERE y % 1000 = 0 ORDER BY str] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlE-rozAUxffzKeTCwAzNUBO1fwIDrga66Qyd7h4ufOZSBGskifAepd_9oRH6LG2U9i1cCObPuefwu-GeoJQCt-kRNfAXoECAAYEACIRAIIKEQKVkhlpL1Vyxgo14A-4TyMuqNs12QiCTCoGfwOSmQOCwT18L3GEqUM19ICDQpHnR2lQqP6bqPS7ro5HaKCDwJy8MKu79iKn33aO-73PON9v9T--31_0CgR2WorkV2R3iMfsziynx2o9BciYga3MJpk16QOD0TMaH_y-VQTWP-rnjcHa3PLtb_lJVKoEKxa2iNzJs5S9ZzWmf3T37oGdPx7eGTq41A-G71iwebQ0bz4ZNjs1A-I7N8lE2wXg2weTYDITv2KweZROOZxNOjs1A-I7N-ivG3Y3yO9SVLDWOmmR-MwtRHNDOTi1rleE_JbPWxi7_trp2Q6A29pTaxaa0R03Az2LqFLOemF6Lmdt5wDpwqkO3OHwmd-QUL9zOi2ecl07xyu28esZ57e6VP_BM3I_s2js5f_sIAAD__2K37jY= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlE-rozAUxffzKeTCwAzNUBO1fwIDrga66Qyd7h4ufOZSBGskifAepd_9oRH6LG2U9i1cCObPuefwu-GeoJQCt-kRNfAXoECAAYEACIRAIIKEQKVkhlpL1Vyxgo14A-4TyMuqNs12QiCTCoGfwOSmQOCwT18L3GEqUM19ICDQpHnR2lQqP6bqPS7ro5HaKCDwJy8MKu79iKn33aO-73PON9v9T--31_0CgR2WorkV2R3iMfsziynx2o9BciYga3MJpk16QOD0TMaH_y-VQTWP-rnjcHa3PLtb_lJVKoEKxa2iNzJs5S9ZzWmf3T37oGdPx7eGTq41A-G71iwebQ0bz4ZNjs1A-I7N8lE2wXg2weTYDITv2KweZROOZxNOjs1A-I7N-ivG3Y3yO9SVLDWOmmR-MwtRHNDOTi1rleE_JbPWxi7_trp2Q6A29pTaxaa0R03Az2LqFLOemF6Lmdt5wDpwqkO3OHwmd-QUL9zOi2ecl07xyu28esZ57e6VP_BM3I_s2js5f_sIAAD__2K37jY= # Query with a restricted span + filter. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT str FROM NumToStr WHERE y < 10 AND str LIKE '%e%' ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyMjzFrwzAUhPf-CnMQsghqd9SUpS2mJSlutqJBtR5BYEvm6Qlagv57sTWUDoWMd590d--KEB0d7UwJ-gMdjMLCcaSUIq9WfdC7L-hWwYcly2obhTEyQV8hXiaCxtl-TjSQdcT3LRQcifXTFruwny1_H0KeJSZhKDz5SYh1c3hoXvuXx2a_o91ea_1-HvrjMxROWVYKUxRilt_eJPZC0F1Rt28bKC0xJPoz67_kthgFcheq96eYeaQ3juNWU-Vp-7cZjpJU2lXRh4qKKXc_AQAA___YHXLQ +https://cockroachdb.github.io/distsqlplan/decode.html#eJyMjzFrwzAUhPf-CnMQsghqd9SUpS2mJSlutqJBtR5BYEvm6Qlagv57sTWUDoWMd590d--KEB0d7UwJ-gMdjMLCcaSUIq9WfdC7L-hWwYcly2obhTEyQV8hXiaCxtl-TjSQdcT3LRQcifXTFruwny1_H0KeJSZhKDz5SYh1c3hoXvuXx2a_o91ea_1-HvrjMxROWVYKUxRilt_eJPZC0F1Rt28bKC0xJPoz67_kthgFcheq96eYeaQ3juNWU-Vp-7cZjpJU2lXRh4qKKXc_AQAA___YHXLQ # Query which requires a full table scan. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT str FROM NumToStr WHERE y % 1000 = 0 AND str LIKE '%i%' ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlE2rm0AYhff9FcOBkIROiTOaLgYKFvqBtJiSZldcWOclCMaRmRFagv-9RKG5Xm7u9ZKNO-fj4Zxn4PWM2mhK8xM5qF8Q4JDgCMERgWOLjKOxpiDnjL1cGYBE_4EKOMq6af1lO-MojCWoM3zpK4LCIf9d0Z5yTXYTgEOTz8uqj2lsecrt37huT944b8Hxpaw8WcVWq1iwBRNBECilkvSwZh_Y_8-P6Se2iiX7nnz7zJaLcrFUSv087JP06xocu9YrFkseC2Qdh2n9tZ7z-ZGgRMdvKFybG6vJkh53juVbZN0Tnql5Z5rNdnT7VrocpYvpDyhm-oByuoKcqUI4XSGcqUI0XSGaqcILP5M9ucbUjiZNWXAZU9JHGsbamdYW9MOaoo8Zlrue6zc0OT-cimGR1P1RX_AhLJ6F34_g4DEs70kO74Gje-Dtq-Cse_MvAAD__yjQ8xE= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlE2rm0AYhff9FcOBkIROiTOaLgYKFvqBtJiSZldcWOclCMaRmRFagv-9RKG5Xm7u9ZKNO-fj4Zxn4PWM2mhK8xM5qF8Q4JDgCMERgWOLjKOxpiDnjL1cGYBE_4EKOMq6af1lO-MojCWoM3zpK4LCIf9d0Z5yTXYTgEOTz8uqj2lsecrt37huT944b8Hxpaw8WcVWq1iwBRNBECilkvSwZh_Y_8-P6Se2iiX7nnz7zJaLcrFUSv087JP06xocu9YrFkseC2Qdh2n9tZ7z-ZGgRMdvKFybG6vJkh53juVbZN0Tnql5Z5rNdnT7VrocpYvpDyhm-oByuoKcqUI4XSGcqUI0XSGaqcILP5M9ucbUjiZNWXAZU9JHGsbamdYW9MOaoo8Zlrue6zc0OT-cimGR1P1RX_AhLJ6F34_g4DEs70kO74Gje-Dtq-Cse_MvAAD__yjQ8xE= # # -- Join tests -- @@ -75,7 +75,7 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlE2rm0AYhff9FcOBkIROiT query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x, str FROM NumToSquare JOIN NumToStr ON y = xsquared] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lc9q20AQh-99ijCnBLZYs5LiWFDQsekhKaG3ooNiTW2BrVV3V9AQ_O5FVsGV7M5KXayj_nw7M98PZt-hUgU95XsykHwHBAESBIQgIAIBMWQCaq3WZIzS7S8d8Fj8giQQUFZ1Y9vXmYC10gTJO9jS7ggS-Ja_7uiF8oL0IgABBdm83B3L1Lrc5_otrZq9VeZnk2uC7CBANfbPeadjXt9utrnZ9g9IJWSHTICx-YYgwYP4v76Q68vqiU1hryn5z6ZO5zSV0gVpKnonZS3p-uXCZJ9zs_2iyor04r7f2o5-2NtU3n3S5WZrb1O8AwHPjU1uUhRpNJjzNEPoMcOFBp_UR1UvEIfTXqwd9Wrj-FDlbKHivKEurxGqHC82nE2snFfswzXEhuPFRrOJDecVu7qG2Gi82Hg2sdG8YjG49oK_UP-FTK0qQ6PWd9BOQMWGOiNGNXpNX7VaH8t0j89H7rhHCzK2-yq7h8eq-9Q2OB6OfeClD7zygRF5GicYk9Pg2Ade-sArH3hg7IyWQzr4mw553SELY993MKQjn7B42BEWDzvC4mFHWDzsCiv2CeveRzcPO3TzsEM3Dzt087BL99JH94OPbh526OZhh24edujmYZfulY9unHJZnu_QKbflVNq1_Kfcl1Npl3M8uz1Y6dnhw-8AAAD__3ZSr0E= +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lc9q20AQh-99ijCnBLZYs5LiWFDQsekhKaG3ooNiTW2BrVV3V9AQ_O5FVsGV7M5KXayj_nw7M98PZt-hUgU95XsykHwHBAESBIQgIAIBMWQCaq3WZIzS7S8d8Fj8giQQUFZ1Y9vXmYC10gTJO9jS7ggS-Ja_7uiF8oL0IgABBdm83B3L1Lrc5_otrZq9VeZnk2uC7CBANfbPeadjXt9utrnZ9g9IJWSHTICx-YYgwYP4v76Q68vqiU1hryn5z6ZO5zSV0gVpKnonZS3p-uXCZJ9zs_2iyor04r7f2o5-2NtU3n3S5WZrb1O8AwHPjU1uUhRpNJjzNEPoMcOFBp_UR1UvEIfTXqwd9Wrj-FDlbKHivKEurxGqHC82nE2snFfswzXEhuPFRrOJDecVu7qG2Gi82Hg2sdG8YjG49oK_UP-FTK0qQ6PWd9BOQMWGOiNGNXpNX7VaH8t0j89H7rhHCzK2-yq7h8eq-9Q2OB6OfeClD7zygRF5GicYk9Pg2Ade-sArH3hg7IyWQzr4mw553SELY993MKQjn7B42BEWDzvC4mFHWDzsCiv2CeveRzcPO3TzsEM3Dzt087BL99JH94OPbh526OZhh24edujmYZfulY9unHJZnu_QKbflVNq1_Kfcl1Npl3M8uz1Y6dnhw-8AAAD__3ZSr0E= # Merge join. query TTTTT @@ -100,7 +100,7 @@ render · · (x, str) query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x, str FROM NumToSquare JOIN NumToStr ON x = y WHERE x % 2 = 0] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlV9r2zwUh-_fT2EOvNBSjVj-0zSCgq8GGSwdpXfDF258lhgcy5NkWCn57sPWRmYnk-yJhNzFsR6fc34P6LxDxXNcZTuUwL4CBQIBEAiBQAQEYkgJ1IKvUUou2iMaWOY_gPkEiqpuVPt3SmDNBQJ7B1WoEoHBS_Za4jNmOYqZDwRyVFlRdmVqUewy8ZZUzU5x-b3JBAKBj0WpUDDvJqHe_17AGFuuXm69R8_XP4HAU6OYl1BI9wR4o34VP9R8ffO2mdz2q3XnUwJSZRsERvfk34agpiGUGDOBS9_BX_s-fKepuMhRYN77UtqSv4-cOgAJvdO1hvN_RrHBT7yoUMzu-0yJ39RNQu9uH0Wx2eqfB0UkCQfTHiYJHSY50eOKf-D1jNLhzCdrR73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z59Q= # # -- Aggregation tests -- @@ -110,19 +110,19 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlV9r2zwUh-_fT2EOvNBSjV query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(y) FROM NumToStr] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslE1vozAQhu_7K1bvaVeyFAzki1P2mMM2VdqeKg4uHiGkBCPbSK0i_nsFHAJRYqjgaJt3nnmMNRfkStKTOJNB9A4OBh8MARhCMCwRMxRaJWSM0vUnbWAvPxF5DFlelLbejhkSpQnRBTazJ0KEV_FxoiMJSXrhgUGSFdmpwRQ6Owv9tcvLs1XGajAcShv93nHEFYMq7bWssSIlRLxi49H_0lRTKqzSi2Wf_PL2_8-O_32I8R9irtXLXGlJmmSvdFy5G-HezzoJep3w8XfNZ77rAXRHcTXlrv3xhv7MhgPojuF6imEw3jCY2XAA3THcTDEMxxuGMxsOoDuG27kmwh3MkUyhckM3k-F-Za-eGCRTaseLUaVO6FmrpMG0y0OTazYkGdue8naxz9ujusFumDvDfi_Mb8O-mzyADpzp0B0Op_S9dIZXbvJqCnntDG_c5M0U8tb9r7yBZ-J-ZLfsuPr1HQAA__8CqbEl +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslE1vozAQhu_7K1bvaVeyFAzki1P2mMM2VdqeKg4uHiGkBCPbSK0i_nsFHAJRYqjgaJt3nnmMNRfkStKTOJNB9A4OBh8MARhCMCwRMxRaJWSM0vUnbWAvPxF5DFlelLbejhkSpQnRBTazJ0KEV_FxoiMJSXrhgUGSFdmpwRQ6Owv9tcvLs1XGajAcShv93nHEFYMq7bWssSIlRLxi49H_0lRTKqzSi2Wf_PL2_8-O_32I8R9irtXLXGlJmmSvdFy5G-HezzoJep3w8XfNZ77rAXRHcTXlrv3xhv7MhgPojuF6imEw3jCY2XAA3THcTDEMxxuGMxsOoDuG27kmwh3MkUyhckM3k-F-Za-eGCRTaseLUaVO6FmrpMG0y0OTazYkGdue8naxz9ujusFumDvDfi_Mb8O-mzyADpzp0B0Op_S9dIZXbvJqCnntDG_c5M0U8tb9r7yBZ-J-ZLfsuPr1HQAA__8CqbEl # Count the rows in the NumToStr table. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT count(*) FROM NumToStr] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslE2LszAQx-_Pp3iYUxcCNWrfPHXZUw-rS1_YwyLFNYMIbSJJhF2K331RD1Vpo6DHJP7zm98Y5gZcMPSjKyrwvoACARsIOEDABQILCAlkUsSolJDlJ3Vgx37AswikPMt1uR0SiIVE8G6gU31B8OAYfV9wjxFDObeAAEMdpZcKk8n0GsnfLc-vWigtgUCQa--_LzhCWBAQub5frHSUIHi0IMPhr0kiMYm0kPNFm_0WnPzjeR98HmYvT1n2U9YdkXMhGUpkrfvDwlwN7bTicHo_7_zjbEufV-O0qqHD204nb3sPvCG6HN12e7ioPbloD7whuhot6gwXdSYX7YE3RNejRd3hou7koj3whuhm0onxgLVHlQmusDM5Ht9slRMFWYL1-FEilzF-SBFXmHoZVLlqg6HS9SmtFzteH5UFNsPUGLZbYdoN22ZyD9oxpl1z2B1T98IYXprJyzHklTG8NpPXY8gb87-yep6J-ZF12WHx7y8AAP__2avBCw== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslE2LszAQx-_Pp3iYUxcCNWrfPHXZUw-rS1_YwyLFNYMIbSJJhF2K331RD1Vpo6DHJP7zm98Y5gZcMPSjKyrwvoACARsIOEDABQILCAlkUsSolJDlJ3Vgx37AswikPMt1uR0SiIVE8G6gU31B8OAYfV9wjxFDObeAAEMdpZcKk8n0GsnfLc-vWigtgUCQa--_LzhCWBAQub5frHSUIHi0IMPhr0kiMYm0kPNFm_0WnPzjeR98HmYvT1n2U9YdkXMhGUpkrfvDwlwN7bTicHo_7_zjbEufV-O0qqHD204nb3sPvCG6HN12e7ioPbloD7whuhot6gwXdSYX7YE3RNejRd3hou7koj3whuhm0onxgLVHlQmusDM5Ht9slRMFWYL1-FEilzF-SBFXmHoZVLlqg6HS9SmtFzteH5UFNsPUGLZbYdoN22ZyD9oxpl1z2B1T98IYXprJyzHklTG8NpPXY8gb87-yep6J-ZF12WHx7y8AAP__2avBCw== # Count how many numbers contain the digit 5. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT count(*) FROM NumToStr WHERE str LIKE '%five%'] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzElF2LnDAUhu_7K4YDy24hsBN1ZmdzNaW0RdpqcVx6UWSx5lQEx0gSS8vify_qxarMRMGCl368eV6eE84LFIKjF59RAfsBFAhYQMAGAg4Q2EFEoJQiQaWEbH7pAi7_A2xLICvKSjevIwKJkAjsBXSmcwQGYfwzxwBjjvJ-CwQ46jjLW0wps3Ms_x6L6qyF0hIIfMxyjZJtjtbmi_v5w-b25lf2G29uGWOnMHC9T0DArzTbeKJAiGoCotKvcKXjFIHRmswv-C5NJaaxFvJ-N-z33n_ywufA_366e3uVZV1lvSKqQkiOEvng_Kg2t6EjXaenr8-uF94d6fU29qANnT8auspoJgr2ZOwXj8aaL8NaRcZEwZ6Mh8Uy7Pky7FVkTBTsyTgsluHMl-GsImOiYE_G43_dYBdYAapSFApHm-zyydtmwyFPsVuHSlQywW9SJC2me_TbXPuCo9LdV9o9uEX3qSnYD1Nj2BqE6ThsmckTaNuYdsxhZ0nvnTG8N5P3S8gPxvDBTD4sIT-aZ7WduCbmSzZmR_WbfwEAAP__sAnyEQ== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzElF2LnDAUhu_7K4YDy24hsBN1ZmdzNaW0RdpqcVx6UWSx5lQEx0gSS8vify_qxarMRMGCl368eV6eE84LFIKjF59RAfsBFAhYQMAGAg4Q2EFEoJQiQaWEbH7pAi7_A2xLICvKSjevIwKJkAjsBXSmcwQGYfwzxwBjjvJ-CwQ46jjLW0wps3Ms_x6L6qyF0hIIfMxyjZJtjtbmi_v5w-b25lf2G29uGWOnMHC9T0DArzTbeKJAiGoCotKvcKXjFIHRmswv-C5NJaaxFvJ-N-z33n_ywufA_366e3uVZV1lvSKqQkiOEvng_Kg2t6EjXaenr8-uF94d6fU29qANnT8auspoJgr2ZOwXj8aaL8NaRcZEwZ6Mh8Uy7Pky7FVkTBTsyTgsluHMl-GsImOiYE_G43_dYBdYAapSFApHm-zyydtmwyFPsVuHSlQywW9SJC2me_TbXPuCo9LdV9o9uEX3qSnYD1Nj2BqE6ThsmckTaNuYdsxhZ0nvnTG8N5P3S8gPxvDBTD4sIT-aZ7WduCbmSzZmR_WbfwEAAP__sAnyEQ== # # -- Limit tests -- @@ -131,18 +131,18 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJzElF2LnDAUhu_7K4YDy24hsB query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT y FROM NumToStr LIMIT 5] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyMjzFLBEEMhXt_xfHqgLuFzVTXHognh51sMe6EY2B3siQZUI7573I7hVgIlu-95H3JDUUSv8SVDeEdIybCpjKzmejd6gOn9IkwEHLZqt_tiTCLMsINnn1hBLzFj4UvHBPr4wBCYo952Ws3zWvUr2Opq4u5gnCuHg7HEYTnvGY_PGFqBKn-AzCPV0YYG_3_iAvbJsX4F_-v5qFNBE5X7o-aVJ35VWXeMV2e973dSGze07GLU-lRm9rDdwAAAP__KwVtCg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyMjzFLBEEMhXt_xfHqgLuFzVTXHognh51sMe6EY2B3siQZUI7573I7hVgIlu-95H3JDUUSv8SVDeEdIybCpjKzmejd6gOn9IkwEHLZqt_tiTCLMsINnn1hBLzFj4UvHBPr4wBCYo952Ws3zWvUr2Opq4u5gnCuHg7HEYTnvGY_PGFqBKn-AzCPV0YYG_3_iAvbJsX4F_-v5qFNBE5X7o-aVJ35VWXeMV2e973dSGze07GLU-lRm9rDdwAAAP__KwVtCg== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT y FROM NumToStr ORDER BY y LIMIT 5] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyMjzFLBEEMhXt_xfHqgLuFzVTXHognh51sMe6EY2B3siQZUI7573I7hVgIlu-95H3JDUUSv8SVDeEdIybCpjKzmejd6gOn9IkwEHLZqt_tiTCLMsINnn1hBLzFj4UvHBPr4wBCYo952Ws3zWvUr2Opq4u5gnCuHg7HEYTnvGY_PGFqBKn-AzCPV0YYG_3_iAvbJsX4F_-v5qFNBE5X7o-aVJ35VWXeMV2e973dSGze07GLU-lRm9rDdwAAAP__KwVtCg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyMjzFLBEEMhXt_xfHqgLuFzVTXHognh51sMe6EY2B3siQZUI7573I7hVgIlu-95H3JDUUSv8SVDeEdIybCpjKzmejd6gOn9IkwEHLZqt_tiTCLMsINnn1hBLzFj4UvHBPr4wBCYo952Ws3zWvUr2Opq4u5gnCuHg7HEYTnvGY_PGFqBKn-AzCPV0YYG_3_iAvbJsX4F_-v5qFNBE5X7o-aVJ35VWXeMV2e973dSGze07GLU-lRm9rDdwAAAP__KwVtCg== # Test that the correct node is chosen in a reverse scan with multiple spans. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT y FROM NumToStr WHERE y < 1000 OR y > 9000 ORDER BY y DESC LIMIT 5] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyMkDFrwzAQhff-ivBmldiBLJqyBkpSQrfiQbWOILB9QneCluD_XmQNTQpNM967-57e0wUTezq4kQT2HS0MtugMYuKeRDgVuR7t_SdsYxCmmLXInUHPiWAv0KADweLAzxzXxcWTujAsZ7MBZ_2BRN2ZYDezuTJu7xu_uY-BTuQ8pXVzY4-YwujS127Ko7JogsExq13tSoyXMAZdbfFXiPYmxD_tTiSRJ6GH6jVzZ0D-TPUHhXPq6TVxvzxTx-PCLYIn0brd1GE_1VUJeA23d-HmF9zNT98BAAD___cAnxU= +https://cockroachdb.github.io/distsqlplan/decode.html#eJyMkDFrwzAQhff-ivBmldiBLJqyBkpSQrfiQbWOILB9QneCluD_XmQNTQpNM967-57e0wUTezq4kQT2HS0MtugMYuKeRDgVuR7t_SdsYxCmmLXInUHPiWAv0KADweLAzxzXxcWTujAsZ7MBZ_2BRN2ZYDezuTJu7xu_uY-BTuQ8pXVzY4-YwujS127Ko7JogsExq13tSoyXMAZdbfFXiPYmxD_tTiSRJ6GH6jVzZ0D-TPUHhXPq6TVxvzxTx-PCLYIn0brd1GE_1VUJeA23d-HmF9zNT98BAAD___cAnxU= query TTTTT EXPLAIN (VERBOSE) SELECT x FROM (SELECT x, 2*x AS y, x+1 AS z FROM NumToSquare) @@ -162,10 +162,10 @@ render · · (x) query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM (SELECT x, 2*x, x+1 FROM NumToSquare)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyMj7FqxDAQRPt8RZhaELtVde01uXCkCyoUazgMtuTsriDh0L8HW0VIEUg5M9J77B25JD7HlQr_hhHBYZMyUbXIXvUH5_QJPzjMeau218FhKkL4O2y2hfB4je8Lr4yJ8jTAIdHivBzYTeY1ytcp19WKftQohMOlmn88jQjNoVT7IavFG-HH5v5vv1K3kpW_xH-RhxYcmG7sF2qpMvFFynRoerwc_44iUa2vYw_n3KcW2sN3AAAA___R0mt- +https://cockroachdb.github.io/distsqlplan/decode.html#eJyMj7FqxDAQRPt8RZhaELtVde01uXCkCyoUazgMtuTsriDh0L8HW0VIEUg5M9J77B25JD7HlQr_hhHBYZMyUbXIXvUH5_QJPzjMeau218FhKkL4O2y2hfB4je8Lr4yJ8jTAIdHivBzYTeY1ytcp19WKftQohMOlmn88jQjNoVT7IavFG-HH5v5vv1K3kpW_xH-RhxYcmG7sF2qpMvFFynRoerwc_44iUa2vYw_n3KcW2sN3AAAA___R0mt- # Regression test for #20481. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT count(*) FROM (SELECT 1 AS one FROM NumToSquare WHERE x > 10 ORDER BY xsquared LIMIT 10)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkcFKAzEQhu8-RZmTYqCb7S2niqeCdKWteJBF4mZYAt3MOpmAUvbdZTeIVmixx_kn3_8F5gCBHK5thxHMC2ioFfRMDcZIPEb5wcp9gCkU-NAnGeNaQUOMYA4gXvYIBnb2bY8btA55XoACh2L9fqrt2XeWP5chdULxPVlGUFAlMbNlCfWggJL8NEexLYLRg_q_fUssyHN9LF7q22_RmsIoffCdl5kuTlrLS6x3bcvYWiGel8fm--ppvXvdVM_b65uTrsUlrg3GnkLEI8-p5mKoFaBrMd8wUuIGH5maSZPHauKmwGGUvNV5WIW8Gj_4G9Zn4fI8XJ6FF3_gerj6CgAA__9GENxp +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkcFKAzEQhu8-RZmTYqCb7S2niqeCdKWteJBF4mZYAt3MOpmAUvbdZTeIVmixx_kn3_8F5gCBHK5thxHMC2ioFfRMDcZIPEb5wcp9gCkU-NAnGeNaQUOMYA4gXvYIBnb2bY8btA55XoACh2L9fqrt2XeWP5chdULxPVlGUFAlMbNlCfWggJL8NEexLYLRg_q_fUssyHN9LF7q22_RmsIoffCdl5kuTlrLS6x3bcvYWiGel8fm--ppvXvdVM_b65uTrsUlrg3GnkLEI8-p5mKoFaBrMd8wUuIGH5maSZPHauKmwGGUvNV5WIW8Gj_4G9Zn4fI8XJ6FF3_gerj6CgAA__9GENxp diff --git a/pkg/sql/logictest/testdata/planner_test/distsql_srfs b/pkg/sql/logictest/testdata/planner_test/distsql_srfs index c96c457c144c..77484f166c17 100644 --- a/pkg/sql/logictest/testdata/planner_test/distsql_srfs +++ b/pkg/sql/logictest/testdata/planner_test/distsql_srfs @@ -19,28 +19,28 @@ INSERT INTO data SELECT generate_series(0, 9) query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT a, generate_series(a, a + 1) FROM data ORDER BY 1, 2] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJysk0Frq0AQx-_vU8j_9B5ZiKsmD_bkNZc0JLkVKVt3SC3GldkNtAS_e4keUtsYLPa4M_7m94cZz6isobU-koN6hIRABIEYAgkEFsgEarY5OWf58kkHrMwbVChQVPXJX8qZQG6ZoM7whS8JCnv9XNKWtCGehxAw5HVRtpqai6Pm99Ror5E1Avbkr4Oc1weCko0YkF0dlg0xmf70VM6QNTcSbdi-Uu535OeLPnKgilh7enLEBbm_qRRBKoNZIJVSq_X-32DKaDDljQA7y554vvyWV6TRDAJH7fOXoKRKBXLQGPeMcvwS5OQlRONl0WRZPF4WT5Yl42XJr97yDdmWXG0rRz3P0OTwcuhkDtT9GM6eOKcN27zVdM-HlmsLhpzvurJ7rKq21Qb8DMu7cNSDw69wdBf-fx-Op8ROpsCLKfDyR3DW_PkIAAD__-HKznM= +https://cockroachdb.github.io/distsqlplan/decode.html#eJysk0Frq0AQx-_vU8j_9B5ZiKsmD_bkNZc0JLkVKVt3SC3GldkNtAS_e4keUtsYLPa4M_7m94cZz6isobU-koN6hIRABIEYAgkEFsgEarY5OWf58kkHrMwbVChQVPXJX8qZQG6ZoM7whS8JCnv9XNKWtCGehxAw5HVRtpqai6Pm99Ror5E1Avbkr4Oc1weCko0YkF0dlg0xmf70VM6QNTcSbdi-Uu535OeLPnKgilh7enLEBbm_qRRBKoNZIJVSq_X-32DKaDDljQA7y554vvyWV6TRDAJH7fOXoKRKBXLQGPeMcvwS5OQlRONl0WRZPF4WT5Yl42XJr97yDdmWXG0rRz3P0OTwcuhkDtT9GM6eOKcN27zVdM-HlmsLhpzvurJ7rKq21Qb8DMu7cNSDw69wdBf-fx-Op8ROpsCLKfDyR3DW_PkIAAD__-HKznM= # Order by primary key query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT a, generate_series(a, a + 1) FROM data ORDER BY 1] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyskjFrwzAQhff-ivCmlghi2U4HTV6zpCHNVkxRrUdwSSwjKdAS_N9L7CF1iYuLO-pO332P486orOFaH-mhXiAhEEMggUAKgSVygdrZgt5bd_nSASvzARUJlFV9CpdyLlBYR6gzQhkOhMJOvx24pTZ0iwgChkGXh1ZTu_Ko3WdmdNDIGwF7CtdBPug9oWQjBmRXh3WGjqY_PZNz5M2NRBtn31mEZ4bFso_sWdHpwFdPV9LfZ1LMMjmbz6RSarXePQymjHsp5fiVyMkricfL4smyZLwsmSxLx8vSf72sG7ItfW0rz55naHJ0OTuaPbsz9fbkCm6cLVpN93xqubZg6EPXld1jVbWtNuB3WP4KP_bg6CccTzEnU-B0Crz8E5w3d18BAAD__6OTljs= +https://cockroachdb.github.io/distsqlplan/decode.html#eJyskjFrwzAQhff-ivCmlghi2U4HTV6zpCHNVkxRrUdwSSwjKdAS_N9L7CF1iYuLO-pO332P486orOFaH-mhXiAhEEMggUAKgSVygdrZgt5bd_nSASvzARUJlFV9CpdyLlBYR6gzQhkOhMJOvx24pTZ0iwgChkGXh1ZTu_Ko3WdmdNDIGwF7CtdBPug9oWQjBmRXh3WGjqY_PZNz5M2NRBtn31mEZ4bFso_sWdHpwFdPV9LfZ1LMMjmbz6RSarXePQymjHsp5fiVyMkricfL4smyZLwsmSxLx8vSf72sG7ItfW0rz55naHJ0OTuaPbsz9fbkCm6cLVpN93xqubZg6EPXld1jVbWtNuB3WP4KP_bg6CccTzEnU-B0Crz8E5w3d18BAAD__6OTljs= # Order by SRF query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT a, generate_series(a, a + 1) FROM data ORDER BY 2] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJysk8Fqs0AUhff_U4S7-ksG4qhJYVZus0lDkl2RMnUOwZI4cmeEluC7l-giNWiw2OXM-J3vcLleqLAGG32GI_VKkgSFJCgiQTEJWlIqqGSbwTnL109aYG0-SQWC8qKs_PU6FZRZBqkL-dyfQIoO-v2EHbQBLwISZOB1fmo0JednzV-J0V5TWguylb8FOa-PICVrMSC7OarCsgHDdPLTuqfOlu0HMr-HXyy7bY4owNrjzYFzuP-JFLNEzuYzqZRabw5PgxXDwYo9BfaWPXix6sqTcD4YH3Xi5fhxy8njDsfLwsmyaLwsmiyLx8viP93aHtkOrrSFw9329icH162GOaL9BZytOMOWbdZo2uNLwzUXBs63r7I9rIvmqSn4E5YP4bADB_dw-BB-fgxHU2rHU-DlFHj1Kzit_30HAAD__6EbyUc= +https://cockroachdb.github.io/distsqlplan/decode.html#eJysk8Fqs0AUhff_U4S7-ksG4qhJYVZus0lDkl2RMnUOwZI4cmeEluC7l-giNWiw2OXM-J3vcLleqLAGG32GI_VKkgSFJCgiQTEJWlIqqGSbwTnL109aYG0-SQWC8qKs_PU6FZRZBqkL-dyfQIoO-v2EHbQBLwISZOB1fmo0JednzV-J0V5TWguylb8FOa-PICVrMSC7OarCsgHDdPLTuqfOlu0HMr-HXyy7bY4owNrjzYFzuP-JFLNEzuYzqZRabw5PgxXDwYo9BfaWPXix6sqTcD4YH3Xi5fhxy8njDsfLwsmyaLwsmiyLx8viP93aHtkOrrSFw9329icH162GOaL9BZytOMOWbdZo2uNLwzUXBs63r7I9rIvmqSn4E5YP4bADB_dw-BB-fgxHU2rHU-DlFHj1Kzit_30HAAD__6EbyUc= # Filter on ProjectSet node query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT a, b FROM (SELECT a, generate_series(1, 3) AS b FROM data) WHERE a < 4 AND b = 3] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJysksFKw0AQhu8-RfhPFRaaTVIPC0IFEXqppfamQdbsUCJpNsxuQCl5d2ki1JRWIvGW3ck33-zw71FaQ0u9Iwf1DAmBCAIxBBIIzJAKVGwzcs7y4ZcOWJgPqFAgL6vaH65TgcwyQe3hc18QFDb6raA1aUM8DSFgyOu8aDUV5zvNn3OjvUbaCNjaHxs5r7cEJRtxQXZ01KVlQ0ym1z9tzoyzYvtOmX8iP531p9lSSaw9vTrinNxEKqUWy40I4u7jGgIPeeGJVTCZy-ClDsM4C5LvanC3vA8m8yi4PQKX3hT13iSHL1COXmA0XBaNlsXDZfFoWTJclvxrDs_I1uQqWzo6yeP5zuEhp2S21IXa2ZozWrHNWk13fGy59sKQ811VdodF2ZbaAX_C8lf4pgeHp3A0xhyPgZMx8OxPcNpcfQUAAP__VAWiog== +https://cockroachdb.github.io/distsqlplan/decode.html#eJysksFKw0AQhu8-RfhPFRaaTVIPC0IFEXqppfamQdbsUCJpNsxuQCl5d2ki1JRWIvGW3ck33-zw71FaQ0u9Iwf1DAmBCAIxBBIIzJAKVGwzcs7y4ZcOWJgPqFAgL6vaH65TgcwyQe3hc18QFDb6raA1aUM8DSFgyOu8aDUV5zvNn3OjvUbaCNjaHxs5r7cEJRtxQXZ01KVlQ0ym1z9tzoyzYvtOmX8iP531p9lSSaw9vTrinNxEKqUWy40I4u7jGgIPeeGJVTCZy-ClDsM4C5LvanC3vA8m8yi4PQKX3hT13iSHL1COXmA0XBaNlsXDZfFoWTJclvxrDs_I1uQqWzo6yeP5zuEhp2S21IXa2ZozWrHNWk13fGy59sKQ811VdodF2ZbaAX_C8lf4pgeHp3A0xhyPgZMx8OxPcNpcfQUAAP__VAWiog== # Multiple SRFs with different lengths query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT a, generate_series(1, 2), generate_series(1, 4) FROM data WHERE a < 2 ORDER BY 1, 2, 3] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyskcFq8zAQhO__U4Q9_SWCWHJOOvmaSxqS3IopqjWkLo5lVhtoCX73EpuSuo1NC71Ju_vtzDJnqoPH2h0RyT6QJkWGckUNhwIxBr6U-6GVfyWbKCrr5iSXcq6oCAyyZ5JSKpClvXuqsIXz4EVCijzElVW3uuHy6Pgt804c5a2icJLroijuALK6VSNiV43AHgw_3J7pOeXtDUcbDi8oZAdZmCFyQA12gscILhH_a2vtar1XM9M_7kiNzyw_ZsYuMaOX3DC5CyzgRfrtJpWZucrSOSk6OimeZxVqO9OjqulAVf88LP2nYd0Q2yI2oY4Y6IxtTi5Jwh_QJx_DiQtsOBSdTP-977iu4BGl7-r-s6q7VmfwM6wnYTOAk6-wmYSX03D6K9t5--89AAD___UXLZk= +https://cockroachdb.github.io/distsqlplan/decode.html#eJyskcFq8zAQhO__U4Q9_SWCWHJOOvmaSxqS3IopqjWkLo5lVhtoCX73EpuSuo1NC71Ju_vtzDJnqoPH2h0RyT6QJkWGckUNhwIxBr6U-6GVfyWbKCrr5iSXcq6oCAyyZ5JSKpClvXuqsIXz4EVCijzElVW3uuHy6Pgt804c5a2icJLroijuALK6VSNiV43AHgw_3J7pOeXtDUcbDi8oZAdZmCFyQA12gscILhH_a2vtar1XM9M_7kiNzyw_ZsYuMaOX3DC5CyzgRfrtJpWZucrSOSk6OimeZxVqO9OjqulAVf88LP2nYd0Q2yI2oY4Y6IxtTi5Jwh_QJx_DiQtsOBSdTP-977iu4BGl7-r-s6q7VmfwM6wnYTOAk6-wmYSX03D6K9t5--89AAD___UXLZk= diff --git a/pkg/sql/logictest/testdata/planner_test/distsql_union b/pkg/sql/logictest/testdata/planner_test/distsql_union index c876aec90091..a23c6bb84c23 100644 --- a/pkg/sql/logictest/testdata/planner_test/distsql_union +++ b/pkg/sql/logictest/testdata/planner_test/distsql_union @@ -34,53 +34,53 @@ subtest Union query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM xyz UNION ALL SELECT x FROM xyz ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lc1vnDAQxe_9K6q51tXuGNgPTnvNJanS3ioOFI8ipA1GtpGSRvu_V4BQuqtkzIc58vF7b_zmSX6DSiu6z5_JQvobEARIEBCBgBgEJJAJqI0uyFpt2l964E69QLoVUFZ149rXmYBCG4L0DVzpzgQp_Mr_nOmRckVmswUBilxenjub2pTPuXk9vbz-BQEPjUu_nhCyiwDduHdF6_InghQvYp5rssRVTnH9qY0js8Gbc57w26f60Rz9JIT-u6w2igypj0Q_GOJef9f1Rl6f8TP7-Moexy8Nw1VlgusuXFU8rsMqce4qR-rv5urL8anJcLua4LoPtyuP65ClXCnLQX8_Vz8an1oUblcTXA_hduVxHbKMVspy0D_M1Y_HpxaH29UE12O4XXlchyzjlbIc9I8rXcePZGtdWRp1E27bu5TUE_V3r9WNKeiH0UVn0z8-dFz3QpF1_VfZP9xV_ad2wP9hZOGIhyULx1cw3sLREjjmz4z83AlL73l4x8IHHt4vOfRhCXxkYfQkhnzJ0Ncyvmae0XFRz5AvGiae0fmq4c6D813zzc6XzUfzbcOjZ3S-b3LrwfnGeWaXfOFu6ezy5V8AAAD__wH6wcY= +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lc1vnDAQxe_9K6q51tXuGNgPTnvNJanS3ioOFI8ipA1GtpGSRvu_V4BQuqtkzIc58vF7b_zmSX6DSiu6z5_JQvobEARIEBCBgBgEJJAJqI0uyFpt2l964E69QLoVUFZ149rXmYBCG4L0DVzpzgQp_Mr_nOmRckVmswUBilxenjub2pTPuXk9vbz-BQEPjUu_nhCyiwDduHdF6_InghQvYp5rssRVTnH9qY0js8Gbc57w26f60Rz9JIT-u6w2igypj0Q_GOJef9f1Rl6f8TP7-Moexy8Nw1VlgusuXFU8rsMqce4qR-rv5urL8anJcLua4LoPtyuP65ClXCnLQX8_Vz8an1oUblcTXA_hduVxHbKMVspy0D_M1Y_HpxaH29UE12O4XXlchyzjlbIc9I8rXcePZGtdWRp1E27bu5TUE_V3r9WNKeiH0UVn0z8-dFz3QpF1_VfZP9xV_ad2wP9hZOGIhyULx1cw3sLREjjmz4z83AlL73l4x8IHHt4vOfRhCXxkYfQkhnzJ0Ncyvmae0XFRz5AvGiae0fmq4c6D813zzc6XzUfzbcOjZ3S-b3LrwfnGeWaXfOFu6ezy5V8AAAD__wH6wcY= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM xyz UNION SELECT x FROM xyz ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslU1r20AQhu_9FWWuXbBnV7JjnXLoJZempL0VHVRpCAJHa3ZXkDT4vxdb4ETGnv3yUZLfeffxPLDvMOiOfjQvZKH6AwgCJAhQIKAAASXUAnZGt2StNoefTIGH7hWqpYB-2I3u8LoW0GpDUL2D692WoILfzd8tPVHTkVksQUBHrum3x5qd6V8a83b_-vYPBDyOrvp6j1DvBejRfUy0rnkmqHAvwlu_99b1Q-sW5bySmS9j5n-mwiwslYSF4VzF1YKPueOgTUeGutnUes8dQS6Dj1DGMP7SxpFZSDwf_-3q_NVsPkas7nZCelpPf9sqUcgYqiwslYSF4VxzIWU4l7zdtjytJ6x14rYiqDALSyVhYTjXfFsqnEvdblue1hPWXeK2IqgwC0slYWE413xbRThXcbtteVpPWJvEbUVQYRaWSsLCcK7rV_OFgieyOz1YOruiL09eHq5u6p5puuetHk1LP41ujzXT4-Mxd3zRkXXTV5weHobp0-GAn8PIhotZGM_Dkg0rvlnlNBdsuOSbSzYsJZ9esek1H17nQN-x4Q3fvMlpRo9jPsmyLENeM_R4hlmiIW8aelRD3jVfOe8aemTDLNuQ1w09vmGWcJIXTnqEk3HC1fsv_wMAAP__BkP9WA== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslU1r20AQhu_9FWWuXbBnV7JjnXLoJZempL0VHVRpCAJHa3ZXkDT4vxdb4ETGnv3yUZLfeffxPLDvMOiOfjQvZKH6AwgCJAhQIKAAASXUAnZGt2StNoefTIGH7hWqpYB-2I3u8LoW0GpDUL2D692WoILfzd8tPVHTkVksQUBHrum3x5qd6V8a83b_-vYPBDyOrvp6j1DvBejRfUy0rnkmqHAvwlu_99b1Q-sW5bySmS9j5n-mwiwslYSF4VzF1YKPueOgTUeGutnUes8dQS6Dj1DGMP7SxpFZSDwf_-3q_NVsPkas7nZCelpPf9sqUcgYqiwslYSF4VxzIWU4l7zdtjytJ6x14rYiqDALSyVhYTjXfFsqnEvdblue1hPWXeK2IqgwC0slYWE413xbRThXcbtteVpPWJvEbUVQYRaWSsLCcK7rV_OFgieyOz1YOruiL09eHq5u6p5puuetHk1LP41ujzXT4-Mxd3zRkXXTV5weHobp0-GAn8PIhotZGM_Dkg0rvlnlNBdsuOSbSzYsJZ9esek1H17nQN-x4Q3fvMlpRo9jPsmyLENeM_R4hlmiIW8aelRD3jVfOe8aemTDLNuQ1w09vmGWcJIXTnqEk3HC1fsv_wMAAP__BkP9WA== # UNION with no overlap. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM xyz WHERE x < 3 UNION SELECT x FROM xyz WHERE x >= 3 ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lkFr4zAQhe_7K8JcVxCPbCeNYaGHZSGXdun2tuuD1x6KIbWCJEO7Jf99cQxpHZqRZEGOlvLmzZf3DnqDTjV0Vz2TgeI3IAiQICAFARkIyKEUsNeqJmOUHn4yCrbNCxSJgLbb93Y4LgXUShMUb2BbuyMo4LH6u6MHqhrSywQENGSrdne02ev2udKvty-v_0DAj3ZnSReLW1z86ZMkrRdpURTbu0cQcN_b4QLKgwDV23c3Y6snggIPwn-j762xbVfbZT5dh5kvQ-Z_JMYgZPoWwJzOYkZ_6OyiwfvcvlO6IU3NZGp54FaQifcKeQjjL6Ut6aXE8_FfL85fTeZjQK7XabJjo9NfuprZ5BDiIOSIJvsyoz_0tMnSH1peJ2bHRifk9cyYA4gxCDkiZl9m9Ieexpz6Q6fXidmx0Qn5ZmbMAcQYhBwRsy8z-kNPY878obPrxOzY6IS8mRlzADEGIUfE7MuM_tCXnx-fGDyQ2avO0Nkz5PPJyfA8oeaJxreMUb2u6adW9dFm_Lw_6o4HDRk73uL4se3Gq2HBj2JkxdlEjOdiyYpT3jmNcc5Ycc4756xYSl69YtVrXryOgb5hxRveeRPjjI6OuUoW1TLka4aOnmFU0ZBvGjqqhnzXXOZ819BRNoxqG_J1Q0ffMKpwki-cdBROhhWuPHz5HwAA__9soUkq +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lkFr4zAQhe_7K8JcVxCPbCeNYaGHZSGXdun2tuuD1x6KIbWCJEO7Jf99cQxpHZqRZEGOlvLmzZf3DnqDTjV0Vz2TgeI3IAiQICAFARkIyKEUsNeqJmOUHn4yCrbNCxSJgLbb93Y4LgXUShMUb2BbuyMo4LH6u6MHqhrSywQENGSrdne02ev2udKvty-v_0DAj3ZnSReLW1z86ZMkrRdpURTbu0cQcN_b4QLKgwDV23c3Y6snggIPwn-j762xbVfbZT5dh5kvQ-Z_JMYgZPoWwJzOYkZ_6OyiwfvcvlO6IU3NZGp54FaQifcKeQjjL6Ut6aXE8_FfL85fTeZjQK7XabJjo9NfuprZ5BDiIOSIJvsyoz_0tMnSH1peJ2bHRifk9cyYA4gxCDkiZl9m9Ieexpz6Q6fXidmx0Qn5ZmbMAcQYhBwRsy8z-kNPY878obPrxOzY6IS8mRlzADEGIUfE7MuM_tCXnx-fGDyQ2avO0Nkz5PPJyfA8oeaJxreMUb2u6adW9dFm_Lw_6o4HDRk73uL4se3Gq2HBj2JkxdlEjOdiyYpT3jmNcc5Ycc4756xYSl69YtVrXryOgb5hxRveeRPjjI6OuUoW1TLka4aOnmFU0ZBvGjqqhnzXXOZ819BRNoxqG_J1Q0ffMKpwki-cdBROhhWuPHz5HwAA__9soUkq # UNION with partial overlap. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM xyz WHERE x <= 4 UNION SELECT x FROM xyz WHERE x > 1 ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lk9r20AQxe_9FGauXbBmJdmxoJBDKfiSlDS3VgdVGoLA0ZrdFSQN_u5FFjiRiWf_CHzUrt-8-fm9w75Bpxq6q57JQPEbEARIEJCCgAwE5FAK2GtVkzFKDz8ZBdvmBYpEQNvtezsclwJqpQmKN7Ct3REU8Fj93dEDVQ3pZQICGrJVuzva7HX7XOnX25fXfyDgR7uzpIvFLS7-9EmS1t8WWVEU27tHEHDf2-EGyoMA1dt3O2OrJ4ICD8J_pe-tsW1X22U-3YeZL0Pmf0TGIGZaoDdyGoWM_szZRYP3uX2ndEOamsnU8sCtIBPvFfIQxl9KW9JLiefjv16cv5rMx4BYr9Rkx0qn_3QV2eQQ5CDm-Cb7IqM_87TJ0p9ZXilmx0on5nVkzAHIGMQcH7MvMvozT2NO_ZnTK8XsWOnEfBMZcwAyBjHHx-yLjP7M05gzf-bsSjE7VjoxbyJjDkDGIOb4mH2R0Z_58vPjE4MHMnvVGTp7hnw-ORmeJ9Q80fiWMarXNf3Uqj7ajJ_3R93xoCFjx1scP7bdeDUs-FGMrDibiPFcLFlxyjunc5wzVpzzzjkrlpJXr1j1mhev50DfsOIN77yZ44yOjrlKNqtlyNcMHT3DWUVDvmnoqBryXXOZ811DR9lwVtuQrxs6-oazCif5wklH4WRY4crDl_8BAAD__93PSSU= +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lk9r20AQxe_9FGauXbBmJdmxoJBDKfiSlDS3VgdVGoLA0ZrdFSQN_u5FFjiRiWf_CHzUrt-8-fm9w75Bpxq6q57JQPEbEARIEJCCgAwE5FAK2GtVkzFKDz8ZBdvmBYpEQNvtezsclwJqpQmKN7Ct3REU8Fj93dEDVQ3pZQICGrJVuzva7HX7XOnX25fXfyDgR7uzpIvFLS7-9EmS1t8WWVEU27tHEHDf2-EGyoMA1dt3O2OrJ4ICD8J_pe-tsW1X22U-3YeZL0Pmf0TGIGZaoDdyGoWM_szZRYP3uX2ndEOamsnU8sCtIBPvFfIQxl9KW9JLiefjv16cv5rMx4BYr9Rkx0qn_3QV2eQQ5CDm-Cb7IqM_87TJ0p9ZXilmx0on5nVkzAHIGMQcH7MvMvozT2NO_ZnTK8XsWOnEfBMZcwAyBjHHx-yLjP7M05gzf-bsSjE7VjoxbyJjDkDGIOb4mH2R0Z_58vPjE4MHMnvVGTp7hnw-ORmeJ9Q80fiWMarXNf3Uqj7ajJ_3R93xoCFjx1scP7bdeDUs-FGMrDibiPFcLFlxyjunc5wzVpzzzjkrlpJXr1j1mhev50DfsOIN77yZ44yOjrlKNqtlyNcMHT3DWUVDvmnoqBryXXOZ811DR9lwVtuQrxs6-oazCif5wklH4WRY4crDl_8BAAD__93PSSU= # UNION ALL with swapped column orders. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x, y FROM xyz UNION ALL SELECT y, x from xyz] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lLtugzAYhfc-RXVmV8GG3JhYsyRV1K1ioPhXhJRgZBspacS7V4EhTURaqN3Rl4-P88s6Z5RK0jo7kEH8Dg4GAYYQDBEYpkgZKq1yMkbpy5UOWMkj4oChKKvaXrZThlxpQnyGLeyeEOMt-9jTljJJehKAQZLNin2rqXRxyPQpOZ4-wbCpbfyccJYIpA2Dqu31o8ZmO0LMG_Y38fR3sWAJfygWD8VXX10qLUmTvHGlTc-vrdWLqiY8uLvZ7w5v3Hx4aO512iPEM6_TFsPFwmviEeK518ThcHHoNfEI8cJr4mi4OPKaeIR4-W8d0iPekqlUaWhQQwSXjiG5o66QjKp1Tq9a5a2mW25art2QZGx3KrrFqmyP2sl8h7kLLH6EOb-hg3s6dFFHLvDUBZ65wHMXeOECL51eybg3ljZPXwEAAP__0V3EcQ== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lLtugzAYhfc-RXVmV8GG3JhYsyRV1K1ioPhXhJRgZBspacS7V4EhTURaqN3Rl4-P88s6Z5RK0jo7kEH8Dg4GAYYQDBEYpkgZKq1yMkbpy5UOWMkj4oChKKvaXrZThlxpQnyGLeyeEOMt-9jTljJJehKAQZLNin2rqXRxyPQpOZ4-wbCpbfyccJYIpA2Dqu31o8ZmO0LMG_Y38fR3sWAJfygWD8VXX10qLUmTvHGlTc-vrdWLqiY8uLvZ7w5v3Hx4aO512iPEM6_TFsPFwmviEeK518ThcHHoNfEI8cJr4mi4OPKaeIR4-W8d0iPekqlUaWhQQwSXjiG5o66QjKp1Tq9a5a2mW25art2QZGx3KrrFqmyP2sl8h7kLLH6EOb-hg3s6dFFHLvDUBZ65wHMXeOECL51eybg3ljZPXwEAAP__0V3EcQ== # UNION ALL and UNION with different ORDER BY types. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) UNION ALL (SELECT x FROM xyz ORDER BY z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlpl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hzeT6i5D10xjra31EuY_ZyedT9sWJPV6R1qhHg2I89jU0qxQMSVG3pB8lLqJsSfLH9KP0naViPFKGQlIoJKZRZ-lHiUWUWab-mH6UvrNUjEfKUEgKhcQs6iz9KPE2yiwzf0w_St9ZKsYjZSgkhUJiHnWWfpSURP_bc8HskbvWbjv2uomTw13OzRMPd39nd27F351dHW2Gnw9H3fFBw10_vMXhx912eHUo8KMYRTGdiPFcTKJ4LjunojiTxZkozuWyc1G8kJ3noriQnRf_Iy7kUeVy3bdyShIlJnLIlJygnDIkxVzOmTJtlIOGStJQjppGLmcNlT2Ccto0cjluWCjmSuAUczlwpASO5MAp5KQca0rgSA6cdirKgSMlcHTd2Vbtv_wNAAD__9Tyzgw= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) UNION (SELECT x FROM xyz ORDER BY z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslj9v2zAQxfd-iuLWELDvKMm2Jg9dsjRF2q3woFpEIMCRDEoGkgb-7oEtA4qZ-I6UOPrP47t7_N2Bb1A3pflZPJsW8r-AoIBAgQYFCShIYaNgb5utadvGnv7SC-7LF8jnCqp6f-hOX28UbBtrIH-Drup2BnL4U_zbmUdTlMbO5qCgNF1R7c42e1s9F_Z1_fL6HxQ8HLr8-xrVmmBzVNAcuuHQtiueDOR4VP7GvxvbGTtLrz3XdOfnRSFeP6q2q-ptN0OnxTUObjetdIjVxzwx9QpU33RORgRKbou-iaajEiX3An0SzW5aDQ6HurGlsaa8On9z5IrRn6_3VgmLEdFqdI-_u3n-8up8DIAm6hAKxpfGsihDKHgNQ_gpxuAhDMkzizqEfoGS2-K4IfRNlNwLDB9C8k-UohIqGF8CXUQhVPAaCKXJhAbkiYuohPoFSm6L4wj1TZTcCwwnVPsnqqMSKhhfAl1GIVTwGgjVkwkNyBOXUQn1C5TcFscR6psouRcYTmjin2gSlVDB-BLoKgqhgtdAaDKZ0IA8cRWVUL9AyW1xHKG-i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zwKFAHPLICbUTTxwJe42ExSZttkmrjXjiSFhuxCNHAnI0ab8RTxwJG4545EhAjnjkpNp54rSw5DSPnBaQ0zxybu2b47f3AAAA__96Jz8W # UNION ALL with conflicting numbers of ORDER BY columns. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) UNION ALL (SELECT x FROM xyz ORDER BY y, z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lk9vm0AQxe_9FNVcvZU9A9iEE9dckirtreJAzSiy5HjRgqWkkb97ZUBKbMLMQsiRP7NvfvPeLrzCwRZ8lz9xBckfQDBAYCAAAyEYiCAzUDq75aqy7vxKW3BbPEOyMrA7lMf6fDszsLWOIXmFelfvGRL4nf_d8wPnBbvlCgwUXOe7fSNTut1T7l7S55d_YOD-WCffUzQpQXYyYI_126JVnT8yJHgy_sK_rKvZLaNLzZQWflo0qPUmYV3Bjou-Qnb6oKE7-8OWS7waQtfKYB_BGOb3w0b0m7ZJg0HxcMLAcd2bh0mDhbdm9InBN0LC8AnHDX89gZ_oqi1cDK6_mbJ-MMf62ixRnmN48fqQfHwhjyOyO-tBoQh3c-3HdspBMQaS5t6gfqC4mXODkj-wJ6-nq4pwB9tnneLqCEgM5nbVDxTjOV0N_IE9eT1dVYQ72D7rFFdHQGI4t6t-oHgzp6uhP7Anr6erinAH22ed4uoISIzmdtUPlFZf9Yv0geYDV6U9VOz1xV6dv_lcPHL7j1DZo9vyT2e3jUx7ed_UNTcKrur2KbYXt4f20bnB98UoFtNFMV4Xk1i8lpUDsTiUi0OxOJLbjsTijay8FotjWXnzmeJYtiqS-76RU7JSYiKHTMkJyilDUsTlnCluoxw0VJKGctQ0cjlrqOwRlNOmkctxw1gRVwKniMuBIyVwJAdOISflWFMCR3LgtFNRDhwpgaNxZ1t2-vY_AAD__5Vz2Pk= +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lk9vm0AQxe_9FNVcvZU9A9iEE9dckirtreJAzSiy5HjRgqWkkb97ZUBKbMLMQsiRP7NvfvPeLrzCwRZ8lz9xBckfQDBAYCAAAyEYiCAzUDq75aqy7vxKW3BbPEOyMrA7lMf6fDszsLWOIXmFelfvGRL4nf_d8wPnBbvlCgwUXOe7fSNTut1T7l7S55d_YOD-WCffUzQpQXYyYI_126JVnT8yJHgy_sK_rKvZLaNLzZQWflo0qPUmYV3Bjou-Qnb6oKE7-8OWS7waQtfKYB_BGOb3w0b0m7ZJg0HxcMLAcd2bh0mDhbdm9InBN0LC8AnHDX89gZ_oqi1cDK6_mbJ-MMf62ixRnmN48fqQfHwhjyOyO-tBoQh3c-3HdspBMQaS5t6gfqC4mXODkj-wJ6-nq4pwB9tnneLqCEgM5nbVDxTjOV0N_IE9eT1dVYQ72D7rFFdHQGI4t6t-oHgzp6uhP7Anr6erinAH22ed4uoISIzmdtUPlFZf9Yv0geYDV6U9VOz1xV6dv_lcPHL7j1DZo9vyT2e3jUx7ed_UNTcKrur2KbYXt4f20bnB98UoFtNFMV4Xk1i8lpUDsTiUi0OxOJLbjsTijay8FotjWXnzmeJYtiqS-76RU7JSYiKHTMkJyilDUsTlnCluoxw0VJKGctQ0cjlrqOwRlNOmkctxw1gRVwKniMuBIyVwJAdOISflWFMCR3LgtFNRDhwpgaNxZ1t2-vY_AAD__5Vz2Pk= # Only one distinct processor should be used in the single node UNION case. query T SELECT url FROM [EXPLAIN (DISTSQL) VALUES (1), (2) UNION VALUES (2), (3)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJysjzFLBDEQhXt_xfIqhcBtVqtUIjbXqFjYSIolGc7gmiyZBIQj_10uKc4VT1i8ct7Mm_e9PXyw9DB-EEO9QkILzDEYYg7xILWDrf2E6gWcn3M6yFrAhEhQeySXJoLCyzhl4k0PAUtpdFP9eNPddZdDZ96yf-cr6CIQcjp-4TTuCKovYnWSPHPSMSD7EC1FsosEXX5huXecnDdpMyxpbuVJArmm6zPxHDzTD5JT3bQA2R21OhxyNPQUg6kxbXysvipY4tS2Qxu2vq4q4Hez_I95-NN8vTD3RZeLrwAAAP__-YjY1Q== +https://cockroachdb.github.io/distsqlplan/decode.html#eJysjzFLBDEQhXt_xfIqhcBtVqtUIjbXqFjYSIolGc7gmiyZBIQj_10uKc4VT1i8ct7Mm_e9PXyw9DB-EEO9QkILzDEYYg7xILWDrf2E6gWcn3M6yFrAhEhQeySXJoLCyzhl4k0PAUtpdFP9eNPddZdDZ96yf-cr6CIQcjp-4TTuCKovYnWSPHPSMSD7EC1FsosEXX5huXecnDdpMyxpbuVJArmm6zPxHDzTD5JT3bQA2R21OhxyNPQUg6kxbXysvipY4tS2Qxu2vq4q4Hez_I95-NN8vTD3RZeLrwAAAP__-YjY1Q== subtest Intersect @@ -88,100 +88,100 @@ subtest Intersect query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz) INTERSECT ALL (SELECT y FROM xyz) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lt9r2zAQx9_3V4R72phGLNnOD8MgYxRWKO1o8zb84MZaE0hjIzvQrOR_H0madbbT-1rxpre69ud0On0up2daZam-Th51QdEPkiRIkSCfBAUkKKRYUG6ymS6KzOw-OQCX6RNFnqDFKl-Xu3_HgmaZ0RQ9U7kol5oimib3S32rk1SbvkeCUl0mi-V-mdwsHhOzmTxtfpGgm3UZ9SaK4q2gbF2-RHwNdL_pzZNiXg0xkRRvY0FFmTxoiuRWnJdZ-L8zU29m9hpnvcpMqo1OK5HiHYk-ObG9b0kxv9PlTd6XtbpPN7mOepfX04vbu4uv096XqysStNQ_y_cT-eGzWTzM93_92bqsbf11W75Nwe8yU2rTl2G9Uh_fjB-0KNupirwEPZHEdfYpy_vKq9f45PJhZXnZ3ifp1nSLzAZuTZduTZeOTAcFP5o-ONd01f5AlVvVLDIbulVNuVVNOVINFPyo2vBc1fz2B-q7Vc0is5Fb1Xy3qvmOVAMFP6o2Ole1oP2BBm5Vs8hs7Fa1wK1qgSPVQMGPqo3_xVXxRPxbXeTZ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ab8Ce3XYZ-GAP62AhZXklw679AcPg_7gYdQfgAb9AWjQH4Mu_cHDoD94GPUHoEF_ABr0x5C1dMRLOurSH-MuhvMwMJyHkeGABoYDGk0Am7HZ_CW1mZu2NBwCVpPTGgeay8YUqagqFS-65McIMF025oiN6oAGrgMayY5wYDvCke6NGWqlO08j3Xka6g5wpDvAke6NQVrVfQB0b8wUK90bM8VKd55GuvM01B3gSHeAI90b89RKd55GuvM01B3gSHeAI90bU7V61_Z43VVjtrC6x9t3vwMAAP__ibc6hw== query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz) INTERSECT (SELECT y FROM xyz) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mE9v4kgQxe_7KVCfdrVeQXc1f6WVWO1EmkhRMkq4jTg4uCcgEYxsI4WJ8t1HwADBjeu53YZb_vC66lXX-8nmXSziyNyHryYVg-9CikAoEQgSgdAiEG0xDsQyiScmTeNk85Gd4DZ6E4NWIGaL5Srb_HkciEmcGDF4F9ksmxsxEKPweW4eTRiZpNkSgYhMFs7m2zLLZPYaJuvh2_qnCMTDKhs0hkqMPwIRr7LjiWkWvhgxkB9B-apfZmk2W0yyZvu05FDmzj9KnteNaZhOz3z-2INy6eGzc-llnSpZl_V614VNHM9ZLeIkMomJTk7anlLYpmqBNo8ttC_VAprUsYWORwtBpS6_hun0yWQPyyblJjVaL82gcXs_unl8uvl_1Pjv7k4EYm5-ZH8O5V__JrOX6fanw4YV2-q6bNhTnGQmaZI1tb8Lz--VGNu5ifw-9EwT9_E_8bKpW_kZny3fPykvHXJbH7FA1cMydi5ILBfnXtapknVZr3dd2IQnLmRFYtXYAppUEbHcWvAmlrwSscCG7YllTa0ssVT54Kj6kAGqHrahe0FkODiXXtapknVZr3dd2IRnXlVFZNTYAppUETLcWvBGhroSMsCG7ZFhTa0sMqh8cKg-ZICqh23oXRAZDs6ll3WqZF3W610XNuGZV6qIjBpbQJMqQoZbC97IoCshA2zYHhnW1MoiQ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4YV2-q6bNhTnGQmaZI1tb8Lz--VGNu5ifw-9EwT9_E_8bKpW_kZny3fPykvHXJbH7FA1cMydi5ILBfnXtapknVZr3dd2IQnLmRFYtXYAppUEbHcWvAmlrwSscCG7YllTa0ssVT54Kj6kAGqHrahe0FkODiXXtapknVZr3dd2IRnXlVFZNTYAppUETLcWvBGhroSMsCG7ZFhTa0sMqh8cKg-ZICqh23oXRAZDs6ll3WqZF3W610XNuGZV6qIjBpbQJMqQoZbC97IoCshA2zYHhnW1MoiQ5cPjq4PGaDqYRv6F0SGg3PpZZ0qWZf1eteFTXjmVVdERo0toEkVIcOtBW9k6CshA2zYHhnW1Kp8lXLm_EeTLuNFakp9S9LazMxEL2Z3B2m8SibmWxJPtmV2vz5sdds_RCbNdv-Vu19uF7t_bRr8LJZ5sfws1idi6SaW5KNW0kvd91FTl1crduLET5zY0m2-Mi-W4L54tVI-amp5qXu8WrMT7_DitoNY5cUdVtzl77rLioHnHivWINh9ngotgAULKk5c4NUQDLwckgHIERp4OWKDtNByOngFBm-xxQUPQI34AOQIEECOCIHkIC7SIszp4NHoeMTk5BYmJA8Z2QHXzmMGWec5I3uguEUap7Dzahh2Xg7DDuQo7Lwchp2nrAKUVTxqwMYCNQo7kKOwAzkKO5KDjVc8ZRVYOsU_weXkVtgVjxqlwbXzqEHWedIoQBplkcYl7ECNwg7kKOxIDsIO5PCpn6esApRVPGpQ2AFl0b0BTKKwA0yisAM52niesgS2hvgX5JzcCjvxqCHwQEc8aoB14klDgDRkkcYl7ECNwg7kKOxIDsIO5CjsxFOWAGWJRw16yweURfcGMIne8wEm0Ys-kKON5ylL6Nr5t-ac3A47jxoNHug0j5q89fHHH78CAAD__555ymg= # INTERSECT ALL and INTERSECT with MergeJoiner. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz ORDER BY y) INTERSECT ALL (SELECT y FROM xyz ORDER BY y)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzElktv2k4Uxff_T4Hu6l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VGfPcKjEp4eI6Ha9wdr5_PnPuYwzvNkljfR686o_AnMXmkyCOfPArIoy4NPUpNMtJZlpjVTwrgNn6jsOPRZJbO89XHQ49GidEUvlM-yaeaQhpEz1P9qKNYm3aHPIp1Hk2ma5nUTF4js-i_LX6TRw_zPGz1FQ2XHiXzfPvELI_GmkJeetVVnxKTa9Pu7gr2-WLv8VviedF6ibKXfYCGy-0RlMsRPhpnkXP_BOdcs_Wg9Azb5yQm1kbHR4Ur_eqIne_ajPWTzh_Sttor4mCR6rB1ez-4eXy6-TZofb27I4-m-lf-f58vPn0xk_FL8fJvjbm0xl2ZvyMnv08-J2lb7fahTL63I88Ok1XfSgHVzWD1zrlSLsZFzv0TnHPN1oPSMzS3UtzYSqnqrVX1zTRQ3XT28pwz7WCcRc79E5xzzdaD0jM0N9OqsZn2q7fWr2-mgeqms1fnnGkH4yxy7p_gnGu2HpSeobmZ9hub6aB6a4P6Zhqobjp7fc6ZdjDOIuf-Cc65ZutB6Rmam-ngn_ydP3KoR52lySzTlf6pd1a2dDzWRbGyZG5G-odJRmuZ4u3Dmlt_EOssL77l4s3trPhqdcCPMO_D_BEOdmB2g7kjorsSWom0FdBW1or79or7DhVXbvBexV3proRWIm0FtANrxUG7ulZY9ez96lnpSzt8KVkvO4zWC9CgZnYarReggfaVteLX9opfS9bLDqP1AjQYcTuN1gvQQJvtGYKu4oPbdDeBFIigg-vUKYPsNAwhgCPrdhzGEMCR-sGlulv4ABT-4FZ12RVAo2VBOJpYO47WBeFI3R4pqG32SGGQKSwKFUDDfZHFCsDhvsiChe3JwiBaWJQtgIb7IksXgMN9keWLEuWLsueLAvmiRPkCaLQvCEfWZfmCcKRuzxcF8kWJ8gXQaF8QjiZWli8IR-pu-TJc_vcnAAD__w2vQns= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz ORDER BY y) INTERSECT (SELECT y FROM xyz ORDER BY y)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzE2M1u4zYUBeB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bPzLDszTUf1I-wNaTIt7kxhXTaZVj9Td6bpi5lm_PeaiWcaWPV9q03PNQ1cvjTNXMy0gJ5pGs80v6LZ6cHXNN-m2XmWnZlmovoR9oY0mRZ3prAum0yrn6k708z_8nlezVC3Nt-l29x6fVQ3ONyWXT_YY015us9W9s8sXb0tc_z25i339oO1zYvjb-n4zdX2-KvDgB_DJIZZDnM1TB_Do5MwhYWpVZqHbdLatEkbLae12LiRGzdieCiHh-LcY3lsOUyt0gwetpzW4GHLaQMe9khsfCKHxwFhroYnYngqrzyV37IRUAGYglCRVSHACrVyBaQRLCCOZAFxRAuII1tIxoWALiTzQsAXagUMSCNhQBwRA-LIGBBHyJCsDAFmSHaGADTUShqSqeEBOEPI1DCghh1qgs4gchoeQuQ4PIXIcXgMkePICnaoOS1eg-JlahhQww41IVaANLICxJEVII6sAHFkBTvUnBaP7l2mphJ3rGCZGmAFy9LwFLw0MjUaUKMdakKsAGlkBYgjK0AcWQHi8H8W-UCnwYFOy9RoQI12qAmxAqSRFSCOrABxZAWIIyu0fKDTaHiZmkrcsULL1AArtCyNnoCXRqZGA2q0Q02QFXIaWiHHoRVyHFohx5EVRj7QGXCgMzI1BlBj5H-gwGYHaWQFiCMrQBxZAeLICgM-mEKry9RU4o4VRqamasXi9Yd_AwAA__-aTCC3 # INTERSECT ALL and INTERSECT with no overlap. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz WHERE x < 2) INTERSECT ALL (SELECT x FROM xyz WHERE x >= 2) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlk1r20AQhu_9FWZOLd1i7UryhyCQUlJqCE5JfGt9UKxtbHAssZIhbsh_L7ZjUkn2vForCN2iSM_uaOd5PXqmVRzpcfioUwp-kSRBigS5JMgjQT5NBSUmnuk0jc32kT0wip4ocAQtVsk62_57KmgWG03BM2WLbKkpoEl4v9S3Ooy06TokKNJZuFjutknM4jE0m8unzV8S9H2xzLQJOpey83vtOO6so4IgGI0nJ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JHjny7j_CdH6ns5ukKwsNm2wSHXRG48nV7d3Vt0nn6_U1CVrqP9nHS_npwiwe5ru_Tr7622u5Nt24i02mTVf6xZP6fHJ9r8KxHTuR10WPFDGOv8RJVznFMz66vZ_bXlaXTbYnIhZV91oUEdlsRGRDEQHdOESkd25EVPVuq_Y4alF1v0WOqmYdVQ05CrpxcLR_rqNu9W677XHUoupBixx1m3XUbchR0I2Do4NzHfWqd9trj6MWVQ9b5KjXrKNeQ46CbhwcHb7H5_CR9W91msSrVFf60nW2Z6ajB73vQRqvzUz_NPFst83-8mbH7b5hIp1m-7tqfzFa7W9tC6wO9-vAUtai_Vr0kKelxZkpO7hfBy6cmS3t16KHPK2KtPM_7eZgpwi7LOzx3fJYWEl-a79OPngY5IOHUT4ADfIBaJCPXp188DDIBw-jfAAa5APQIB991tIBL-mgTj6GdQznYWA4DyPDAQ0MBzSaADZjs_xLajM3bWk4BKwmpzUONJelKZJTVSpedMmPEWC6LM0RG9UBDVwHNJId4cB2hCPdSzPUSneeRrrzNNQd4Eh3gCPdS4M0r3sP6F6aKVa6l2aKle48jXTnaag7wJHuAEe6l-aple48jXTnaag7wJHuAEe6l6Zq_lvb4XVXpdnC6j59-fAvAAD__93yhjY= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz WHERE x < 2) INTERSECT (SELECT x FROM xyz WHERE x >= 2) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mF1v4kYYhe_7K9BctaorPB98WYqUqk1VpIisEu52uXDwbLBEMLKNFDbKf18BCwQPfo-HMb5LMGfm-Mx7Htm8s0US6VH4qjMWfGWceUwwj0nmMcU81mETjy3TZKqzLEk3X9kJhtEbC3yPxYvlKt98PPHYNEk1C95ZHudzzQI2Dp_n-lGHkU7bPvNYpPMwnm-3Wabxa5iub9_WP5jH_ovnuU6D1i1vfVv5vpy2RBAEw9GYeexhlW8usMmHx5JVftwty8MXzQL-4VV39G-c5fFimrc7p3aM9Y-S53VrFm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DE5yGDO-CY6cxg26d5gzvg80N0liVnVbDstNyWHYgR2Wn5bDsNGUFoKygUQMmFqhR2YEclR3IUdmRHEy8oCkrwNAJ-gmuIDfKLmjUCAWOnUYNunWaNAKQRhiksSk7UKOyAzkqO5KDsgM5fOqnKSsAZQWNGlR2QFl0bgCTqOwAk6jsQI4mnqasBFMj6Rfkgtwou6RRI8EDnaRRA25d0qSRgDTSII1N2YEalR3IUdmRHJQdyFHZJU1ZCSgradSgt3xAWXRuAJPoPR9gEr3oAzmaeJqyEh07_dZckJtlp1GjwAOdolFTvPXJx28_AwAA__8jwRYm # INTERSECT ALL and INTERSECT with some overlap. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz WHERE x < 3) INTERSECT ALL (SELECT y FROM xyz WHERE x >= 1) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMll9v2jwUxu_fTxGdq3eaJ2In4U-kSkxTpyFVdGq523KREq8gURI5QSqr-O4TpIwloX5iUkW5KyU_-8Tn93D8Qus4ktPwSabk_yBOjAQxcoiRS4w8ChglKp7LNI3V_pEcmETP5NuMlutkk-3_HTCax0qS_0LZMltJ8mkWPqzknQwjqXo2MYpkFi5Xh20StXwK1Xb8vP1NjL4uV5lUvjXm1s-NbTtzy_F9fzKdEaPbTeZbY0HBjlG8yV53O23ysLUWYbooLj_mFOwCRmkWPkry-Y5dVrVnUrW8svi7li3eLPu0zmYdq0gqGRVWCvYkeuTMu38L08W9zG6THi81bLZNpG9NprPru_vrLzPr880NMVrJX9n_Y_7hSi0fF4e__r46L7366bUck27cxyqTqse98kl9fHN9t8axnTuR10XPFDGNP8VJT9jlMz67vVfYnteXjXcnIgZV9zsUEd5uRHhLEQHdOEakf2lERP1ui-44alD1oEOOinYdFS05CrpxdHRwqaNO_W473XHUoOphhxx12nXUaclR0I2jo8NLHXXrd9vtjqMGVY865KjbrqNuS46CbhwdHb3HdfjM-ncyTeJ1KmvddO39mcnoUeY9SOONmsvvKp4ftsk_3h64wx0mkmmWfyvyD5N1_tW-wPrwoAnMeSPaa0SP9DQ3ODNhBg-awKUzM6W9RvRIT4sybf9LOwXYLsOOFnb13XK1sOD6rb0m-dDDIB96GOUD0CAfgAb56DfJhx4G-dDDKB-ABvkANMjHQGvpUC_psEk-Rk0M18PAcD2MDAc0MBzQaAKYjM3qL6nJ3DSl4RAwmpzGONCcV6ZIQVUu9KJz_RgBpvPKHDFRHdDAdUAj2REObEc40r0yQ41019NIdz0NdQc40h3gSPfKIC3q3ge6V2aKke6VmWKku55GuutpqDvAke4AR7pX5qmR7noa6a6noe4AR7oDHOlemarFu7at111UZotW92D3358AAAD__8GFhkA= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMll9v2jwUxu_fTxGdq3eaJ2In4U-kSkxTpyFVdGq523KREq8gURI5QSqr-O4TpIwloX5iUkW5KyU_-8Tn93D8Qus4ktPwSabk_yBOjAQxcoiRS4w8ChglKp7LNI3V_pEcmETP5NuMlutkk-3_HTCax0qS_0LZMltJ8mkWPqzknQwjqXo2MYpkFi5Xh20StXwK1Xb8vP1NjL4uV5lUvjXm1s-NbTtzy_F9fzKdEaPbTeZbY0HBjlG8yV53O23ysLUWYbooLj_mFOwCRmkWPkry-Y5dVrVnUrW8svi7li3eLPu0zmYdq0gqGRVWCvYkeuTMu38L08W9zG6THi81bLZNpG9NprPru_vrLzPr880NMVrJX9n_Y_7hSi0fF4e__r46L7366bUck27cxyqTqse98kl9fHN9t8axnTuR10XPFDGNP8VJT9jlMz67vVfYnteXjXcnIgZV9zsUEd5uRHhLEQHdOEakf2lERP1ui-44alD1oEOOinYdFS05CrpxdHRwqaNO_W473XHUoOphhxx12nXUaclR0I2jo8NLHXXrd9vtjqMGVY865KjbrqNuS46CbhwdHb3HdfjM-ncyTeJ1KmvddO39mcnoUeY9SOONmsvvKp4ftsk_3h64wx0mkmmWfyvyD5N1_tW-wPrwoAnMeSPaa0SP9DQ3ODNhBg-awKUzM6W9RvRIT4sybf9LOwXYLsOOFnb13XK1sOD6rb0m-dDDIB96GOUD0CAfgAb56DfJhx4G-dDDKB-ABvkANMjHQGvpUC_psEk-Rk0M18PAcD2MDAc0MBzQaAKYjM3qL6nJ3DSl4RAwmpzGONCcV6ZIQVUu9KJz_RgBpvPKHDFRHdDAdUAj2REObEc40r0yQ41019NIdz0NdQc40h3gSPfKIC3q3ge6V2aKke6VmWKku55GuutpqDvAke4AR7pX5qmR7noa6a6noe4AR7oDHOlemarFu7at111UZotW92D3358AAAD__8GFhkA= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz WHERE x < 3) INTERSECT (SELECT y FROM xyz WHERE x >= 1) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mEtv6kYcxff9FNasWtUVngcvS1eiam9VpCtSJexaFg6eBksEI9tIoVG-ewVcIHjw_3gY4x2vM3N85n9-snlnqzTWk-hV5yz8m3HmM8F8JpnPFPNZl818ts7Suc7zNNv95CAYx28sDHyWrNabYvfxzGfzNNMsfGdFUiw1C9k0el7qRx3FOusEzGexLqJkud9mnSWvUbYdvW3_Yz77I1kWOgu9Eff-2QSBnHsyDMPxZMp89rApQm8k2OzDZ-mmOO-WF9GLZiH_8Os7-j3Ji2Q1LzrdSzsjXlr_LHneeosoX1z5_dmDsPHwORVuFYv-4vHaucibcuHNBqMqTZzX2azSLNaZji9W2q9SaVMEwObZQvdeFlBSZws9Bwv-TS7_jPLFky4e1h1ZSmq6XevQG0-mXx-fvv429X799o35bKn_LX4c8Z--ZMnLYv_qNGHVl9W3mbCnNCt01pFGaj9Xrj-oEdu1RL4vesXEJP0lXXdUUM746vbDi-25RanbQR1wdBrU3h1RZ5OKVSwOqKubC282GFVpwpEz_EbUNWgBJVWFOjsLzqjjLaEOTNgRdUZqdVEn6rdKtMMa4Og0Kf07ssYiFW4ViwNr6ubCmw1GVZpwLLq4kTUNWkBJVbHGzoIza0RLrAETdmSNkVpd1sj6rZLtsAY4Ok3K4I6ssUiFW8XiwJ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XPLAIN (DISTSQL) SELECT x, y FROM xyz INTERSECT ALL SELECT y, x from xyz] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEllGL2kwUhu-_XyHn6itM0ZlEdw0ULGWhwqLF9a7kImtOVXCdMImwdvG_F00Xa7TnZHoguYzJM_POmQd832BrU5wkL5hD9B00KDCgIAAFISjoQ6wgc3aBeW7d8ZMSGKevEPUUrLfZrjj-HCtYWIcQvUGxLjYIEcyT5w3OMEnRdXugIMUiWW9O22Ru_ZK4_eh1_xMUTHdF1BlpNTIQHxTYXfF70fNaz_vOKslXl6u8I7GCvEiWCJE-qH_L1-fzGTXS0nzmr_nOS-221qXoML1YLD6S3Cc3Dvk1yVdPWEyzrq7cwXyfYdQZT-YPs6eHL_PO58dHULDBH8X_p-AfPrn1cvX-QF3T-XyB4Hw3wk_sR5t1db86iZt7hxd76_p3r9tw0yPfoA03dbNu6qbdNPXnb9rwwyPfXRt-mGb9ME37EdSff9CGHx757tvwI2jWj6BpP8L68w_b8MMj37ANP8Jm_Qjb7D43os0wz-w2x1rNpnc8HKZLLIeV251b4DdnF6dtysfpiTv9b6eYF-VbUz6Mt-WrY8D68EACDyWwFuXWfZrWHiMzfvBAAg8lsBblrozsijZVuvcnHdDzDkhYX86sV6VDieA0zAhOw4zgNMwJztCM4H2J4DTMCE7DjOA0zAnO0IzgA4ngdxJFaZhRlIYZRWmYU5ShGUXvJYrSMKMoDTOK0jCnKEMzig4limpRT2BoRlKGZixlaE5TDue6gqwsyNqCrC4I-4KsMGhRY9BXlcHLVprmbKVpzlaaZm1lcM5Wn7J0fWc-bcmX5mz16kveOGfrVXkgbY0P__0KAAD__x91S3g= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzEllGL2kwUhu-_XyHn6itM0ZlEdw0ULGWhwqLF9a7kImtOVXCdMImwdvG_F00Xa7TnZHoguYzJM_POmQd832BrU5wkL5hD9B00KDCgIAAFISjoQ6wgc3aBeW7d8ZMSGKevEPUUrLfZrjj-HCtYWIcQvUGxLjYIEcyT5w3OMEnRdXugIMUiWW9O22Ru_ZK4_eh1_xMUTHdF1BlpNTIQHxTYXfF70fNaz_vOKslXl6u8I7GCvEiWCJE-qH_L1-fzGTXS0nzmr_nOS-221qXoML1YLD6S3Cc3Dvk1yVdPWEyzrq7cwXyfYdQZT-YPs6eHL_PO58dHULDBH8X_p-AfPrn1cvX-QF3T-XyB4Hw3wk_sR5t1db86iZt7hxd76_p3r9tw0yPfoA03dbNu6qbdNPXnb9rwwyPfXRt-mGb9ME37EdSff9CGHx757tvwI2jWj6BpP8L68w_b8MMj37ANP8Jm_Qjb7D43os0wz-w2x1rNpnc8HKZLLIeV251b4DdnF6dtysfpiTv9b6eYF-VbUz6Mt-WrY8D68EACDyWwFuXWfZrWHiMzfvBAAg8lsBblrozsijZVuvcnHdDzDkhYX86sV6VDieA0zAhOw4zgNMwJztCM4H2J4DTMCE7DjOA0zAnO0IzgA4ngdxJFaZhRlIYZRWmYU5ShGUXvJYrSMKMoDTOK0jCnKEMzig4limpRT2BoRlKGZixlaE5TDue6gqwsyNqCrC4I-4KsMGhRY9BXlcHLVprmbKVpzlaaZm1lcM5Wn7J0fWc-bcmX5mz16kveOGfrVXkgbY0P__0KAAD__x91S3g= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x, y FROM xyz INTERSECT SELECT y, x from xyz] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEmF9r4koYxu_Pp5C5OgfmoO9M_AsLLruFLZR2ab1bvEjNbBWsCUmEuqXffVFZrYl5nxkn6V7a9ue8eTK_J5O-ilUcmdvw2WRi9EOQkEIJKbSQIhBSdMVUiiSNZybL4nT7J3vgOnoRo44Ui1Wyzrc_nkoxi1MjRq8iX-RLI0ZiEj4uzb0JI5O2O0KKyOThYrlbJkkXz2G6Gb9sfgkp7tb5qDUmOVZi-iZFvM6PX5rl4ZMRI3qT9gt_XWT5YjXL293TVc8tcaQeN615mM3PI8dJlMsk7yMgiwyUHFNlBvqiDKiJEILK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1s1f5TVKDq-ZQt4yVbNn2WLlz59--d3AAAA__8EA-kj # INTERSECT ALL and INTERSECT with different ORDER BY types. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) INTERSECT ALL (SELECT x FROM xyz ORDER BY z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mFtr4lwUhu-_XyHr6huaQddO1CoMOAyFKZR2aL0bvEjNnipYE5IIdYr_ffAA1qRZ714eclcPb9bOkzzvjn2neRzZ-_DVZtT_TUweGfLIJ48C8qhNI4-SNB7bLIvT9Ve2gdvojfotj6bzZJGv3x55NI5TS_13yqf5zFKfhuHzzD7aMLJps0UeRTYPp7PNmCSdvobpcvC2_EsePSzyfmPA3sDQaOVRvMj3B83y8MVSn1ee--CnOM1t2mwfzhyYK2nWPv68bEzCbFJIM41W-_UYzXo-gmA3En4lCf8IEnxJFEHlgvbHidPIpjYqr2K0Djt865Nz-xlmkyebPyRNU2A6XCa237i9H948Pt38GDa-392RRzP7J_9_wF--pdOXyeavPYNK2u0jaJsibb6qPH7naHhcgeU-_honTf8QSdX47sF4VtzGZ_UZDN5x7dTmswaEGwlXn91I8CVRBJULqs1nrslnN9qmSNvZZ-N-H5mzCgUG706sW5tQChDsRsJVKDcSfEkUQeWCahPK1CSUG21TpO0slO9-H_lnFQoM3p3YdW1CKUCwGwlXodxI8CVRBJULqk0ovyah3GibIm1noQL3-yg4q1Bg8O7EerUJpQDBbiRchXIjwZdEEVQuqDahgpqEcqNtirSP-gn3yfEfbZbE88w6_TprrZnZ6MVur0QWL9Kx_ZXG482Y7cuHTW7zRmSzfPspb1_czrcfrRf4MczFMH8MBwdh1oWZT0p3T0kb_6R0T04bkbgvE_cVxI0uXCCuTXdPSReIa9M9OR2IxNsy8bYY7sjXuiNfa6BXV0xfy-HrU9yUw8hNkAZuymnkJkgDN3tyG7ZAHZbKVGMnSCM9URz4CeJIUBQHhnKpUg_BGwBe7lQgKZfa5XB4AIaX6kW1C8ppuA2CONoH5TjcCEEc2MZyt3IHgC-1q0o3OQ11A3GkmxyHuoE40k3eWRhsLVwqWZVucskaULJGU7Llhy9VyarjQDcQR7qhOHrwlEvWgJI1pZLV6AbSSDcUB7qBONINxYFuRt5gDNhgjPz8CnQzcskaULJGU7Ll4aqSVceRbqqSVceRbnLJGlCyRvMAX77lVE_w6jjSTfUMr44j3eQNxgcbjC__S6So22j1378AAAD__4JFZto= +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8mFtr4lwUhu-_XyHr6huaQddO1CoMOAyFKZR2aL0bvEjNnipYE5IIdYr_ffAA1qRZ714eclcPb9bOkzzvjn2neRzZ-_DVZtT_TUweGfLIJ48C8qhNI4-SNB7bLIvT9Ve2gdvojfotj6bzZJGv3x55NI5TS_13yqf5zFKfhuHzzD7aMLJps0UeRTYPp7PNmCSdvobpcvC2_EsePSzyfmPA3sDQaOVRvMj3B83y8MVSn1ee--CnOM1t2mwfzhyYK2nWPv68bEzCbFJIM41W-_UYzXo-gmA3En4lCf8IEnxJFEHlgvbHidPIpjYqr2K0Djt865Nz-xlmkyebPyRNU2A6XCa237i9H948Pt38GDa-392RRzP7J_9_wF--pdOXyeavPYNK2u0jaJsibb6qPH7naHhcgeU-_honTf8QSdX47sF4VtzGZ_UZDN5x7dTmswaEGwlXn91I8CVRBJULqs1nrslnN9qmSNvZZ-N-H5mzCgUG706sW5tQChDsRsJVKDcSfEkUQeWCahPK1CSUG21TpO0slO9-H_lnFQoM3p3YdW1CKUCwGwlXodxI8CVRBJULqk0ovyah3GibIm1noQL3-yg4q1Bg8O7EerUJpQDBbiRchXIjwZdEEVQuqDahgpqEcqNtirSP-gn3yfEfbZbE88w6_TprrZnZ6MVur0QWL9Kx_ZXG482Y7cuHTW7zRmSzfPspb1_czrcfrRf4MczFMH8MBwdh1oWZT0p3T0kb_6R0T04bkbgvE_cVxI0uXCCuTXdPSReIa9M9OR2IxNsy8bYY7sjXuiNfa6BXV0xfy-HrU9yUw8hNkAZuymnkJkgDN3tyG7ZAHZbKVGMnSCM9URz4CeJIUBQHhnKpUg_BGwBe7lQgKZfa5XB4AIaX6kW1C8ppuA2CONoH5TjcCEEc2MZyt3IHgC-1q0o3OQ11A3GkmxyHuoE40k3eWRhsLVwqWZVucskaULJGU7Llhy9VyarjQDcQR7qhOHrwlEvWgJI1pZLV6AbSSDcUB7qBONINxYFuRt5gDNhgjPz8CnQzcskaULJGU7Ll4aqSVceRbqqSVceRbnLJGlCyRvMAX77lVE_w6jjSTfUMr44j3eQNxgcbjC__S6So22j1378AAAD__4JFZto= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) INTERSECT (SELECT x FROM xyz ORDER BY z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy82F9r40YUBfD3foowTy2rYs-dK_-Dgku70MCSlCRvxQ9ee5oYspaRZNh0yXcvsQ2KZ-J7Rpqx3zbJHt-ro9EPJT_Uuljam_k3W6nJP0qrTJHKlFGZYpWpXM0ytSmLha2qonz7L_vA9fK7mvQztVpvtvXbt2eZWhSlVZMfql7Vz1ZN1MP867O9s_OlLXt9lamlreer592YTbn6Ni9fpt9f_lOZut3Wk6upzqakZq-ZKrZ186FVPX-0aqJfs_DB90VZ27KXH8-c0qewWdRm1p-rql6tF3VPO5c41c00Z1ST_vpy9TSvnrzk7LVZx7RZ533nOg8q3ZwsgjuUTm4Noa3nnVon9yanan1wcp3mc7brolza0i6PPmn3KScXNv4xOdXI8Fwr-J2dWmEUsULWacu_5tXTva1vNz12mnp42djJ1fXNw-e7-89_PFz9_uWLytSz_bf-eap_-a1cPT7t_nXyADSXNe5wsNlr7dNprfoBvX1UyeFTP9jipvi12PTyvlvyx_OPudQtzEjqNBh8aHaQxGkwq3FaX8TpNp0PkjodVjq5NXRzOrR1cm_yeZzW6ZD0j0mY0wlX8DsLc7rdCtFO6ws5HXaw2Wst2GkKf2YpqZNg8OHKhkmcBLMaJ-kiTrboXA-TOhlWOrk1d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SLbGAGtMnDVGtsYAa4xsjQHWmChrQBpZA-LIGhBH1oA4_JVLtsYAa4xsjQHWmChrQBpZA-LIGhBH1oA4ssbI1hhgjZGtMcAaI1vDwBqOs4ZlaxhYw7I1DKzhKGtAGlkD4sgaEEfWgDiyhmVrGFjDsjUMrOEoa0AaWQPiyBoQR9aAOLKGZWsYWMOyNQysYdmaHFiTt7Rm9vrT_wEAAP__vfcO0w== # INTERSECT ALL and INTERSECT with different numbers of ORDER BY columns. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) INTERSECT ALL (SELECT x FROM xyz ORDER BY y, z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEmF1r6lgUhu_nV8i-mqEZdK1ErcKAw1CYQmkPrXcHL1KzTxWskSRCPcX_fvADrNnH9e7lR7yrH29W8iTPu7f9NNM0sY_xu81N97shExg2gQlNYCITmKYZBGaWpUOb52m2-somcJ98mG4jMOPpbF6s3h4EZphm1nQ_TTEuJtZ0TT9-ndhnGyc2qzdMYBJbxOPJeswsG7_H2aL3sfhpAvM0L7q1HgU9NoNlYNJ5sTtoXsRv1nRpGfgPfkmzwmb15v7MHt9Is3bx10VtFOejUprMYLk7H9acz1cQ5Eki6IUHYYRHwCCXRtALb8BMHZTo4HntjpNmic1s4t6awSqMvrU-5fXI8mX-H-ejF1s8zepcItxfzGy3dv_Yv3t-ufuvX_v34cEEZmJ_FH_26K9_svHbaP3XDsVB8M0jwHMZPN0cPH7raIB0AMtj-nc6q4f7SA6Nb--NJ8VDfVa7weAt11ZldmtAeJLwt9sPBrk0Lmw3XctuqshuP_BcBu9tN_s_VXxWvcDg7YW1K9NLAYI8Sfjr5QeDXBoX1ouvpRdXpJcfeC6D99Yr9H-qwrPqBQZvL-y2Mr0UIMiThL9efjDIpXFhvcJr6RVWpJcfeC6D99Yr8n-qorPqBQZvL6xTmV4KEORJwl8vPxjk0riwXtG19Ioq0ssPPJfBH_XT7zfHf7b5LJ3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vL-y2Mr0UIMiThL9efjDIpXFhvcJr6RVWpJcfeC6D99Yr8n-qorPqBQZvL6xTmV4KEORJwl8vPxjk0riwXtG19Ioq0ssPPJfBH_XT7zfHf7b5LJ3m1utXXWPFzCZvdnM38nSeDe23LB2ux2xePq1z6zcSmxebT2nz4n66-Wh1gl_DVA7T13C0FyZdmOikdPuUNIcnpTtymkXioUw8VBBnXbhEXJtun5IuEdemO3I6Eok3ZeJNMdyS73VLvtdAr7aYvpXDt6e4KYeRmyAN3JTTyE2QBm525DZsgDp0ylRjJ0gjPVEc-AniSFAUB4aSU6n74BmAlzsVSEpOu-wPj8Bwp15Uq6CchssgiKN1UI7DhRDEgW0kdyu1AHinXVW6yWmoG4gj3eQ41A3EkW7yykJgaSGnZFW6ySXLoGRZU7Lu5ktVsuo40A3EkW4ojjaecskyKFl2SlajG0gj3VAc6AbiSDcUB7qxvMAwWGBY3r8C3VguWQYly5qSdYerSlYdR7qpSlYdR7rJJcugZFmzgXcfOdUOXh1Huqn28Oo40k1eYEKwwITyv0TKug2Wf_wKAAD__0XrdO8= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) INTERSECT (SELECT x FROM xyz ORDER BY y, z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy82F9r40YUBfD3foowTy1RsefOlf9BwaVdaGBJSpK34gevPU0MWctIMmwa8t1LbIPiGfuekWfst02yx_fqaPRDyZtaFnN7O_1uKzX6R2mVKVKZMipTrDKVq0mmVmUxs1VVlB__ZRu4mf9Qo26mFsvVuv749iRTs6K0avSm6kX9YtVIPU6_vdh7O53bstNVmZrberp42YxZlYvv0_J1_OP1P5Wpu3U9uhrrbExq8p6pYl03H1rV0yerRvo9Cx_8UJS1LTv5_swxXYfNojaz_lxU9WI5qzvaucSxbqY5o5r0t9er52n17CUn7806ps06nzvXeVjp2dgc7YJP6J3cJug6G5vr4Jn5Sf2Te7tT9d87uk7zOetlUc5taed7n7T5lKMLG__A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wAA__8KPxj2 +https://cockroachdb.github.io/distsqlplan/decode.html#eJy82F9r40YUBfD3foowTy1RsefOlf9BwaVdaGBJSpK34gevPU0MWctIMmwa8t1LbIPiGfuekWfst02yx_fqaPRDyZtaFnN7O_1uKzX6R2mVKVKZMipTrDKVq0mmVmUxs1VVlB__ZRu4mf9Qo26mFsvVuv749iRTs6K0avSm6kX9YtVIPU6_vdh7O53bstNVmZrberp42YxZlYvv0_J1_OP1P5Wpu3U9uhrrbExq8p6pYl03H1rV0yerRvo9Cx_8UJS1LTv5_swxXYfNojaz_lxU9WI5qzvaucSxbqY5o5r0t9er52n17CUn7806ps06nzvXeVjp2dgc7YJP6J3cJug6G5vr4Jn5Sf2Te7tT9d87uk7zOetlUc5taed7n7T5lKMLG__AHGukf64V_M6OrTCIWCE7acu_ptXzg63vVh12mnp8XdnR1c3t45f7hy9_PF79_vWrytSL_bf-eax_-a1cPD1v_nX0ADSXNTzhfLPX2vVxt7oBvR2qZPepB7a4LX4tVp2865Z8eP4-nLqFHknFBoN3zfaSiA1mNWLri4jdpvNearHDeie3iSixQ_sn93afR2ydjkv_wISJnXAFv7MwsdutEC22vpDYYeebvdaCxabwp5eSigkG766sn0RMMKsRky4iZovOdT-1mGG9k9tElJih_ZN7u88jJqXjyj8wYWImXMHvLEzMditEi0kXEjPsfLPXWrCYJvzpNUnFBIN3VzZIIiaY1YhpLiJmi871ILWYYb2T20SUmKH9k3u7zyOmSceVf2DCxEy4gt9ZmJjtVogW01xIzLDzzV5rwWJy-NPLScUEg3dXNkwiJpjViMkXEbNF53qYWsyw3sltIkrM0P7Jvd3nEZPTceUfmDAxE67gdxYmZrsVosXkC4kZdr7Za-2kv6MeGHBvq1WxrGzQn0i7H6XZ-ZPd3oSqWJcz-3dZzDZjtl_ebXKbb8xtVW9_qrdf3Cy3P_pY8HNYi2GSw-SG9edwby-s24V1PyZNUWkTlWaQNmLjLDfOYjiXw7m4N1hbDutBTJqi0iYqzSDdExsH4X6LMLnhgRgeyvd6KKPQlffWsik5QkVWRQNWtPeA7ccNiHtPWBuWQBq5BOIIJhBHMoE4oknLvGjgi_aetP14D8S9R62NTyCNgAJxJBSII6JAHBmlZWf0EMRlaZy455SWraEueIkA7y-AKgJvMOgVRraGgDUUZQ1Iw3egOGtAHL4FxVlDsjUErCHZGgLWUJQ1II2sAXFkDYgja0AcWUOyNQSsIdkaAtaQbI0B1pg4a4xsjQHWGNkaA6wxUdaANLIGxJE1II6sAXH4K5dsjQHWGNkaA6wxUdaANLIGxJE1II6sAXFkjZGtMcAaI1tjgDVGtoaBNRxnDcvWMLCGZWsYWMNR1oA0sgbEkTUgjqwBcWQNy9YwsIZlaxhYw1HWgDSyBsSRNSCOrAFxZA3L1jCwhmVrGFjDsjU5sCZvac3k_af_AwAA__8KPxj2 # INTERSECT ALL and INTERSECT with compatible ORDER BY columns that are not in the final result. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz ORDER BY z) INTERSECT ALL (SELECT y FROM xyz ORDER BY z)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEl0tr20AUhff9FeauWjrFvleSkwgKLiXQQEhK4l3xQrGmscGxxEiGuMH_vfhBHb_maDy2uvNDn8_VmXt08BuNs1TfJS-6oPgXMSkSUhSQopAURdRTlJusr4siM_NLlsBN-kpxS9FwnE_K-cc9Rf3MaIrfqByWI00xdZOnkX7QSapNs0WKUl0mw9FCJjfDl8RMO6_TP6ToflLGjY6oTkC9maJsUq5_tCiTZ00xz1R14cfMlNo0o03Njnz-p8WqI1taa_xp2hgkxWCLZurN1vOIyzzvjWBfJ4IjnOBzWhEeHGj9O5lJtdHp7hS9OVzhqj339iMpBo-6vM-bsuVpd5rruHFz171-eLz-3m18u70lRSP9u_zY4U9fzfB5sHi19uCg21GFm5uM9w2-d-a77EuWNyXaunK_dntDmx127KRhA8KrFWvXFjYXI3ydCI5wgs9pRXhwoNrCxjWFTaqfs5x04YHw6pgvalt4ByPY14ngCCf4nFaEBweqbeGlpoUP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zWhEeHKi2hQ9qWviw-jmHJ114ILw65qvaFt7BCPZ1IjjCCT6nFeHBgWpb-PA__H_YM9GDLvJsXOhK_w5a83vS6bNeOlVkE9PXP03WX8gs394vuMUHqS7K5be8fHMzXn41H_A9zNswv4fDDZjdYG550ZEPLV7aArTF6nhgdzxwcFzc4C3HXenIhxYvbQHaodVxcFyRFZa2_bzaVvrCDl_4xMsOo3gBGnhmp1G8AA20L62OX9kdv_KJlx1G8QI0WHE7jeIFaKDN9g5Bj-Kdp-lmAwmooJ3HqVMH2WlYQgBHt27HYQ0BHKnvPFQ3jQ-B8TtPVZesABqFBeFoY-04igvCkbq9UtCx2SuFQaewV6kAGubFr1YADvPiVyxsbxYG1cJe3QJomBe_dgE4zItfv4hXv4i9XwT0i3j1C6BRXhCObt2vXxCO1O39IqBfxKtfAI3ygnC0sX79gnCk7tYvvdmHvwEAAP__DBZjqA== query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz ORDER BY z) INTERSECT ALL (SELECT y FROM xyz ORDER BY z)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEl0tr20AUhff9FeauWjrFvleSkwgKLiXQQEhK4l3xQrGmscGxxEiGuMH_vfhBHb_maDy2uvNDn8_VmXt08BuNs1TfJS-6oPgXMSkSUhSQopAURdRTlJusr4siM_NLlsBN-kpxS9FwnE_K-cc9Rf3MaIrfqByWI00xdZOnkX7QSapNs0WKUl0mw9FCJjfDl8RMO6_TP6ToflLGjY6oTkC9maJsUq5_tCiTZ00xz1R14cfMlNo0o03Njnz-p8WqI1taa_xp2hgkxWCLZurN1vOIyzzvjWBfJ4IjnOBzWhEeHGj9O5lJtdHp7hS9OVzhqj339iMpBo-6vM-bsuVpd5rruHFz171-eLz-3m18u70lRSP9u_zY4U9fzfB5sHi19uCg21GFm5uM9w2-d-a77EuWNyXaunK_dntDmx127KRhA8KrFWvXFjYXI3ydCI5wgs9pRXhwoNrCxjWFTaqfs5x04YHw6pgvalt4ByPY14ngCC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sbeEdjGBfJ4IjnOBzWhEeHKi2hQ9qWviw-jmHJ114ILw65qvaFt7BCPZ1IjjCCT6nFeHBgWpb-PA__H_YM9GDLvJsXOhK_w5a83vS6bNeOlVkE9PXP03WX8gs394vuMUHqS7K5be8fHMzXn41H_A9zNswv4fDDZjdYG550ZEPLV7aArTF6nhgdzxwcFzc4C3HXenIhxYvbQHaodVxcFyRFZa2_bzaVvrCDl_4xMsOo3gBGnhmp1G8AA20L62OX9kdv_KJlx1G8QI0WHE7jeIFaKDN9g5Bj-Kdp-lmAwmooJ3HqVMH2WlYQgBHt27HYQ0BHKnvPFQ3jQ-B8TtPVZesABqFBeFoY-04igvCkbq9UtCx2SuFQaewV6kAGubFr1YADvPiVyxsbxYG1cJe3QJomBe_dgE4zItfv4hXv4i9XwT0i3j1C6BRXhCObt2vXxCO1O39IqBfxKtfAI3ygnC0sX79gnCk7tYvvdmHvwEAAP__DBZjqA== # INTERSECT ALL and INTERSECT with a projection on the result. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM ((SELECT x, y FROM xyz) INTERSECT ALL (SELECT x, y FROM xyz))] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEllGL2kwUhu-_XyHn6itM0ZlEdw0ULGWhwqLF9a7kImtOVXCdMDPC2sX_XjRdrNHOyfRAchmTZ-adMw_4vsFW5zjJXtBC8h0kCFAgIAIBMQjoQyqgMHqB1mpz_KQExvkrJD0B622xc8efUwELbRCSN3Brt0FIYJ49b3CGWY6m2wMBObpsvTltU5j1S2b2o9f9TxAw3bmkM5JipCA9CNA793vR81rP-84qs6vLVd6RVIB12RIhkQfxb_n6zeRTf813Xmq31SZHg_nFYumRpD65ccivmV09oZsWXVm5g_m-wKQznswfZk8PX-adz4-PIGCDP9z_p-AfPpn1cvX-cB5DZQbnw0WMw91IPtEfddGV_eoYbu4dX-wt61-8bEPMgHyDNsSUzYopGxVT1R--akOOgHx3bcihmpVDNSpHVH_4URtyBOS7b0OOqFk5okbliOsPP25DjoB8wzbkiJuVI26t79zINUNb6K3FWm2mdzwZ5kssJ2X1zizwm9GL0zbl4_TEnf6rc7SufKvKh_G2fHUMWB8ecOAhB5as3LLvp2XAyFQYPODAQw4sWbkrI7uiVZXu_UlH_nlHXlhezqxXpWOO4H6YENwPE4L7YUpwgiYE73ME98OE4H6YENwPU4ITNCH4gCP4HUdRP0wo6ocJRf0wpShBE4recxT1w4SifphQ1A9TihI0oeiQo6hk9QSCJiQlaMJSgqY0pXCqK_DKAq8t8OoCsy_wCoNkNQZ5VRmCbPXTlK1-mrLVT5O2Ejhla0hZur6zkLYUSlO2BvWlYJyy9ao8eG1ND__9CgAA___b20hi +https://cockroachdb.github.io/distsqlplan/decode.html#eJzEllGL2kwUhu-_XyHn6itM0ZlEdw0ULGWhwqLF9a7kImtOVXCdMDPC2sX_XjRdrNHOyfRAchmTZ-adMw_4vsFW5zjJXtBC8h0kCFAgIAIBMQjoQyqgMHqB1mpz_KQExvkrJD0B622xc8efUwELbRCSN3Brt0FIYJ49b3CGWY6m2wMBObpsvTltU5j1S2b2o9f9TxAw3bmkM5JipCA9CNA793vR81rP-84qs6vLVd6RVIB12RIhkQfxb_n6zeRTf813Xmq31SZHg_nFYumRpD65ccivmV09oZsWXVm5g_m-wKQznswfZk8PX-adz4-PIGCDP9z_p-AfPpn1cvX-cB5DZQbnw0WMw91IPtEfddGV_eoYbu4dX-wt61-8bEPMgHyDNsSUzYopGxVT1R--akOOgHx3bcihmpVDNSpHVH_4URtyBOS7b0OOqFk5okbliOsPP25DjoB8wzbkiJuVI26t79zINUNb6K3FWm2mdzwZ5kssJ2X1zizwm9GL0zbl4_TEnf6rc7SufKvKh_G2fHUMWB8ecOAhB5as3LLvp2XAyFQYPODAQw4sWbkrI7uiVZXu_UlH_nlHXlhezqxXpWOO4H6YENwPE4L7YUpwgiYE73ME98OE4H6YENwPU4ITNCH4gCP4HUdRP0wo6ocJRf0wpShBE4recxT1w4SifphQ1A9TihI0oeiQo6hk9QSCJiQlaMJSgqY0pXCqK_DKAq8t8OoCsy_wCoNkNQZ5VRmCbPXTlK1-mrLVT5O2Ejhla0hZur6zkLYUSlO2BvWlYJyy9ao8eG1ND__9CgAA___b20hi query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM ((SELECT x, y FROM xyz) INTERSECT (SELECT x, y FROM xyz))] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEmM1q20AUhfd9CnNXLajYd0b-hUJKG2ggJCXxrnihWNPY4FhGkiFuyLsX29SOJesejUZKl07yea6O5jsa5YWWUWhugieT0OgXMXmkyCNNHvnkUZcmHq3iaGqSJIq3f7IHrsJnGnU8mi9X63T744lH0yg2NHqhdJ4uDI1oHDwszJ0JQhO3O-RRaNJgvtgts4rnT0G8uXje_CGPbtfpqHXB3oWiyatH0To9fmmSBo-GRvzqlV_4-zxJ58tp2u6ernpuiSP1sGnNgmR2HjlOomwmeRsBu2agK2XATYTgF45y_Kr1MopDE5vw5Mt231I4rOrgYY9TdJuaokRkxyl6DlN4lQb9ESSze5Perto6k9d4szKj1tXN-PLu_vLbuPX1-po8Wpjf6cfdRXz6Es8fZ_8-HLdd4cX16434Jvocrdq6m43h7NqDk7XZwrRaywYsfNg1vcbLxiYC1wx0pQy4iRD8wlEcNefqZVPjFCUiKyobuymcy4bftWxU-d2uahUeLHy4c_3GhbeIgF0z0JUy4CZC8AtHcVRNVRe-xilKRFYkvN0UzsKrdxVel9_tulbhwcKHOzdoXHiLCNg1A10pA24iBL9wFEfVdHXha5yiRGRFwttN4Sy8flfh_fK73a9VeLDw4c4NGxfeIgJ2zUBXyoCbCMEvHMVRNb-68DVOUSKyIuHtpnAW3v9v_z84M9edSVbRMjGl_jvQ2V6ZCR_NPqkkWsdT8zOOprtl9h9vd9zuB6FJ0v1vef_harn_1XbAtzBnYX4L-ycw28GsnOihC616LrTWMq3ExLWcuBaX7soryzCDuWVadZzovgutwU7zxcTBze5awCoL90QYXHRf3ig9eacMRHoow0MXsWUYiQ1oILZM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_jvQ2V6ZCR_NPqkkWsdT8zOOprtl9h9vd9zuB6FJ0v1vef_harn_1XbAtzBnYX4L-ycw28GsnOihC616LrTWMq3ExLWcuBaX7soryzCDuWVadZzovgutwU7zxcTBze5awCoL90QYXHRf3ig9eacMRHoow0MXsWUYiQ1oILZMI7FlGonNoEtRmcq1AtwGNJIb4MhuhIOdDnDkN8uVygjPtYuE5xxnuV7Qpcv9wsByzjWM1SNYpuEzGODoISzj8Cks49BWuV55AILP9auVrTINbZVxaCvA0ZaVcWhrrmVPglcMjk9yy2bwnK0qVzU2tiq5aRQ4vSn5HAOCAzSyFeHAVoAjWwEOD81yyaouCD7Xsja2AhrZCnBkK8LRlpVxZKuSj7BqAHC5ZTN43lb5FIsuXW4a3QHvWrmmsbEV0MhWhANbAY5sBTiyVcslqxUIPteyVm-5Mg1fc2UcvucCHL3oyjiyVctHWY2ik1s2g-ds1fJZNnvpk9cPfwMAAP__buTmDQ== subtest Except @@ -189,97 +189,97 @@ subtest Except query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz) EXCEPT ALL (SELECT x AS y FROM xyz) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8ll1r2zAUhu_3K8K52phGLNnOh2GQMQorlLa0vRgMX7ix1gTS2MgONCv57yNJQ2c7Oa8VD901jR_p-Og5efVKyyzV18mzLij6RZIEKRLkk6CABIUUC8pNNtVFkZntI3vgMn2hyBM0X-arcvvvWNA0M5qiVyrn5UJTRA_J40Lf6STVpu-RoFSXyXyx2yY38-fErCcv6z8k6GZVRr2JongjKFuVbyu-L_S47s2SYlZdYiIp3sSCijJ50hTJjTivshBXJjtVpk5W9r7OapmZVBudVlaKtyR65Mjr_UiK2b0ub_K-rPX9YZ3rqHfx8_vF7UPv29UVCVro3-XHifz01cyfZru_Tr73-zv5Nt2-z0ypTV-G9TZ9Prl-0KJnx9rxtuiRIq6zL1neV169wUe3Dyvby_YySbeaW1Q2cKu5dKu5dKE56PZB88G5m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v9NFni0L3erm520bptMnvT-AIluZqb412XS3zf7jzY7b3QdSXZT7b9X-w-Vy_9W2wPbwsAssZSc67ESPeVpa9EzZwcMucK1ntnTYiR7ztKrT3r-0X4G9OuyzcMCfVsDCSvJbh13mg4fBfPAwmg9Ag_kANJiPQZf54GEwHzyM5gPQYD4ADeZjyFo64iUddZmPcRfDeRgYzsPIcEADwwGNEsAmNpu_pDa5aUvDELBKTmscaC4bKVJRVSpedMnHCDBdNnLERnVAA9cBjWRHOLAd4Uj3RoZa6c7TSHeehroDHOkOcKR7I0irug-A7o1MsdK9kSlWuvM00p2noe4AR7oDHOneyFMr3Xka6c7TUHeAI90BjnRvpGr1ru3xuqtGtrC6x5sPfwMAAP__S381-g== query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz) EXCEPT (SELECT x AS y FROM xyz) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mN1rGkEUxd_7V8h9aukWnQ8_oWBpAw2EJCR5KBQfNu40CsaV3RViQ_73olaNO-49M-7qWz48c--5c8-PXV9pGkfmOnw2KfV-k6CAJAWkKCBNATVpENAsiYcmTeNk-ZG14DJ6oV4joPF0Ns-Wfx4ENIwTQ71XysbZxFCPHsLHibkzYWSSeoMCikwWjierMrNk_Bwmi_7L4i8FdDPPerW-pMFbQPE8252YZuGToZ54C9yr_hin2Xg6zOrN_ZJ9kTt_J3lc1EZhOjrw-V0P0qeH986Fg_V8a7uy6ijrolrvurCJ3TnzaZxEJjHR3kmrUwrblA3Q5q6F5qlaQJPatdAq0UJwVJc_w3R0b7KbWV3lJvWwmJle7eLX94vbh9q3qysKaGL-ZB_74tPXZPw0Wv3ksF5tn_W6j5PMJHVljexz4fkdh5kdGsf_Qw80cR1_iWd13cgP-GD57l554RHa6nAFqm43sXVCXPk4d7DuiitX66Ja77qwiZKsEEfiqsIW0KSKcOXXQmlciXPgCqzXBlfWyFxxJd1TI6vjBai6XYX2CXnh4Vw4WHflhat1Ua13XdhEyb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ALL and EXCEPT with MergeJoiner. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz ORDER BY y) EXCEPT ALL (SELECT y FROM xyz ORDER BY y)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lk9v2kAQxe_9FGhOreIKZm2TxFIlqiqHSGkSJTlUqjg4eEqQCLbWRgqN-O4VGJXwb5-XNb4l4J_fvNmZfbzTJE3kNn6VnKLfxOSRIo988iggj0Lqe5TpdCB5nurFIyVwnbxR1PFoNMmmxeLjvkeDVAtF71SMirFQRE_x81geJE5EtzvkUSJFPBovZTI9eo31rPc2-0se3U2LqNVT1J97lE6L9RvzIh4KRTz3qqs-proQ3Q43BXt8tvX6NfE8a73E-cs2QP35ugRlU8JH4-zk3D_COddsPThYw_o9qU5ES7JXuNJTe-z8FD2URynusrbaauLTLJOodfXrx9X9U-v7zQ15NJY_xecen335pkfDl_LP_w3mgw0OK5ibTvYVvrfm2_RrmrVVuPXkfu3uhjZbzFR9ywRUVyPVPeUy2Rh3cu4f4Zxrth4crKG5ZeJmlklVP1dV30AD1dWxnp9yoC2Ms5Nz_wjnXLP14GANzQ20amag_ern6tc30EB1dawXpxxoC-Ps5Nw_wjnXbD04WENzA-03M9BB9XMN6htooLo61stTDrSFcXZy7h_hnGu2HhysobmBDpr__b6nogfJs3SSS6Vf552FJ0mGUnYqT6d6IPc6HSxlyn_vltzyg0TyovyWy3-uJ-VXiwI_wrwN80c42IDZDuaOEx260MpJWwFtZey4b-64b9FxZQdvddyWDl1o5aStgHZg7Dg4rtAIq675vLpG-twMn7uslxlG6wVo0DMzjdYL0ED7wtjxS3PHL13Wywyj9QI0GHEzjdYL0ECbzRmCruKd23QzgRSIoJ3r1CqDzDQMIYAj62YcxhDAkfrOpbrZ-AA0fudWtdkVQKNlQTiaWDOO1gXhSN0cKejYzJHCIFPYKVQADffFLVYADvfFLVjYnCwMooWdsgXQcF_c0gXgcF_c8kU55Ysy54sC-aKc8gXQaF8Qjqy75QvCkbo5XxTIF-WUL4BG-4JwNLFu-YJwpG6XL_35p38BAAD__2XuPfY= +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lk9v2kAQxe_9FGhOreIKZm2TxFIlqiqHSGkSJTlUqjg4eEqQCLbWRgqN-O4VGJXwb5-XNb4l4J_fvNmZfbzTJE3kNn6VnKLfxOSRIo988iggj0Lqe5TpdCB5nurFIyVwnbxR1PFoNMmmxeLjvkeDVAtF71SMirFQRE_x81geJE5EtzvkUSJFPBovZTI9eo31rPc2-0se3U2LqNVT1J97lE6L9RvzIh4KRTz3qqs-proQ3Q43BXt8tvX6NfE8a73E-cs2QP35ugRlU8JH4-zk3D_COddsPThYw_o9qU5ES7JXuNJTe-z8FD2URynusrbaauLTLJOodfXrx9X9U-v7zQ15NJY_xecen335pkfDl_LP_w3mgw0OK5ibTvYVvrfm2_RrmrVVuPXkfu3uhjZbzFR9ywRUVyPVPeUy2Rh3cu4f4Zxrth4crKG5ZeJmlklVP1dV30AD1dWxnp9yoC2Ms5Nz_wjnXLP14GANzQ20amag_ern6tc30EB1dawXpxxoC-Ps5Nw_wjnXbD04WENzA-03M9BB9XMN6htooLo61stTDrSFcXZy7h_hnGu2HhysobmBDpr__b6nogfJs3SSS6Vf552FJ0mGUnYqT6d6IPc6HSxlyn_vltzyg0TyovyWy3-uJ-VXiwI_wrwN80c42IDZDuaOEx260MpJWwFtZey4b-64b9FxZQdvddyWDl1o5aStgHZg7Dg4rtAIq675vLpG-twMn7uslxlG6wVo0DMzjdYL0ED7wtjxS3PHL13Wywyj9QI0GHEzjdYL0ECbzRmCruKd23QzgRSIoJ3r1CqDzDQMIYAj62YcxhDAkfrOpbrZ-AA0fudWtdkVQKNlQTiaWDOO1gXhSN0cKejYzJHCIFPYKVQADffFLVYADvfFLVjYnCwMooWdsgXQcF_c0gXgcF_c8kU55Ysy54sC-aKc8gXQaF8Qjqy75QvCkbo5XxTIF-WUL4BG-4JwNLFu-YJwpG6XL_35p38BAAD__2XuPfY= query T SELECT url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0jTuTGFdNmlaP1N3mlI_mrL_RuN4oIFVX_bZ9FrQwOVL0Lg30AJ6pmk80PyKZqcHX9B8m2bnWXYGGkfFI-wNaQIt7kxhXTaBVj9Td6BxP6Bp_42m44EGVn3ZZ7NrQQOXL0HTvYEW0DPN4oHmVzQ7PfiC5ts0O8-yM9B0VDzC3pAm0OLOFNZlE2j1M3UHmu4HNOO_0Uw80MCqL_tsfi1o4PIlaKY30AJ6pnk80PyKZqcHX9B8m2bnWXYGmomKR9gb0gRa3JnCumwCrX6m7kAz_X-AVzPRJ5sf0n1uvT6eG53uyW7v7LmjPD1mG_sxSzfPy5y_vXnOPf9ga_Pi_Fs6f_Nuf_7VacDXYRLDLIe5GqbX4clFmMLC1CrN4zZpbdqkjZbTWmzcyI0bMTyWw2Nx7qk8thymVmkGD1tOa_Cw5bQBD3siNj6Tw9OAMFfDMzE8l1eey2_ZBKgATEGoyKoQYIVauQLSCBYQR7KAOKIFxJEtJONCQBeSeSHgC7UCBqSRMCCOiAFxZAyII2RIVoYAMyQ7QwAaaiUNydTwCJwhZGoYUMMONUFnEDkNDyFyHJ5C5Dg8hshxZAU71FwWr0HxMjUMqGGHmhArQBpZAeLIChBHVoA4soIdai6LR_cuU1OJO1awTA2wgmVpeA5eGpkaDajRDjUhVoA0sgLEkRUgjqwAcfg_i3yg0-BAp2VqNKBGO9SEWAHSyAoQR1aAOLICxJEVWj7QaTS8TE0l7lihZWqAFVqWRs_ASyNTowE12qEmyAo5Da2Q49AKOQ6tkOPICiMf6Aw40BmZGgOoMfI_UGCzgzSyAsSRFSCOrABxZIUBH0yh1WVqKnHHCiNTU7Vi9fTT_wEAAP__t4McMg== # EXCEPT ALL and EXCEPT with no overlap. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz WHERE x < 2) EXCEPT ALL (SELECT x FROM xyz WHERE x >= 2) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMll1r2zAUhu_3K8K52phGLNnOh6HQMT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ecU_SJJghQJ8klQQIJCGgvKTDrReZ6a9SNb4Dx5pMgTNFtkS7v-91jQJDWaoieyMzvXFNEovpvrGx0n2nQ9EpRoG8_mm20yM3uIzer0cfWXBH2fza02UedUdn4vPc-fdFQUReeXIxJ0tbTrGzR-FpQu7ctur5vcrTrTOJ8Wl988PxaU2_heUySfxXFVhy5V65N3Llu9WfbrOstFahJtdFJYabwm0SMH3v1HnE9vtb3KunKvYaNVpqPO2c9vZ9ejzteLCxI013_sx1P56cTM7qebv95879d38l1acZsaq01XhvvH9PnN9YMKZ3boOF4WPVDEZfolzbrK2z_gg9uHhe1lddNke_LhUHWvRfmQzeZDNpEP0IpdPnrH5kNVb7Vqj6AOVfdbJKhqVlDVhKCgFTtB-8cK6ldvtd8eQR2qHrRIUL9ZQf0mBAWt2Ak6OFbQoHqrg_YI6lD1sEWCBs0KGjQhKGjFTtDhe3wCH1j_RudZush1pa9bb31gOrnX2wbk6dJM9LVJJ5tttpdXG27z6ZLo3G7vqu3F-WJ7a11gdbhfB5ayFh3Wooc8LR3OTLnB_Trw3pm50mEtesjTap_2_qf9Auztwz4LB3y3AhZWkt86rJMPHgb54GGUD0CDfAAa5KNXJx88DPLBwygfgAb5ADTIR5-1dMBLOqiTj2Edw3kYGM7DyHBAA8MBjSaAy9gs_5K6zE1XGg4Bp8npjAPNZWmKFFSVihdd8mMEmC5Lc8RFdUAD1wGNZEc4sB3hSPfSDHXSnaeR7jwNdQc40h3gSPfSIC3q3gO6l2aKk-6lmeKkO08j3Xka6g5wpDvAke6leeqkO08j3Xka6g5wpDvAke6lqVr81vZ43VVptrC6j58__AsAAP__XY-Brg== query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz WHERE x < 2) EXCEPT (SELECT x FROM xyz WHERE x >= 2) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mF1v2kgYhe_3V6C52tV6heeDL0uRsmpTNVKURAkXlVouHDwNlghGtpFCo_z3CigQPPg9Hsb4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t_EOks31zlm3-uZ5tLK4Mfxbwo5h_F6kDM7cRcuqgFd1IPXNSyR6sFmbikE5fk1h16Z1rMwXnRaiFc1NJ3UvdptSIT79LijoVYFMVdUtyjz7pHisE990mxAsUe0FTwARYMqFhxgVZDMNBySAYgR2ig5YgN3EDLYfACBG-wxQYPQI34AOQIEECOCIHkoC7cIMxh8Cg6GjEFuYEJTkOGd8Gx05hBt05zhvfB5gZprMpOq2HZaTksO5CjstNyWHaasgJQVtCoARML1KjsQI7KDuSo7EgOJl7QlBVg6AT9BFeQG2UXNGqEAsdOowbdOk0aAUgjDNLYlB2oUdmBHJUdyUHZgRw-9dOUFYCygkYNKjugLDo3gElUdoBJVHYgRxNPU1aCqZH0C3JBbpRd0qiR4IFO0qgBty5p0khAGmmQxqbsQI3KDuSo7EgOyg7kqOySpqwElJU0atBbPqAsOjeASfSeDzCJXvSBHE08TVmJjp1-ay7IzbLTqFHggU7RqCne-uj9r98BAAD__8OMEZ4= # EXCEPT ALL and EXCEPT with some overlap. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz WHERE x >= 1) EXCEPT ALL (SELECT y FROM xyz WHERE x < 3) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMll9r2zwUxu_fT2HO1TumEUu288dQyBgdK5S2tLkYbL5wY60JpLGRFWhW8t1Hkmad7VSPFRfju6bxTzrW-T05eqZlmsir-FHmFP4gTowEMfKIkU-MAooYZSqdyjxP1faRPXCRPFHoMpovs5Xe_jtiNE2VpPCZ9FwvJIU0ie8X8lbGiVQ9lxglUsfzxW6bTM0fY7UeP61_E6Ov84WWKnTG3Pm5cl1Pnjk8DMOLqwkxul7p0BkLijaM0pV-2e51l_u1M4vzWXH9MadoEzHKdfwgKeQbdlrZgU3ZU8d716rFm1W_rrNapiqRSiaFlaItiR458urf4nx2J_V11uOlhk3WmQyd8-9fzm8mzufLS2K0kL_0_2P-4UzNH2a7v_6-Ny-99-s7eTaduEuVlqrHg_Ixf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R__UfIj6nRYdEtSi7EF3BBXtCiraEBR04iDo4FRBvfqd9jokqEXZw-4I6rUrqNeGoKATB0GHpwrq1--03yFBLcoedUdQv11B_TYEBZ04CDp6jyvwkfVvZZ6ly1zWut262wOTyYPcNyBPV2oqb1Q63W2z_3i943ZXl0Tmev-t2H-4WO6_2hZYHx40gTlvRAeN6JGZ5hZnJuzgQRO4dGa2dNCIHplpUabdf2mvALtl2DPCvrlbvhEW3Lx10CQfZhjkwwyjfAAa5APQIB_9JvkwwyAfZhjlA9AgH4AG-RgYLR2aJR02yceoieFmGBhuhpHhgAaGAxpNAJuxWf0ltZmbtjQcAlaT0xoHmvPKFCmoyoVZdG4eI8B0XpkjNqoDGrgOaCQ7woHtCEe6V2aole5mGulupqHuAEe6AxzpXhmkRd37QPfKTLHSvTJTrHQ300h3Mw11BzjSHeBI98o8tdLdTCPdzTTUHeBId4Aj3StTtXjXds26i8psMeoebf77EwAA___5-4G4 query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz WHERE x >= 1) EXCEPT (SELECT y FROM xyz WHERE x < 3) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mFtv4kYcxd_7Kax5alVXeC7cLEWialM1UpRECQ8r7fLg4NlgiWBkGylslO--AhYIHvw_Htv4jduZOT7zPz_ZvLNFHOq74FWnzP_KOHOZYC6TzGWKuazLJi5bJvFUp2mcbH6yE9yEb8z3XBYtlqts8_HEZdM40cx_Z1mUzTXz2Th4nutHHYQ66XjMZaHOgmi-3WaZRK9Bsh69rX8wl_0XzTOd-M6IO99Wnif1lcN937-5GzOX3a8y3xkJNvlwWbzKjtulWfCimc8_3PKW_o3SLFpMs0731M-I59Y_Sp7XzixIZ2d-f_QgbDx8joVb5TJ1ZOlYZKVYeLO5qEITx3VWizgJdaLDk5W2qxTaFB6webTQvZQFlNTRQq-GBbeSy_-DdPaks_tlR-aSGq-X2neuv_xz_TB2_r69ZS6b6-_Z7yP-x1USvcy2rw7jVX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EdlR3JQdiCHd_00ZQWgrKBRg8oOKIvODWASlR1gEpUdyNHE05SVYGok_YCckxtllzRqJLihkzRqwKVLmjQSkEYapLEpO1CjsgM5KjuSg7IDOSq7pCkrAWUljRr0lA8oi84NYBI95wNMogd9IEcTT1NWomOnn5pzcrPsNGoUuKFTNGrylz75-O1nAAAA__-ffBGo # EXCEPT ALL and EXCEPT with swapped column orders. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x, y FROM xyz EXCEPT ALL SELECT y, x from xyz] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEll2L2kAUhu_7K-RctTBFZxLdNVCwlIUuLOuy9aJQcpE1pyq4TpiMsHbxvxdNF-tHz8n0QHIZk2fmnTMP-L7CyuZ4nz1jCckP0KDAgIIIFMSgoA-pgsLZKZaldbtPKuA2f4Gkp2CxKtZ-93OqYGodQvIKfuGXCAlMsqclPmKWo-v2QEGOPlss99sUbvGcuc3oZfMLFIzXPumMtBoZSLcK7Nr_WfSw1tOmM8_K-fEqb0iqoPTZDCHRW_V_-fp8PqNGWprP_DPfYan1yrocHeZHi6U7kvvkwiG_ZuX8G_px0dUndzDZFJh0br5_uXmYdD7f3YGCJf707_epP3xyi9n87YG6o8PhIsHhLiS_tx9t0dX90zFc3Ds-2lvXv3jdhpgB-QZtiKmbFVM3KqapP3zThhwB-a7akMM0K4dpVI6o_vCjNuQIyHfdhhxRs3JEjcoR1x9-3IYcAfmGbcgRNytH3FrfuZDrEcvCrkqs1WZ6u5NhPsNqUqVduyk-ODvdb1M9jvfc_r86x9JXb031cLuqXu0C1ocHEngogbUot-7TtA4YmQmDBxJ4KIG1KPfJyM5oc0r3_qYjet4RCevjmfVO6VgiOA0zgtMwIzgNc4IzNCN4XyI4DTOC0zAjOA1zgjM0I_hAIviVRFEaZhSlYUZRGuYUZWhG0WuJojTMKErDjKI0zCnK0IyiQ4miWtQTGJqRlKEZSxma05TDua4gKwuytiCrC8K-ICsMWtQY9FllCLKVpjlbaZqzlaZZWxmcszWkLJ3fWUhbCqU5W4P6UjDO2XpWHkhb0-273wEAAP__OWBG8A== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzEll2L2kAUhu_7K-RctTBFZxLdNVCwlIUuLOuy9aJQcpE1pyq4TpiMsHbxvxdNF-tHz8n0QHIZk2fmnTMP-L7CyuZ4nz1jCckP0KDAgIIIFMSgoA-pgsLZKZaldbtPKuA2f4Gkp2CxKtZ-93OqYGodQvIKfuGXCAlMsqclPmKWo-v2QEGOPlss99sUbvGcuc3oZfMLFIzXPumMtBoZSLcK7Nr_WfSw1tOmM8_K-fEqb0iqoPTZDCHRW_V_-fp8PqNGWprP_DPfYan1yrocHeZHi6U7kvvkwiG_ZuX8G_px0dUndzDZFJh0br5_uXmYdD7f3YGCJf707_epP3xyi9n87YG6o8PhIsHhLiS_tx9t0dX90zFc3Ds-2lvXv3jdhpgB-QZtiKmbFVM3KqapP3zThhwB-a7akMM0K4dpVI6o_vCjNuQIyHfdhhxRs3JEjcoR1x9-3IYcAfmGbcgRNytH3FrfuZDrEcvCrkqs1WZ6u5NhPsNqUqVduyk-ODvdb1M9jvfc_r86x9JXb031cLuqXu0C1ocHEngogbUot-7TtA4YmQmDBxJ4KIG1KPfJyM5oc0r3_qYjet4RCevjmfVO6VgiOA0zgtMwIzgNc4IzNCN4XyI4DTOC0zAjOA1zgjM0I_hAIviVRFEaZhSlYUZRGuYUZWhG0WuJojTMKErDjKI0zCnK0IyiQ4miWtQTGJqRlKEZSxma05TDua4gKwuytiCrC8K-ICsMWtQY9FllCLKVpjlbaZqzlaZZWxmcszWkLJ3fWUhbCqU5W4P6UjDO2XpWHkhb0-273wEAAP__OWBG8A== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x, y FROM xyz EXCEPT SELECT y, x from xyz] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEmF9r2zwUxu_fTxF09Q40kiM5f2GQsRVWKG3pejEYuXBjrQmksbEdaFb63UcSljR2fB4psrvLtP1Fx4_1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HMI_DpzCPQ1v5eqUBCL7Ur0628jS0lcehrQBHW5bHoa2llj0KXhE4PvEtW8BLtqpS1bjYqvimUeD0pvhzDAgO0MhWhANbAY5sBTg8NPMlq7og-FLLutgKaGQrwJGtCEdblseRrYo_wqoBwPmWLeBlW_lTLLp0vml0B7xrlZrGxVZAI1sRDmwFOLIV4MhWzZesViD4Uss6veXyNHzN5XH4ngtw9KLL48hWzR9lNYqOb9kCXrJV82fZ4qVPXv_7EwAA__8-uOSb # EXCEPT ALL and EXCEPT with different ORDER BY types. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) EXCEPT ALL (SELECT y AS x FROM xyz ORDER BY z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mFtr4lwUhu-_XyH76huaQddK1CoMOAyFKZS2tL0YGLxIzZ4qWBOSCHWK_33wANakWe9eHnJXD2_WzpM87459N7M4srfhq81M_7ch4xk2nvGNZwLjmbYZeiZJ45HNsjhdfWUTuI7eTL_lmcksmeert4eeGcWpNf13k0_yqTV98xQ-T-2DDSObNlvGM5HNw8l0PSZJJ69huhi8Lf4az9zN835jQN6AzXDpmXie7w6a5eGLNX1aeu6DH-M0t2mzvT9zwBfSrF38edEYh9m4kCYzXO7Ww5r1fARBDiTYG_iVJPwDSNA5UQSVC9odJ04jm9qovIrhKuzwrU_O7WeYjR9tfpc0ucD0aZHYfuPq14-r-6fG95sb45mp_ZP_P6Av39LJy3j91w5AJer2Aai5iJouKo_fOZgcVTC5jb_GSdPf51E1vrs3nhT38EllBoO3XDu1yawB4UBCIbMbCToniqByQbXJTHXI7Iaai6idZWb3m4hPahMYvD2xbm02KUCQAwmFTW4k6JwogsoF1WYT12GTG2ouona2yXe_ifyT2gQGb0_ssjabFCDIgYTCJjcSdE4UQeWCarPJr8MmN9RcRO1sU-B-EwUntQkM3p5YrzabFCDIgYTCJjcSdE4UQeWCarMpqMMmN9RcRH3Qz7ZPjv9gsySeZdbpF1lrBc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-EwUntQkM3p5YrzabFCDIgYTCJjcSdE4UQeWCarMpqMMmN9RcRH3Qz7ZPjv9gsySeZdbpF1lrBcxGL3ZzGbJ4no7sfRqP1mM2L-_WufUbkc3yzae0eXE923y0WuDHMBXD9DEc7IVJFyY6Kt09Js3-UemenGaRuC8T9xXEWRcuENemu8ekC8S16Z6cDkTibZl4Wwx35Gvdka810Ksrpi_l8OUxbsph5CZIAzflNHITpIGbPbkNW6AOS2WqsROkkZ4oDvwEcSQoigNDqVSp--AZgJc7FUhKpXbZHx6A4aV6Ue2CchpugyCO9kE5DjdCEAe2kdyt1AHgS-2q0k1OQ91AHOkmx6FuII50k3cWAlsLlUpWpZtcsgxKljUlW374UpWsOg50A3GkG4qjB0-5ZBmULJdKVqMbSCPdUBzoBuJINxQHurG8wTDYYFh-fgW6sVyyDEqWNSVbHq4qWXUc6aYqWXUc6SaXLIOSZc0DfPmWUz3Bq-NIN9UzvDqOdJM3GB9sML78L5GibsPlf_8CAAD__5eaYlc= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) EXCEPT (SELECT y AS x FROM xyz ORDER BY z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy82F9rG0cUBfD3fgozTy3ZIs2du_oHBZU20ECIQ-KHQtGDIk1tgaMVuyuIa_zdiyXBWjPSPbM7I73Fdo7u3bOzP9Z-VutiaT_Nv9tKTf5RWmWKVKaMyhSrTOVqlqlNWSxsVRXl63_ZBz4sf6hJP1Or9WZbv357lqlFUVo1eVb1qn60aqLu5t8e7Rc7X9qy11eZWtp6vnrcjdmUq-_z8mn64-k_lanbbT25mepsSmr2kqliWzcfWtXze6sm-iULH_y1KGtb9vLjmVN6FzaL2sz6c1XVq_Wi7mnnEqe6meaMatLfnm4e5tWDl5y9NOuYNuu87VznuHTKpuZsEdyhdHJrCG0979Q6uTc5VeuDs-s0n7NdF-XSlnZ59Em7Tzm7sPGPyblGhpdawe_s3AqjiBWyTlv-Na8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iTGx6J4bF8r8cyCn15by2bkiNUZFU0YEV7D9hx3IC494S1YQmkkUsgjmACcSQTiCOatMyLBr5o70k7jg9A3HvU2vgE0ggoEEdCgTgiCsSRUVp2Ro9BXJbGiXtOadka6oOXCPD-Aqgi8AaDXmFkawhYQ1HWgDR8B4qzBsThW1CcNSRbQ8Aakq0hYA1FWQPSyBoQR9aAOLIGxJE1JFtDwBqSrSFgDcnWGGCNibPGyNYYYI2RrTHAGhNlDUgja0AcWQPiyBoQh79yydYYYI2RrTHAGhNlDUgja0AcWQPiyBoQR9YY2RoDrDGyNQZYY2RrGFjDcdawbA0Da1i2hoE1HGUNSCNrQBxZA-LIGhBH1rBsDQNrWLaGgTUcZQ1II2tAHFkD4sgaEEfWsGwNA2tYtoaBNSxbkwNr8pbWzF5--j8AAP__7ZsKUA== # EXCEPT ALL and EXCEPT with different numbers of ORDER BY columns. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) EXCEPT ALL (SELECT x FROM xyz ORDER BY y, z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEmF1r6lgUhu_nV8i-mqEZdK1ErcKAw1CYQmlL24sDBy9Ss08VrJEkQj3F_37wA6zZx_Xu5Ue8qx9vVvIkz7u3_TSTNLH38bvNTfe7IRMYNoEJTWAiE5im6QdmmqUDm-dptvzKOnCbfJhuIzCjyXRWLN_uB2aQZtZ0P00xKsbWdM1L_Dq2TzZObFZvmMAktohH49WYaTZ6j7N572P-0wTmYVZ0az0Kemz6i8Cks2J70LyI36zp0iLwH_ycZoXN6s3dmT2-kmZt46_z2jDOh6U0mf5iez6sOZ-vIMiTRNAL98IID4BBLo2gF16BmToo0d7z2h4nzRKb2cS9Nf1lGH1rdcqrkeXL_D_Oh8-2eJjWuUT4ZT613drNt_9uHl9q_97dmcCM7Y_izx799U82ehuu_tpy2Eu9eQB1LlOnq73Hbx1Mj_YwuU__Tqf1cJfHvvHtnfGkeKJPqjYYvOHaqkx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jWuUT4ZT613drNt_9uHl9q_97dmcCM7Y_izx799U82ehuu_tpy2Eu9eQB1LlOnq73Hbx1Mj_YwuU__Tqf1cJfHvvHtnfGkeKJPqjYYvOHaqkxtDQhPEv5q-8Egl8aZ1aZLqU1VqO1HncvUvdVm_0eKT-oWGLy5sHZlbilAkCcJf7f8YJBL48xu8aXc4irc8qPOZereboX-j1R4UrfA4M2FXVfmlgIEeZLwd8sPBrk0zuxWeCm3wirc8qPOZerebkX-j1R0UrfA4M2FdSpzSwGCPEn4u-UHg1waZ3YrupRbURVu-VHnMvWDfu795vhPNp-mk9x6_ZJrLIHZ5M2ub0WezrKBfczSwWrM-uXDKrd6I7F5sf6U1i9uJ-uPlif4NUzlMH0NRzth0oWJjkq3j0lzeFS6I6dZJB7KxEMFcdaFS8S16fYx6RJxbbojpyOReFMm3hTDLflet-R7DfRqi-lrOXx9jJtyGLkJ0sBNOY3cBGngZkduwwaoQ6dMNXaCNNITxYGfII4ERXFgKDmVugueAXi5U4Gk5LTL7vAIDHfqRbUKymm4DII4WgflOFwIQRzYRnK3UguAd9pVpZuchrqBONJNjkPdQBzpJq8sBJYWckpWpZtcsgxKljUl626-VCWrjgPdQBzphuJo4ymXLIOSZadkNbqBNNINxYFuII50Q3GgG8sLDIMFhuX9K9CN5ZJlULKsKVl3uKpk1XGkm6pk1XGkm1yyDEqWNRt495FT7eDVcaSbag-vjiPd5AUmBAtMKP9LpKxbf_HHrwAAAP__2dVwZw== query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) EXCEPT (SELECT x FROM xyz ORDER BY y, z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy82F9rG0cUBfD3fgozTy3eIs2du_oHBZU20ECIQ-KHQtGDIk1tgaMVuyuIG_zdiyXBWjPSPbOa0b7Fdo7u3bOzP9b-odbF0n6cf7OVmvyjtMoUqUwZlSlWmcrVLFObsljYqirK1_-yD7xffleTfqZW6822fv32LFOLorRq8kPV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Fc8nhjy4n5RIMPlzZOAmXYFbDJXfCZYvO9Tg1l2G9k9tEFJeh_ZN7u6_DJaezyj8wYVwmXMHvLIzLditEc8ldcBl2uNmr7KK_nZ4Y8NlWm2Jd2aA_i_ZfG7PLB7u_A1WxLRf2U1ksdmP2X97tcrtvLG1V73-q91-8X-9_9Lrg27AWwySHyQ3rt-HBUVi3C-thTJqi0iYqzSBtxMZZbpzFcC6Hc3FvsLYc1qOYNEWlTVSaQXogNg7CwxZhcsMjMTyW7_VYRqEv761lU3KEiqyKBqxo7wE7jhsQ956wNiyBNHIJxBFMII5kAnFEk5Z50cAX7T1px_EBiHuPWhufQBoBBeJIKBBHRIE4MkrLzugxiMvSOHHPKS1bQ33wEgHeXwBVBN5g0CuMbA0BayjKGpCG70Bx1oA4fAuKs4ZkawhYQ7I1BKyhKGtAGlkD4sgaEEfWgDiyhmRrCFhDsjUErCHZGgOsMXHWGNkaA6wxsjUGWGOirAFpZA2II2tAHFkD4vBXLtkaA6wxsjUGWGOirAFpZA2II2tAHFkD4sgaI1tjgDVGtsYAa4xsDQNrOM4alq1hYA3L1jCwhqOsAWlkDYgja0AcWQPiyBqWrWFgDcvWMLCGo6wBaWQNiCNrQBxZA-LIGpatYWANy9YwsIZla3JgTd7SmtnLT_8HAAD__839FG4= # EXCEPT ALL and EXCEPT with compatible ORDER BY columns that are not in the final result. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz ORDER BY z) EXCEPT ALL (SELECT y FROM xyz ORDER BY z)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8l0tr204Uxff_T2Hu6l86xb5XkpMICi4l0EBIQpJFoXihWNPY4FhiJEPc4O9e_KB-z9F4bO380M_n6sw9OviDRlmq75I3XVD8i5gUCSkKSFFIiiLqKspN1tNFkZnZJQvgJn2nuKVoMMrH5ezjrqJeZjTFH1QOyqGmmJ6Tl6F-1EmqTbNFilJdJoPhXCY3g7fETDrvkz-k6H5cxo2OqE5A3amibFyufrQok1d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2bqTlfziMs860awrxPBEU7wOa0IDw60-p3MpNrodHeK7gyucNWee_uRFP0nXd7nTdny9HmS67hx_fP79cNz49vtLSka6t_l_x3-9NUMXvvzVysDDlodVbiz8Wjf1HsHvsu-ZHlToq0r92u3N7TZYcFOmjQgvNyvdm1JczHC14ngCCf4nFaEBweqLWlcR9Kk-iHLSbcdCC_P-KK2bXcwgn2dCI5wgs9pRXhwoNq2XerY9qD6IQcn3XYgvDzjy9q23cEI9nUiOMIJPqcV4cGBatv2oI5tD6sfcnjSbQfCyzO-qm3bHYxgXyeCI5zgc1oRHhyotm0P6_7PsGecR13k2ajQlf4RtGY3pNNXvbCpyMampx9M1pvLLN7ez7n5B6kuysW3vHhzM1p8NRtwHeZtmNfhcANmN5hbXnTkQ4uXtgBtsToe2B0PHBwXN3jLcVc68qHFS1uAdmh1HBxXZIWlbT-vtpW-sMMXPvGywyhegAae2WkUL0AD7Uur41d2x6984mWHUbwADVbcTqN4ARpos71D0KN452m62UACKmjncerUQXYalhDA0a3bcVhDAEfqOw_VTeNDYPzOU9UlK4BGYUE42lg7juKCcKRurxR0bPZKYdAp7FUqgIZ58asVgMO8-BUL25uFQbWwV7cAGubFr10ADvPi1y_i1S9i7xcB_SJe_QJolBeEo1v36xeEI3V7vwjoF_HqF0CjvCAcbaxfvyAcqbv1S3f6398AAAD___MLXyA= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz ORDER BY z) EXCEPT (SELECT y FROM xyz ORDER BY z)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy82F9rG0cUBfD3fgozTy3dIt07o79QUGkDDYQ4JH4oFD1stFNb4GjF7griBn_3Ykl0rZnonhntaN9iO0f37tndH2N_U5uysO_zL7ZW878VqUyxypRWmTIqUyO1zNS2Kle2rsvq5b8cAm-Lr2o-zNR6s901L99eZmpVVlbNv6lm3TxaNVd3-edH-9Hmha0GQ5Wpwjb5-nE_Zlutv-TV0-Lr078qU7e7Zn6z4Gyh1fI5U-Wu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9Do9PwhQXpk5pHnVJa9MlbbSc1mLjRm7ciOGRHB6Je0_kteUwdUozuNlyWoObLacNuNljsfGpHJ5EhNkNT8XwTJ48k5-yMVABmIJQkVUhwAp1cgWkESwgjmQBcUQLiCNbSMaFgC4k80LAF-oEDEgjYUAcEQPiyBgQR8iQrAwBZkh2hgA01EkakqnhIThDyNQwoIY9aqLOIHIaHkLkODyFyHF4DJHjyAr2qDktXoPiZWoYUMMeNTFWgDSyAsSRFSCOrABxZAV71JwWj65dpsaJe1awTA2wgmVpeAYeGpkaDajRHjUxVoA0sgLEkRUgjqwAcfg7i3yg0-BAp2VqNKBGe9TEWAHSyAoQR1aAOLICxJEVWj7QabS8TI0T96zQMjXACi1Lo6fgoZGp0YAa7VETZYWchlbIcWiFHIdWyHFkhZEPdAYc6IxMjQHUGPkXKPCygzSyAsSRFSCOrABxZIUBf5hC02VqnLhnhZGpca1YPv_wXwAAAP__ZZkF7g== # EXCEPT ALL and EXCEPT with a projection on the result. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM ((SELECT x, y FROM xyz) EXCEPT ALL (SELECT x, y FROM xyz))] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEltFq2zAUhu_3FOFcbaCRSHbSxjDIGIUVSlO6XAyGL9z4LAmkkZEUaFby7iP2ShYn07F2wL507E_6dfRB_lfY6Bzvs2e0kPwACQIUCIhAQAwChpAKKIyeo7XaHD6pgNv8BZKBgNWm2LrDz6mAuTYIySu4lVsjJDDLntb4iFmOpj8AATm6bLUutynM6jkzu8nL7hcImG5d0ptIMVGQ7gXorfuz6HGtp11vmdnl6SpvSCrAumyBkMi9-L98w3byqX_mOy613WiTo8H8ZLH0QFKfXDjk18wuv6GbFn1Zu4PZrsCkd_P9y83DrPf57g4ErPGne1-m_vDJrBbLt4fjDGoDOJ4sYpzsQux7_VEXfTmsz-Di3vHJ3rL5rcsurAzIN-rCStmulbI9K1XzyasuzAjId9WFGapdM1R7ZkTNJx91YUZAvusuzIj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TClK0ISiY46iktUTCJqQlKAJSwma0pTCqa7AKwu8tsCrC8y-wCsMktUY5FllCLLVT1O2-mnKVj9N2krglK0hZen8zkLaUihN2RrUl4Jxytaz8uC1Nd2_-x0AAP__MSFD2g== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM ((SELECT x, y FROM xyz) EXCEPT (SELECT x, y FROM xyz))] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEmF9r20gUxd_3U5j7tAta7Dsj_4WFLG2ggZCENA-F4gfFmsYGxzKSDHFDvnuxTa1Ysu7RaKT00Ul-nquj-R2N8kqrKDQ3wbNJaPKdmDxS5JEmj3zyqE9Tj9ZxNDNJEsW7PzkAV-ELTXoeLVbrTbr78dSjWRQbmrxSukiXhib0EDwuzb0JQhN3e-RRaNJgsdwvs44Xz0G8vXjZ_iSPbjfppHPB3oWi6ZtH0SbNvjRJgydDE37zqi_8eZGki9Us7fZPVz23REY9bjvzIJmfR7JJlM0k7yNg1wx0rQy4jRD80lGyr9qsojg0sQlPvmz_LaXDqh4eNpui39YUFSLLphg4TOHVGvRLkMy_mvR23dW5vB62azPpXH77dHn30Pn_-po8Wpof6d_7K_jnv3jxNP_9IdtzpVc2bDbfm-jfaN3V_XwGZ9cenazNFpo12jRg4eOWGbTeNDYRuGaga2XAbYTgl47i6DjXb5oGp6gQWVnT2E3h3DT8cU2jqm911ajtYOHjbRu2brtFBOyaga6VAbcRgl86iqNnqr7tDU5RIbIy2-2mcLZdfZztuvpW143aDhY-3rZR67ZbRMCuGehaGXAbIfilozh6puvb3uAUFSIrs91uCmfb9cfZ7lff6n6jtoOFj7dt3LrtFhGwawa6VgbcRgh-6SiOnvn1bW9wigqRldluN4Wz7f6f-Z_BmaHuTbKOVomp9B-B3u6yTPhkDjEl0Saembs4mu2XOXy83XP7H4QmSQ-_5cOHq9XhV7sB38Och_k97J_AbAezcqLHLrQauNBay7QSE9dy4lpcui-vLMMM5pZp1XOihy60BjvNFxMHN7tvAas8PBBhcN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Onvn1bW9wigqRldluN4Wz7f6f-Z_BmaHuTbKOVomp9B-B3u6yTPhkDjEl0Saembs4mu2XOXy83XP7H4QmSQ-_5cOHq9XhV7sB38Och_k97J_AbAezcqLHLrQauNBay7QSE9dy4lpcui-vLMMM5pZp1XOihy60BjvNFxMHN7tvAas8PBBhcNFDeaMM5J0yEumxDI9dxJZhJDaggdgyjcSWaSQ2gy5FZSrXCnAb0EhugCO7EQ52OsCR3yxXKiO80C4SXnCc5XpBly73CwPLudAwVo9gmYbPYICjh7CMw6ewjENb5XrlEQi-0K9Wtso0tFXGoa0AR1tWxqGthZY9CV4xOD7JLZvDC7aqQtXY2KrkplHg9KbkcwwIDtDIVoQDWwGObAU4PDTLJav6IPhCy9rYCmhkK8CRrQhHW1bGka1KPsKqEcDlls3hRVvlUyy6dLlpdA-8axWaxsZWQCNbEQ5sBTiyFeDIVi2XrFYg-ELLWr3lyjR8zZVx-J4LcPSiK-PIVi0fZTWKTm7ZHF6wVctn2fylT9_--hUAAP__5OXhhQ== diff --git a/pkg/sql/opt/exec/execbuilder/testdata/distsql_agg b/pkg/sql/opt/exec/execbuilder/testdata/distsql_agg index c897d4da8098..08d7d4606a6b 100644 --- a/pkg/sql/opt/exec/execbuilder/testdata/distsql_agg +++ b/pkg/sql/opt/exec/execbuilder/testdata/distsql_agg @@ -31,188 +31,188 @@ NULL /1 {1} 1 query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslE1vozAQhu_7K1bvaVeyFAzki1P2mMM2VdqeKg4uHiGkBCPbSK0i_nsFHAJRYqjgaJt3nnmMNRfkStKTOJNB9A4OBh8MARhCMCwRMxRaJWSM0vUnbWAvPxF5DFlelLbejhkSpQnRBTazJ0KEV_FxoiMJSXrhgUGSFdmpwRQ6Owv9tZPCCjAcShv93nHEFYMq7bWksSIlRLxi47H_0lRTKqzSi2Wf-vL2_8-O_32I8R9irtXLXGlJmmSvdFy5G-HezzoJep3w8ffMZ7znAWxHbzXlnv3xdv6MdgPYjt16il0w3i6Y0W4A27HbTLELx9uFM9oNYDt227kmwB3MkUyhckM3k-B-Za-eECRTaseJUaVO6FmrpMG0y0OTazYkGdue8naxz9ujusFumDvDfi_Mb8O-mzyADpzp0B0Op_S9dIZXbvJqCnntDG_c5M0U8tb9r7yBZ-J-ZLfsuPr1HQAA__-dVqdr +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslE1vozAQhu_7K1bvaVeyFAzki1P2mMM2VdqeKg4uHiGkBCPbSK0i_nsFHAJRYqjgaJt3nnmMNRfkStKTOJNB9A4OBh8MARhCMCwRMxRaJWSM0vUnbWAvPxF5DFlelLbejhkSpQnRBTazJ0KEV_FxoiMJSXrhgUGSFdmpwRQ6Owv9tZPCCjAcShv93nHEFYMq7bWksSIlRLxi47H_0lRTKqzSi2Wf-vL2_8-O_32I8R9irtXLXGlJmmSvdFy5G-HezzoJep3w8ffMZ7znAWxHbzXlnv3xdv6MdgPYjt16il0w3i6Y0W4A27HbTLELx9uFM9oNYDt227kmwB3MkUyhckM3k-B-Za-eECRTaseJUaVO6FmrpMG0y0OTazYkGdue8naxz9ujusFumDvDfi_Mb8O-mzyADpzp0B0Op_S9dIZXbvJqCnntDG_c5M0U8tb9r7yBZ-J-ZLfsuPr1HQAA__-dVqdr query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum((a-1)*1000 + (b-1)*100 + (c::INT-1)*10 + (d-1)) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUlMGOmzAQhu99impObOtqbSDZrE-s2h6QummVpqeKg4tHCCnByDZSq4h3r4BIgSgxVPTCzXj455_5xpoTFEriVhzRAP8JDAj4QCAAAiEQWEFCoNQqRWOUbn7pBLH8DZwSyIuyss11QiBVGoGfwOb2gMBhL34dcIdCon6kQECiFfmhtSl1fhT6TySFFUBgh4VEzd96nudF7APjnMfb_cM7Rik9n997XuQPIudjGwnacz98iUZhe__p88f49eXLAyQ1AVXZS93GigyBs5pM7-0lyzRmwir9uBq29v3Hqxex-zb-XZtL9qpQWqJGOUid1O5CGP23SoJBJWz6MNnShjnSW4_hes4w_ekI_aUhHOmth_BpDsJgOsJgaQhHeush3MxBGE5HGC4N4UhvPYTP_2sr37DZoSlVYfBqO9_OTJutjTLDbsUbVekUv2mVtjbd59dW115INLaLsu4jLrpQU2BfzJxifyBm12Lf7TxiHTjVoVsczql75RSv3c7rOc5PTvHG7byZ4_zsnhUdeSbuR3btndRv_gYAAP__6cMa6A== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUlMGOmzAQhu99impObOtqbSDZrE-s2h6QummVpqeKg4tHCCnByDZSq4h3r4BIgSgxVPTCzXj455_5xpoTFEriVhzRAP8JDAj4QCAAAiEQWEFCoNQqRWOUbn7pBLH8DZwSyIuyss11QiBVGoGfwOb2gMBhL34dcIdCon6kQECiFfmhtSl1fhT6TySFFUBgh4VEzd96nudF7APjnMfb_cM7Rik9n997XuQPIudjGwnacz98iUZhe__p88f49eXLAyQ1AVXZS93GigyBs5pM7-0lyzRmwir9uBq29v3Hqxex-zb-XZtL9qpQWqJGOUid1O5CGP23SoJBJWz6MNnShjnSW4_hes4w_ekI_aUhHOmth_BpDsJgOsJgaQhHeush3MxBGE5HGC4N4UhvPYTP_2sr37DZoSlVYfBqO9_OTJutjTLDbsUbVekUv2mVtjbd59dW115INLaLsu4jLrpQU2BfzJxifyBm12Lf7TxiHTjVoVsczql75RSv3c7rOc5PTvHG7byZ4_zsnhUdeSbuR3btndRv_gYAAP__6cMa6A== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), count(a), max(a) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lEtr6zAQhff3V1xmdS8IYtnOy6uErrJIUvKAQjFFtQZjSCwjydAS_N-L7dLYIZYNUXd6HX3nMMNcIBUcN-yMCoJXoEDABQIeEPCBwBhCApkUESolZPmkFqz4BwQOgSTNcl0ehwQiIRGCC-hEnxACOLD3E-6QcZQjBwhw1Cw5VZhMJmcmPxecaQYEtrkO_i4ohAUBkevrl0qzGCGgBRmOXcaxxJhpIUfjNnV_XP9b0P9A4Gl73By-1-vlS7Xqgrud8CszT4XkKJG3gGFhtkedLn_74_ptVTp0fxx63Q69lkM6vCrUYlV6sI3YE_tVcYdndi1m7sE2Mk_tZ_aGZ_YsZu7BNjLP7Gf2h2f2LWbuwTYyz3934tyB71BlIlV4M3nu_-yUEwl5jPX4UiKXET5LEVWYerutdNUBR6XrW1pvVml9VRpsiqlR7LbE9Fbsmsk9aM-o9s1i_xHfY6N4YiZPHiFPjeKZmTx7hDw318rpaRNzk92yw-LPVwAAAP__oyXFFg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lEtr6zAQhff3V1xmdS8IYtnOy6uErrJIUvKAQjFFtQZjSCwjydAS_N-L7dLYIZYNUXd6HX3nMMNcIBUcN-yMCoJXoEDABQIeEPCBwBhCApkUESolZPmkFqz4BwQOgSTNcl0ehwQiIRGCC-hEnxACOLD3E-6QcZQjBwhw1Cw5VZhMJmcmPxecaQYEtrkO_i4ohAUBkevrl0qzGCGgBRmOXcaxxJhpIUfjNnV_XP9b0P9A4Gl73By-1-vlS7Xqgrud8CszT4XkKJG3gGFhtkedLn_74_ptVTp0fxx63Q69lkM6vCrUYlV6sI3YE_tVcYdndi1m7sE2Mk_tZ_aGZ_YsZu7BNjLP7Gf2h2f2LWbuwTYyz3934tyB71BlIlV4M3nu_-yUEwl5jPX4UiKXET5LEVWYerutdNUBR6XrW1pvVml9VRpsiqlR7LbE9Fbsmsk9aM-o9s1i_xHfY6N4YiZPHiFPjeKZmTx7hDw318rpaRNzk92yw-LPVwAAAP__oyXFFg== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a+b), count(a+b), max(a+b) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lNuLozAUxt_3r1jO0y4bqIn25pNln_rQdukFFhZZMuYgQmskiTBD8X8f1GGqpUahzltuX37fxzmcK6RS4JZfUIP_DygQYEDABQIeEJhCSCBTMkKtpSqf1IK1eAXfIZCkWW7K45BAJBWCfwWTmDOCD0f-csY9coFq4gABgYYn5wqTqeTC1VsguOFAYI-pQOV_D-ivgEFYEJC5uX2sDY8RfFqQ4fBVHCuMuZFqMm2zD6fNj4D-BAK_d6ft8WO9Wf2tVl1w1gm_MfNUKoEKRQsYFnZ71Onydzht_q9Lh-zTodvt0G05pMNrQ0evTQ-8EX42fm3Y8ORs9OQ98Eby-fjJ3eHJ3dGT98AbyRfjJ_eGJ_dGT94DbyRffu0kegDfo85kqvFuIj3-2SknFYoY67GmZa4i_KNkVGHq7a7SVQcCtalvab1Zp_VVabApplYxa4npvZjZyT1o16r27GLvGd9Tq3hmJ8-eIc-t4oWdvHiGvLTXyulpE3uT3bPD4tt7AAAA__8XCc3v +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lNuLozAUxt_3r1jO0y4bqIn25pNln_rQdukFFhZZMuYgQmskiTBD8X8f1GGqpUahzltuX37fxzmcK6RS4JZfUIP_DygQYEDABQIeEJhCSCBTMkKtpSqf1IK1eAXfIZCkWW7K45BAJBWCfwWTmDOCD0f-csY9coFq4gABgYYn5wqTqeTC1VsguOFAYI-pQOV_D-ivgEFYEJC5uX2sDY8RfFqQ4fBVHCuMuZFqMm2zD6fNj4D-BAK_d6ft8WO9Wf2tVl1w1gm_MfNUKoEKRQsYFnZ71Onydzht_q9Lh-zTodvt0G05pMNrQ0evTQ-8EX42fm3Y8ORs9OQ98Eby-fjJ3eHJ3dGT98AbyRfjJ_eGJ_dGT94DbyRffu0kegDfo85kqvFuIj3-2SknFYoY67GmZa4i_KNkVGHq7a7SVQcCtalvab1Zp_VVabApplYxa4npvZjZyT1o16r27GLvGd9Tq3hmJ8-eIc-t4oWdvHiGvLTXyulpE3uT3bPD4tt7AAAA__8XCc3v query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum((a-1)*1000) + sum((b-1)*100) + sum((c::INT-1)*10) + sum(d-1) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUVc1qGzEQvvcpwpzWtUpWP3YcnRTaHgxNWtz0VPagWsNicFZGkqEl-N2LVzTeNbF2qXFgb7Mz_vz9aGCeobIGH_QTepA_gQIBBgQ4EBBAYAIFgY2zS_Teuv1PImBufoPMCayqzTbs2wWBpXUI8hnCKqwRJDzqX2tcoDbornMgYDDo1bqm2bjVk3Z_lNFBA4EFVgadvMoU_UCllPOHx9F7mud5rMlVplhrcOjzumoO_82UqLufPn-c3999gWJHwG7DQa4PukSQdEf6W7orS4elDtZdT9qOvv-4zxQdAYkVe6n4SyVGJ0WwkyIO3NvKOoMOTYu42KVl0vx_dB6eRIlxpvg4U3Ss2Oi0A95yQPtvBh3IZnRYakQ-vdxmsP65soHk2mGpkevN5XLl_XPlA8m1w1Ij19nlchX9cxUDybXDUiPX27e5EK-IWKDf2Mrj0aV4_Z_z_QVBU2I8N95u3RK_ObusaeLn1xpXNwz6EKc0fsyrONoLbIJpEsxaYHoMZmnmDmqeRIs0WJyje5IET9PM03OYb5LgWZp5dg7zbfqt8o41SS_ZMXexe_c3AAD__2E0QFI= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUVc1qGzEQvvcpwpzWtUpWP3YcnRTaHgxNWtz0VPagWsNicFZGkqEl-N2LVzTeNbF2qXFgb7Mz_vz9aGCeobIGH_QTepA_gQIBBgQ4EBBAYAIFgY2zS_Teuv1PImBufoPMCayqzTbs2wWBpXUI8hnCKqwRJDzqX2tcoDbornMgYDDo1bqm2bjVk3Z_lNFBA4EFVgadvMoU_UCllPOHx9F7mud5rMlVplhrcOjzumoO_82UqLufPn-c3999gWJHwG7DQa4PukSQdEf6W7orS4elDtZdT9qOvv-4zxQdAYkVe6n4SyVGJ0WwkyIO3NvKOoMOTYu42KVl0vx_dB6eRIlxpvg4U3Ss2Oi0A95yQPtvBh3IZnRYakQ-vdxmsP65soHk2mGpkevN5XLl_XPlA8m1w1Ij19nlchX9cxUDybXDUiPX27e5EK-IWKDf2Mrj0aV4_Z_z_QVBU2I8N95u3RK_ObusaeLn1xpXNwz6EKc0fsyrONoLbIJpEsxaYHoMZmnmDmqeRIs0WJyje5IET9PM03OYb5LgWZp5dg7zbfqt8o41SS_ZMXexe_c3AAD__2E0QFI= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), min(b), max(c), count(d) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lMuLqzAUxvf3zzgrC4EatS9Xlrty0fbSB1wYZMiYgwitkSTCDMX_fVAX1dJGB-ns8vry-z7O4VwhExy37IIK_DegQMABAi4Q8IDADCICuRQxKiVk9aQRhPwTfJtAmuWFro4jArGQCP4VdKrPCD4c2ccZ98g4yqkNBDhqlp5rTC7TC5NfAWeaQVQSEIW-faQ0SxB8WpLhsHWSSEyYFnI667IOp40V0AkQ2IRbK3Dq1fq_FbjV6u_utD1agTd5asN5auNGLzIhOUrkHXRUmo1S-ydOD6fNe9jj1e14pcPrQ0fXpwfWij1_ZX2c4Zmd0Zl7YK3Mi1dmdodndkdn7oG1Mi9fmdkbntkbnbkH1sq8-q3Z88DGHlUuMoV3M-jxz3Y1m5An2AwyJQoZ4z8p4hrTbHe1rj7gqHRzS5tNmDVXlcG2mBrFTkdM78WOmdyDdo1qzyz2xvieGcVzM3k-hrwwipdm8nIMeWWuld3TJuYmu2dH5Z_vAAAA___YNMV8 +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lMuLqzAUxvf3zzgrC4EatS9Xlrty0fbSB1wYZMiYgwitkSTCDMX_fVAX1dJGB-ns8vry-z7O4VwhExy37IIK_DegQMABAi4Q8IDADCICuRQxKiVk9aQRhPwTfJtAmuWFro4jArGQCP4VdKrPCD4c2ccZ98g4yqkNBDhqlp5rTC7TC5NfAWeaQVQSEIW-faQ0SxB8WpLhsHWSSEyYFnI667IOp40V0AkQ2IRbK3Dq1fq_FbjV6u_utD1agTd5asN5auNGLzIhOUrkHXRUmo1S-ydOD6fNe9jj1e14pcPrQ0fXpwfWij1_ZX2c4Zmd0Zl7YK3Mi1dmdodndkdn7oG1Mi9fmdkbntkbnbkH1sq8-q3Z88DGHlUuMoV3M-jxz3Y1m5An2AwyJQoZ4z8p4hrTbHe1rj7gqHRzS5tNmDVXlcG2mBrFTkdM78WOmdyDdo1qzyz2xvieGcVzM3k-hrwwipdm8nIMeWWuld3TJuYmu2dH5Z_vAAAA___YNMV8 # AVG is more tricky: we do two aggregations (for the sum and for the count) # and calculate the average at the end. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT avg(a+b+c::INT+d) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lEGLozAUx-_7KZZ3qjRQE22nk5PLnjxMZ-m0p0WWrHmI0DGSRNhl8LsP6mG01Ci03qr27-_394X3AYWSeBDvaID_BgoEGBAIgEAIBLaQECi1StEYpZu_dIFY_gPuE8iLsrLN7YRAqjQC_wCb2wsCh5P4e8EjCol64wMBiVbklxZT6vxd6P-RFFYAgSMWEjX_HoXr1Sqi64h56yjgPD6cPEhqAqqyXxxjRYbAaU3mu_zIMo2ZsEpvtkOVt_PLKqIeEPj5ej6c2t9jSDaK_CJVhdISNcoBJqndUtQfs3o7v_yJGy_m9b8U3URs1DMYeNL5Y6JLj2nCpfdFdo8aE5tfny1df8KlV__pUfWD-fWDpetPuPTq7x9VP5xfP1y6_oRLr_7zEjvqBvKIplSFwatddfvNfrPDUGbYLTyjKp3iL63SFtNdvra59oZEY7untLuIi-5RI9gPU2eYDcL0Oszc5Al04EyH7nB4j_fWGd65ybt7yE_O8N5N3t9DfnbPyp84Ju5Dds1O6m-fAQAA___oV9XP +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lEGLozAUx-_7KZZ3qjRQE22nk5PLnjxMZ-m0p0WWrHmI0DGSRNhl8LsP6mG01Ci03qr27-_394X3AYWSeBDvaID_BgoEGBAIgEAIBLaQECi1StEYpZu_dIFY_gPuE8iLsrLN7YRAqjQC_wCb2wsCh5P4e8EjCol64wMBiVbklxZT6vxd6P-RFFYAgSMWEjX_HoXr1Sqi64h56yjgPD6cPEhqAqqyXxxjRYbAaU3mu_zIMo2ZsEpvtkOVt_PLKqIeEPj5ej6c2t9jSDaK_CJVhdISNcoBJqndUtQfs3o7v_yJGy_m9b8U3URs1DMYeNL5Y6JLj2nCpfdFdo8aE5tfny1df8KlV__pUfWD-fWDpetPuPTq7x9VP5xfP1y6_oRLr_7zEjvqBvKIplSFwatddfvNfrPDUGbYLTyjKp3iL63SFtNdvra59oZEY7untLuIi-5RI9gPU2eYDcL0Oszc5Al04EyH7nB4j_fWGd65ybt7yE_O8N5N3t9DfnbPyp84Ju5Dds1O6m-fAQAA___oV9XP # VARIANCE/STDDEV have three local (sqrdiff, sum, and count) and one final stage aggregations. # We calculate and render the variance/stddev at the end. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), round(stddev(b), 1) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lEGL2zAQhe_9FcucUhCsJTvZrE5amgYMbdIm2V6KKWo0mEDWCpIMLUv-e7F8WDusZUOc3iyNn76nN2JeodAKV_IFLfCfQIEAAwIxEEiAwBQyAiej92itNtUvtSBVf4BHBA7FqXTVdkZgrw0CfwV3cEcEDjv5-4gblArNfQQEFDp5OHrMyRxepPkrlHQSCKxLx-8EJYJBdiagS_d2qnUyR-D0TIaTn_LcYC6dNvfTNnj7_HUi6EcgsP2-WaTL5UQwv6r2_den9fNq57-7rLBOK28OykIbhQZVC5-dw2Zp1OV2ma6evvza7haLzz8mghERE5FUhQ0WCo1P787oslBVlXLO09Wu-wpx6wp0eB_puH3sITeimd26j2x4CGzcEHrIjRAebh1CPDyEeNwQesiNEOa3DiEZHkIybgg95EYIj_9zrL1jZYP2pAuLF-Pt_ZOjauyhyrGekVaXZo_fjN57TL1ce53fUGhdXaX1Ii3qUmWwKaZBMWuJ6aWYhck96DioTsLi5Brf06B4FibPriE_BMXzMHl-Dfkx3Kuo55mEH9klOzt_-BcAAP__ZTPiDA== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lEGL2zAQhe_9FcucUhCsJTvZrE5amgYMbdIm2V6KKWo0mEDWCpIMLUv-e7F8WDusZUOc3iyNn76nN2JeodAKV_IFLfCfQIEAAwIxEEiAwBQyAiej92itNtUvtSBVf4BHBA7FqXTVdkZgrw0CfwV3cEcEDjv5-4gblArNfQQEFDp5OHrMyRxepPkrlHQSCKxLx-8EJYJBdiagS_d2qnUyR-D0TIaTn_LcYC6dNvfTNnj7_HUi6EcgsP2-WaTL5UQwv6r2_den9fNq57-7rLBOK28OykIbhQZVC5-dw2Zp1OV2ma6evvza7haLzz8mghERE5FUhQ0WCo1P787oslBVlXLO09Wu-wpx6wp0eB_puH3sITeimd26j2x4CGzcEHrIjRAebh1CPDyEeNwQesiNEOa3DiEZHkIybgg95EYIj_9zrL1jZYP2pAuLF-Pt_ZOjauyhyrGekVaXZo_fjN57TL1ce53fUGhdXaX1Ii3qUmWwKaZBMWuJ6aWYhck96DioTsLi5Brf06B4FibPriE_BMXzMHl-Dfkx3Kuo55mEH9klOzt_-BcAAP__ZTPiDA== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), round(variance(b), 1) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lEGL2zAQhe_9FcucUhCsJTvZrE4K2wYMrdN6s70UU9RoMIGsFSQZWpb892L5sE5IZEOc3iyNn76nN2LeoNIKM_mKFvhPoECAAYEYCCRAYAoFgb3RG7RWm-aXVpCqP8AjAttqX7tmuyCw0QaBv4Hbuh0Ch7X8vcMcpUJzHwEBhU5udx6zN9tXaf4KJZ0EAqva8TtBiWBQHAjo2r2fap0sETg9kOHkRVkaLKXT5n56DH5--ToR9CMQeP6ef0qXy4lgftXs-6-n1Uu29t-XrLCLVt4d1JU2Cg2qI3xxCJul0SW3yzRbfPn1Y5Gni-zp80QwImIikqaUY6XQ-PzujK4r1VQp5zzN1pcvER9dgg7vJB23kz3kTjizW3eSDQ-BjRtCD7kTwsOtQ4iHhxCPG0IPuRPC_NYhJMNDSMYNoYfcCeHxfw62M1ZytHtdWTwZcOdPjprBh6rEdkpaXZsNfjN64zHtcuV1fkOhdW2Vtou0akuNwa6YBsXsSExPxSxM7kHHQXUSFifX-J4GxbMweXYN-SEonofJ82vIj-FeRT3PJPzITtnF4cO_AAAA__8b0-KL +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lEGL2zAQhe_9FcucUhCsJTvZrE4K2wYMrdN6s70UU9RoMIGsFSQZWpb892L5sE5IZEOc3iyNn76nN2LeoNIKM_mKFvhPoECAAYEYCCRAYAoFgb3RG7RWm-aXVpCqP8AjAttqX7tmuyCw0QaBv4Hbuh0Ch7X8vcMcpUJzHwEBhU5udx6zN9tXaf4KJZ0EAqva8TtBiWBQHAjo2r2fap0sETg9kOHkRVkaLKXT5n56DH5--ToR9CMQeP6ef0qXy4lgftXs-6-n1Uu29t-XrLCLVt4d1JU2Cg2qI3xxCJul0SW3yzRbfPn1Y5Gni-zp80QwImIikqaUY6XQ-PzujK4r1VQp5zzN1pcvER9dgg7vJB23kz3kTjizW3eSDQ-BjRtCD7kTwsOtQ4iHhxCPG0IPuRPC_NYhJMNDSMYNoYfcCeHxfw62M1ZytHtdWTwZcOdPjprBh6rEdkpaXZsNfjN64zHtcuV1fkOhdW2Vtou0akuNwa6YBsXsSExPxSxM7kHHQXUSFifX-J4GxbMweXYN-SEonofJ82vIj-FeRT3PJPzITtnF4cO_AAAA__8b0-KL query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT stddev(a+b+c::INT+d) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lNFq2zAUhu_3FONcJUTQSHbSVFcqywKGLd2SdDfDDC06mEBqBUmGjeJ3H7YHtU0jG4LubCt__o_viPMKuVa4lS9ogf8ECgQYEIiAQAwEFpASuBh9RGu1qX7SBBL1B_icwCm_FK76nBI4aoPAX8Gd3BmBw0H-PuMOpUJzNwcCCp08neuaizm9SPNXKOkkENhhrtDwjyKeTSaCzgSbzkTEebI9TCEtCejCvfVYJzMETksynuUxywxm0mlzt-ii7L_v1slmMxF0CgT2z1__P316et4e6udrAOwqwFtvkWuj0KDqlKalH5H2dG2S7eOXX_vDev35x0RQIhgR0XWwqANGx0-Jhp7SAEtLwTLMlNh4GSy0jAGWloz7MDKi8TKi0DIGWFoyVmFkxONlxKFlDLC0ZDyEX2bvAOzQXnRusbfU3v_nebXsUGXYbEarC3PEb0Yf65rm9anO1R8UWtec0uYlyZujCrAdpt4w64RpP8z8zQPVkTcd-8PxLdwLb3jpb17e0nzvDa_8zatbmh_8s5oPXBP_Jet3p-WHfwEAAP__sSDiQQ== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lNFq2zAUhu_3FONcJUTQSHbSVFcqywKGLd2SdDfDDC06mEBqBUmGjeJ3H7YHtU0jG4LubCt__o_viPMKuVa4lS9ogf8ECgQYEIiAQAwEFpASuBh9RGu1qX7SBBL1B_icwCm_FK76nBI4aoPAX8Gd3BmBw0H-PuMOpUJzNwcCCp08neuaizm9SPNXKOkkENhhrtDwjyKeTSaCzgSbzkTEebI9TCEtCejCvfVYJzMETksynuUxywxm0mlzt-ii7L_v1slmMxF0CgT2z1__P316et4e6udrAOwqwFtvkWuj0KDqlKalH5H2dG2S7eOXX_vDev35x0RQIhgR0XWwqANGx0-Jhp7SAEtLwTLMlNh4GSy0jAGWloz7MDKi8TKi0DIGWFoyVmFkxONlxKFlDLC0ZDyEX2bvAOzQXnRusbfU3v_nebXsUGXYbEarC3PEb0Yf65rm9anO1R8UWtec0uYlyZujCrAdpt4w64RpP8z8zQPVkTcd-8PxLdwLb3jpb17e0nzvDa_8zatbmh_8s5oPXBP_Jet3p-WHfwEAAP__sSDiQQ== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT variance(a+b+c::INT+d) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lNFq2zAUhu_3FONcJUTQSHb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7zhpb95eUvzvTe88jevbml-8M9qPnBN_Jes352fP_wLAAD__2fo4sA= # Test various combinations of aggregation functions and verify that the # aggregation processors are set up correctly. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), avg(b), sum(c), avg(d), stddev(a), variance(b), sum(a+b+c::INT+d) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUVV2L4jwUvn9_RTlXigds0vrVqyPjCIV3nV115maRoWsOIjiNpBV2GfzvS1tXq4xpQRC8O8nJk-cjB_IJsVY8iT44geAnCECQgOABgg8IHVggbI1ecpJokx0pAKH6DYGLsI63uzTbXiAstWEIPiFdpxuGAObRrw1POVJs2i4gKE6j9San2Zr1R2T-kIrSCBCmHCs2gUN-q9Eg0SLZbJEXBOFk3kSHBDok0SEPHfJhsUfQu_TEm6TRiiEQe6yvbbhaGV5FqTbtzrm02eu3BskmYFF5WfX08jqZH-p81z9WnVI_r2c_pqNwPD7ccejIs87pHtG8akdetXNysYu1UWxYnVlY7O2GhfuFY3HU9M_7e2j1fDzRzVbjcDL8_302H42e3xrUQxJI_VPjbTgNh5On5wYNkCSWE3Cb5QHIn7pdvDQ61GlTFx3qoUN9dGhwNS3vLC1RfzDFvQezQlvpnbqPMJiyftTy3lFXaCtF3XuEqL36UXv3jrpCWynq_iNE7deP2r931BXaSlEPHiHqio96yslWxwlf_HBf3-xmPx-rFRffZKJ3ZsnfjV7mNMXyJcflG4qTtOiKYhHGRSsTWAYLK1iegcUlWNqZK6g9K9q3g_1bdHes4K6duXsLc88K7tuZ-7cwD-xv5VaMiX3ILrkX-__-BgAA___5S2oZ +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUVV2L4jwUvn9_RTlXigds0vrVqyPjCIV3nV115maRoWsOIjiNpBV2GfzvS1tXq4xpQRC8O8nJk-cjB_IJsVY8iT44geAnCECQgOABgg8IHVggbI1ecpJokx0pAKH6DYGLsI63uzTbXiAstWEIPiFdpxuGAObRrw1POVJs2i4gKE6j9San2Zr1R2T-kIrSCBCmHCs2gUN-q9Eg0SLZbJEXBOFk3kSHBDok0SEPHfJhsUfQu_TEm6TRiiEQe6yvbbhaGV5FqTbtzrm02eu3BskmYFF5WfX08jqZH-p81z9WnVI_r2c_pqNwPD7ccejIs87pHtG8akdetXNysYu1UWxYnVlY7O2GhfuFY3HU9M_7e2j1fDzRzVbjcDL8_302H42e3xrUQxJI_VPjbTgNh5On5wYNkCSWE3Cb5QHIn7pdvDQ61GlTFx3qoUN9dGhwNS3vLC1RfzDFvQezQlvpnbqPMJiyftTy3lFXaCtF3XuEqL36UXv3jrpCWynq_iNE7deP2r931BXaSlEPHiHqio96yslWxwlf_HBf3-xmPx-rFRffZKJ3ZsnfjV7mNMXyJcflG4qTtOiKYhHGRSsTWAYLK1iegcUlWNqZK6g9K9q3g_1bdHes4K6duXsLc88K7tuZ-7cwD-xv5VaMiX3ILrkX-__-BgAA___5S2oZ query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), min(b), max(c), count(d), avg(a+b+c::INT+d), stddev(a+b), variance(c::INT+d) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUVl2L2kAUfe-vCPcp4gUzk8SPPI2sKwS62VbdpVBkSc1FBDeRSYSWxf9eZtLGRNaJ4Iu-Tc7c4zn3ngvjB6RZQlH8TjkEP4EBAgcEFxA8QPBhibCT2YryPJOqpCSEyW8IHIRNutsXCl4irDJJEHxAsSm2BAEs4l9bmlGckOw5gJBQEW-2WmYnN--x_COSuIgBYUZpQjKwhNe1bcG6gne6wg2CMFp00NIAqst_mILQ0pircFgeELJ9cbSSF_GaIGAHvNzueL2WtI6LTPb8ptv5y5MtvA4gPIWRLXx9Gv-wRV-dHp5fooUtBuqsK1kN1ef599kknE5twasaXqvhjRq3qnFrNW7nbJP8bJPH3vZpJhOSlDQaWx7MY2DOJ3Ng1Rx4NYf_nt9C5dWrOvAbuJ7WNIzGX9_mi8nk8dUWAxRDFKPjxet4Fo6jh0dbMAcFYyiYlqk2pBE8WsLviT5aYoCWGJ4dkdsYEbt8bdkNrG2L3Vpe_ftdW355JvwGMmmxW8tkcL-ZuJdn4t5AJi12a5kM7zcT7_JMvBvIpMVuLZPR_WbS8r9iRvkuS3M6eXo__2VHPcmUrKl8v_NsL1f0TWYrLVN-PmueBhLKi_KWlR9hWl4pg3UyM5J5g8xOydys3CLtGtmemexd49s3kvtm5f41ygMjeWhWHl6jPDJn5bSsiXnJTrWXhy9_AwAA__9_05Pq +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUVl2L2kAUfe-vCPcp4gUzk8SPPI2sKwS62VbdpVBkSc1FBDeRSYSWxf9eZtLGRNaJ4Iu-Tc7c4zn3ngvjB6RZQlH8TjkEP4EBAgcEFxA8QPBhibCT2YryPJOqpCSEyW8IHIRNutsXCl4irDJJEHxAsSm2BAEs4l9bmlGckOw5gJBQEW-2WmYnN--x_COSuIgBYUZpQjKwhNe1bcG6gne6wg2CMFp00NIAqst_mILQ0pircFgeELJ9cbSSF_GaIGAHvNzueL2WtI6LTPb8ptv5y5MtvA4gPIWRLXx9Gv-wRV-dHp5fooUtBuqsK1kN1ef599kknE5twasaXqvhjRq3qnFrNW7nbJP8bJPH3vZpJhOSlDQaWx7MY2DOJ3Ng1Rx4NYf_nt9C5dWrOvAbuJ7WNIzGX9_mi8nk8dUWAxRDFKPjxet4Fo6jh0dbMAcFYyiYlqk2pBE8WsLviT5aYoCWGJ4dkdsYEbt8bdkNrG2L3Vpe_ftdW355JvwGMmmxW8tkcL-ZuJdn4t5AJi12a5kM7zcT7_JMvBvIpMVuLZPR_WbS8r9iRvkuS3M6eXo__2VHPcmUrKl8v_NsL1f0TWYrLVN-PmueBhLKi_KWlR9hWl4pg3UyM5J5g8xOydys3CLtGtmemexd49s3kvtm5f41ygMjeWhWHl6jPDJn5bSsiXnJTrWXhy9_AwAA__9_05Pq # Verify that local and final aggregation is correctly shared and de-duplicated. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), stddev(a), avg(a) FILTER (WHERE a > 5), count(b), avg(b), variance(b) FILTER (WHERE b < 8), sum(b) FILTER (WHERE b < 8), stddev(b) FILTER (WHERE b > 2) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzsVk2L4kAQve-vCHVyocB0PjTm1DIqBGad3ejMZVeGrClEcNLSSWCXwf--JJk1iZN0Al48eBDt6nr1nu91Q79DJEJaBm8Ug_sTGCAYgGACggUINmwQjlJsKY6FzFoKgBf-AVdH2EfHNMnKG4StkATuOyT75EDgwjr4fSCfgpDkUAeEkJJgf8hpjnL_Fsi_PAySABB8ikKSrsYZapz9SnXdJNt1XW-5Ro0b2Scvbp2yWHQZRQE2JwSRJqWYOAl2BC47YX_B091O0i5IhBzadb2r528Dzr4CwuqHP_MWi4_Vw9Pzcv1_p-jRFt7jeu5r3KjuN1XNM8qsTTbLbqvsqNXOE-qdDRPshgl24wS71USj1cTSuzQSMiRJYc24zUltM9PbfF54y-nj62o9m81fBtxAzrBimPXx69XL_oRdW43OXeNy0MvU96bLh_mAO8gnyJl-7pp8pmMMOcs4c8ba6cwOoznkFmrcRo2PhvnXGDXuoMYnrR6aNQ9Z_5vDbuLmdAiuRDq635y2m2P0T924idQ7BFdSH99Tb0vd7J-6eROpdwiupO7cU29L3eqfunUTqXcIrqQ-uafe523UYKJP8VFEMV28kZon69nbicIdFQ-tWKRyS9-l2OY0xfIpx-WFkOKk2GXFwouKrUxgFcyUYKMGZpdgQ83cQW0q0ZYabF2j21aCR2rm0TXMYyXYUTM71zBP1FnpHcdEfcguuTenL_8CAAD__3F9IF8= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzsVk2L4kAQve-vCHVyocB0PjTm1DIqBGad3ejMZVeGrClEcNLSSWCXwf--JJk1iZN0Al48eBDt6nr1nu91Q79DJEJaBm8Ug_sTGCAYgGACggUINmwQjlJsKY6FzFoKgBf-AVdH2EfHNMnKG4StkATuOyT75EDgwjr4fSCfgpDkUAeEkJJgf8hpjnL_Fsi_PAySABB8ikKSrsYZapz9SnXdJNt1XW-5Ro0b2Scvbp2yWHQZRQE2JwSRJqWYOAl2BC47YX_B091O0i5IhBzadb2r528Dzr4CwuqHP_MWi4_Vw9Pzcv1_p-jRFt7jeu5r3KjuN1XNM8qsTTbLbqvsqNXOE-qdDRPshgl24wS71USj1cTSuzQSMiRJYc24zUltM9PbfF54y-nj62o9m81fBtxAzrBimPXx69XL_oRdW43OXeNy0MvU96bLh_mAO8gnyJl-7pp8pmMMOcs4c8ba6cwOoznkFmrcRo2PhvnXGDXuoMYnrR6aNQ9Z_5vDbuLmdAiuRDq635y2m2P0T924idQ7BFdSH99Tb0vd7J-6eROpdwiupO7cU29L3eqfunUTqXcIrqQ-uafe523UYKJP8VFEMV28kZon69nbicIdFQ-tWKRyS9-l2OY0xfIpx-WFkOKk2GXFwouKrUxgFcyUYKMGZpdgQ83cQW0q0ZYabF2j21aCR2rm0TXMYyXYUTM71zBP1FnpHcdEfcguuTenL_8CAAD__3F9IF8= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), avg(DISTINCT a), variance(a) FILTER (WHERE a > 0) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8k8FruzAUx--_v0LeqT8I1KjdISel60Zgc8O6XjYPmXmI0BpJImwU__ehHjpLOxylO-Yln3w_PN7bQ6UkxmKHBtgrUCDgAQEfCARAYAEZgVqrHI1RunsyAFx-AHMJlFXd2K6cEciVRmB7sKXdIjBIxfsWExQS9dwFAhKtKLd9TK3LndCfoRRWAIEEK4maOSElTkjfGtf10WWM8TiFrCWgGnuIMVYUCIy25IzKwaCplJaoUY7Ss_aEbFQUGgthlZ4vxq7rl8dZSP8DgWhzP7vl65THy9QZSpso4VG8XHUvnDv-kK4SJ_TOSnsjaTq9f_TK_fOmq3hXVvGnq_hXVgmmqwR_OOAnVBI0taoMHg366Z_dbgFQFjhsi1GNzvFZq7yPGY5PPdcXJBo73NLhwKv-qhf8DtMf4ZsR7B7D3iXJ_iVwcAm8-BWctf--AgAA___gL8Aj +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8k8FruzAUx--_v0LeqT8I1KjdISel60Zgc8O6XjYPmXmI0BpJImwU__ehHjpLOxylO-Yln3w_PN7bQ6UkxmKHBtgrUCDgAQEfCARAYAEZgVqrHI1RunsyAFx-AHMJlFXd2K6cEciVRmB7sKXdIjBIxfsWExQS9dwFAhKtKLd9TK3LndCfoRRWAIEEK4maOSElTkjfGtf10WWM8TiFrCWgGnuIMVYUCIy25IzKwaCplJaoUY7Ss_aEbFQUGgthlZ4vxq7rl8dZSP8DgWhzP7vl65THy9QZSpso4VG8XHUvnDv-kK4SJ_TOSnsjaTq9f_TK_fOmq3hXVvGnq_hXVgmmqwR_OOAnVBI0taoMHg366Z_dbgFQFjhsi1GNzvFZq7yPGY5PPdcXJBo73NLhwKv-qhf8DtMf4ZsR7B7D3iXJ_iVwcAm8-BWctf--AgAA___gL8Aj query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), avg(a), count(a), stddev(a), variance(a) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lNFr4kAQxt_vr5B56sGA2SRam6eVWiFw1buofTlC2XOHINis7G7gjuL_fiQpNJG6CagPgpPJl9_37SzzDrmStBBvZCD6DQwQfEAIACEEhBGkCAettmSM0uUrtSCWfyHyEHb5obDl4xRhqzRB9A52Z_cEEazFnz0lJCTpoQcIkqzY7SvMQe_ehP7HpbACEJaFjQacQXpEUIX9_KSxIiOI2BH7Y6dZpikTVunhqE1dbZ7vOPsOCI_LzWL98X_1K5nF83lVnTPgnzXwyS1ypSVpki1oenRbZN45j6vN82tcuvTLah4vpj9eV-vZ7OnljgfIGTYbL9Mkni4en1qthHJJujxZHHA25D4Oql-AAx6ezRq0srL-M2ZXnHEHtnGA49vM2O-f279i7g5sI_f9bXIH_XMHV8zdgW3kntwmd9g_d3jF3B3YRu6H2--yLwwkZA4qN3Sy077-slfuOpIZ1YvRqEJv6adW2wpTl8tKVz2QZGzdZXUR53WrNNgUM6fYb4nZqdh3kzvQgVMdusXhJb5HTvHYTR5fQr53iidu8uQS8oN7Vl7HNXFfslN2evz2PwAA__8p29yC +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lNFr4kAQxt_vr5B56sGA2SRam6eVWiFw1buofTlC2XOHINis7G7gjuL_fiQpNJG6CagPgpPJl9_37SzzDrmStBBvZCD6DQwQfEAIACEEhBGkCAettmSM0uUrtSCWfyHyEHb5obDl4xRhqzRB9A52Z_cEEazFnz0lJCTpoQcIkqzY7SvMQe_ehP7HpbACEJaFjQacQXpEUIX9_KSxIiOI2BH7Y6dZpikTVunhqE1dbZ7vOPsOCI_LzWL98X_1K5nF83lVnTPgnzXwyS1ypSVpki1oenRbZN45j6vN82tcuvTLah4vpj9eV-vZ7OnljgfIGTYbL9Mkni4en1qthHJJujxZHHA25D4Oql-AAx6ezRq0srL-M2ZXnHEHtnGA49vM2O-f279i7g5sI_f9bXIH_XMHV8zdgW3kntwmd9g_d3jF3B3YRu6H2--yLwwkZA4qN3Sy077-slfuOpIZ1YvRqEJv6adW2wpTl8tKVz2QZGzdZXUR53WrNNgUM6fYb4nZqdh3kzvQgVMdusXhJb5HTvHYTR5fQr53iidu8uQS8oN7Vl7HNXFfslN2evz2PwAA__8p29yC query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), avg(b), sum(a), sum(a), avg(b) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lE2L2zAQhu_9FWFOLQhiyc6XTy495ZCk5ONUTNFagzEklpFk2CX4vy-2WGKHRDbEe5uR9OqZVyPmCrkUuOUX1BD-AwoEGBDwgUAABGYQEyiUTFBrqeojVrAW7xB6BLK8KE29HBNIpEIIr2Ayc0YI4cjfzrhHLlBNPSAg0PDs3GAKlV24-ogENxwI7EoTTiJKIgZxRUCW5narNjxFCGlFhpN_p6nClBupprMu-HDa_IzoLyA2YnX0Z3faHpv4GZw9hd-YZS6VQIWiA4wrd3nU66_vcNr8X9cV-nW2x1ygap5rErFp5BMbfqVPTfgdE3R47-i4veshtx5nPn7v2HDbbFzbPeSW7cX4tv3htv1xbfeQW7aX49sOhtsOxrXdQ27ZXn3vgHoA36MuZK7xblA9vtmrBxiKFO2007JUCf5VMmkwNt01umZBoDZ2l9pkndutusC2mDrFrCOm92LmJvegfac6cIuDV-qeOcVzN3n-CnnhFC_d5OUr5JW7V17PN3F_snt2XP34DAAA__-46tBl +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lE2L2zAQhu_9FWFOLQhiyc6XTy495ZCk5ONUTNFagzEklpFk2CX4vy-2WGKHRDbEe5uR9OqZVyPmCrkUuOUX1BD-AwoEGBDwgUAABGYQEyiUTFBrqeojVrAW7xB6BLK8KE29HBNIpEIIr2Ayc0YI4cjfzrhHLlBNPSAg0PDs3GAKlV24-ogENxwI7EoTTiJKIgZxRUCW5narNjxFCGlFhpN_p6nClBupprMu-HDa_IzoLyA2YnX0Z3faHpv4GZw9hd-YZS6VQIWiA4wrd3nU66_vcNr8X9cV-nW2x1ygap5rErFp5BMbfqVPTfgdE3R47-i4veshtx5nPn7v2HDbbFzbPeSW7cX4tv3htv1xbfeQW7aX49sOhtsOxrXdQ27ZXn3vgHoA36MuZK7xblA9vtmrBxiKFO2007JUCf5VMmkwNt01umZBoDZ2l9pkndutusC2mDrFrCOm92LmJvegfac6cIuDV-qeOcVzN3n-CnnhFC_d5OUr5JW7V17PN3F_snt2XP34DAAA__-46tBl query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT avg(c), sum(c), avg(d), sum(d) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lF-L4jAUxd_3U8h9WiFg80fH6VNkYEHYGRf_PC1lyZpLEZxGkhR2GfzuS1thWrFpwbpPmtuc_E7ODfcDMqPxTb2jg_gnUCDAgAAHAgIITCEhcLJmj84ZW2ypBEv9B-KIwCE75b4oJwT2xiLEH-AP_ogQw1b9PuIalUY7iYCARq8OxxJzsod3Zf9KrbwCAqvcxyPJiRSQnAmY3H-e6rxKEWJ6Jv3JizS1mCpv7GTaBG92r18lHQOBl9XubXv5X1ZZrcrGrUZYq5FPfp4Zq9GibsCTc9gqjdq8bnavv5YXXxe3vFEXxWqNmUYbjySdvCw2xe7F5tv31WI7JiNJyUjyiRTFT-vdeONutH976bDt7SDXMps9tr2sfwRs2Ag6yLUInh4bAe8fAR82gg5yLYL5YyMQ_SMQw0bQQa5F8Pz_5twNI2t0J5M5vJp3t0-OijmIOsVqaDqT2z3-sGZfYqrlqtSVBY3OV19ptVhm1afCYF1Mg2LWENNrMQuTO9A8qBZhsbjH9zQonoXJs3vIT0HxPEye30N-Dvcq6ngm4Ud2zU7OX_4FAAD__6ls5F8= +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lF-L4jAUxd_3U8h9WiFg80fH6VNkYEHYGRf_PC1lyZpLEZxGkhR2GfzuS1thWrFpwbpPmtuc_E7ODfcDMqPxTb2jg_gnUCDAgAAHAgIITCEhcLJmj84ZW2ypBEv9B-KIwCE75b4oJwT2xiLEH-AP_ogQw1b9PuIalUY7iYCARq8OxxJzsod3Zf9KrbwCAqvcxyPJiRSQnAmY3H-e6rxKEWJ6Jv3JizS1mCpv7GTaBG92r18lHQOBl9XubXv5X1ZZrcrGrUZYq5FPfp4Zq9GibsCTc9gqjdq8bnavv5YXXxe3vFEXxWqNmUYbjySdvCw2xe7F5tv31WI7JiNJyUjyiRTFT-vdeONutH976bDt7SDXMps9tr2sfwRs2Ag6yLUInh4bAe8fAR82gg5yLYL5YyMQ_SMQw0bQQa5F8Pz_5twNI2t0J5M5vJp3t0-OijmIOsVqaDqT2z3-sGZfYqrlqtSVBY3OV19ptVhm1afCYF1Mg2LWENNrMQuTO9A8qBZhsbjH9zQonoXJs3vIT0HxPEye30N-Dvcq6ngm4Ud2zU7OX_4FAAD__6ls5F8= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT max(a), min(b) FROM data HAVING min(b) > 2] ---- -https://cockroachdb.github.io/dists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IX-4exXMfBP3J7tlp-23_wEAAP__CmLBNw== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT (a) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lU1r20AQhu_9FWFOLWyxVx-OrZNzDAS5hPRQiggba1AMjlasVtAQ_N-LpINkO52R2a2P-nj2ndWzvPqAUueYqjesIfkNEgQEICAEAREIiCETUBm9xbrWpn2lB-7zP5DMBezKqrHt7UzAVhuE5APszu4REnhSL3t8RJWjmc1BQI5W7fZdTGV2b8q8r3NlFQjYNDa5WUvIDgJ0Y4cla6sKhEQexPTYu6IwWCirzSw-Tl23u7tLfz2nm6fn9OfDw9e1_HYSOqzz8n7zqurXsyWywzBY8M_BhnWaUpscDeZHK3WrEKPL-eWzD3OFfudK9XddzWR88ubn2dFRtpx-RqTHM8LEjj704rpnRPo8I9LfGQmmewo8emJiR5u9va6nwKenwJ-ncLqn0KMnJna02eV1PYU-PYX-PEXTPUUePTGxo82urusp8ukp-j__xk9SH7GudFnjpD_fvJ0b8wL7Tda6MVv8YfS2i-kvNx3X3cixtv1T2V_cl_2jdsAxLE9hOYaDI1heBi9c4JULLJ3mljFNB-T3Dmk4pGUtaFsRScc0HLuopmFGNQ0zqmmYU83QjOqFi-pbEl7SspYusmiYkUXDjCwa5mQxNCNr5SJLMi3K1ahbj7oVqVuTOlapW5dKpzKVTJtGjLSzOr1IGk1z0miak0bTrDQG56SdlSopLTt8-RsAAP__6XHtzQ== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lU1r20AQhu_9FWFOLWyxVx-OrZNzDAS5hPRQiggba1AMjlasVtAQ_N-LpINkO52R2a2P-nj2ndWzvPqAUueYqjesIfkNEgQEICAEAREIiCETUBm9xbrWpn2lB-7zP5DMBezKqrHt7UzAVhuE5APszu4REnhSL3t8RJWjmc1BQI5W7fZdTGV2b8q8r3NlFQjYNDa5WUvIDgJ0Y4cla6sKhEQexPTYu6IwWCirzSw-Tl23u7tLfz2nm6fn9OfDw9e1_HYSOqzz8n7zqurXsyWywzBY8M_BhnWaUpscDeZHK3WrEKPL-eWzD3OFfudK9XddzWR88ubn2dFRtpx-RqTHM8LEjj704rpnRPo8I9LfGQmmewo8emJiR5u9va6nwKenwJ-ncLqn0KMnJna02eV1PYU-PYX-PEXTPUUePTGxo82urusp8ukp-j__xk9SH7GudFnjpD_fvJ0b8wL7Tda6MVv8YfS2i-kvNx3X3cixtv1T2V_cl_2jdsAxLE9hOYaDI1heBi9c4JULLJ3mljFNB-T3Dmk4pGUtaFsRScc0HLuopmFGNQ0zqmmYU83QjOqFi-pbEl7SspYusmiYkUXDjCwa5mQxNCNr5SJLMi3K1ahbj7oVqVuTOlapW5dKpzKVTJtGjLSzOr1IGk1z0miak0bTrDQG56SdlSopLTt8-RsAAP__6XHtzQ== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT SUM (DISTINCT A) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslM9rgzAUx-_7K8o7bRCoUfvLU8d68bB2tN1peMjMQ4TWSBJho_i_DxXslDZK9ZjE7_fzvs_kXSARHLfsjAq8L6BAwAYCDhBwgcAMAgKpFCEqJWTxSSXw-Q94FoE4STNdbAcEQiERvAvoWJ8QPDiy7xPukXGUUwsIcNQsPpWYVMZnJn_XnGkGBHaZ9iZrCkFOQGT6aqk0ixA8mpP-2E2sdJyEejprMg3-9l3_q22WCMlRIm-4BvmNCl6jSGLEtJBT2gp--Hx_3viHo799O07W9OVuSU6jJNq_03TETndg607PH-y03T-WPWKsDmwda_FgLKd_LGfEWB3YOtbywVhu_1juiLE6sHWs1QjP_Yb_HlUqEoWtZ3_b2SrGAfIIq9mhRCZD_JAiLDHVclfqyg2OSlentFr4SXVUFPhfTI1iuyGmbbFtJnegHaPaNYvdIXXPjOK5mTwfQl4YxUszeTmEvDL_K6vjmpgvWZsd5E9_AQAA__9GDZ_K +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslM9rgzAUx-_7K8o7bRCoUfvLU8d68bB2tN1peMjMQ4TWSBJho_i_DxXslDZK9ZjE7_fzvs_kXSARHLfsjAq8L6BAwAYCDhBwgcAMAgKpFCEqJWTxSSXw-Q94FoE4STNdbAcEQiERvAvoWJ8QPDiy7xPukXGUUwsIcNQsPpWYVMZnJn_XnGkGBHaZ9iZrCkFOQGT6aqk0ixA8mpP-2E2sdJyEejprMg3-9l3_q22WCMlRIm-4BvmNCl6jSGLEtJBT2gp--Hx_3viHo799O07W9OVuSU6jJNq_03TETndg607PH-y03T-WPWKsDmwda_FgLKd_LGfEWB3YOtbywVhu_1juiLE6sHWs1QjP_Yb_HlUqEoWtZ3_b2SrGAfIIq9mhRCZD_JAiLDHVclfqyg2OSlentFr4SXVUFPhfTI1iuyGmbbFtJnegHaPaNYvdIXXPjOK5mTwfQl4YxUszeTmEvDL_K6vjmpgvWZsd5E9_AQAA__9GDZ_K query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT SUM (DISTINCT A), SUM (DISTINCT B) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslE_LozAQh-_7KcqcthCoifafJ5ftxcO2S9s9LR6yZhChNZJE2Jfid39Rwb5KG6X1aOJvnnmYMDfIpMA9v6IG_y9QIMCAgAsEPCCwhIhArmSMWktV_dIEQvEffIdAmuWFqY4jArFUCP4NTGouCD6c-b8LHpELVAsHCAg0PL3UmFylV64-AsENBwKHwvizgJKAQVQSkIW5V9WGJwg-Lcl48i7VJs1is1h2sXYEe4q4Vy4yqQQqFJ3CUfmgiR9JojDhRqoF7emf_vz6vgtP53D_8zwL6BxI74jNn3bpdrqk40dApx3BALkdwer1EbDxcmxauQFyK7d-Xc4dL-dOKzdAbuU2r8t54-W8aeUGyK3cdprN8ABxRJ3LTGNvQzyu7FSbA0WCzZrRslAx_lYyrjHN56HO1QcCtWluafMRZs1V1eDXMLWGWSdM-2FmJw-gXWvas4e9d_peWsMrO3n1DnltDW_s5M075K19Vs7AM7E_sj47Kr99BgAA__8FF6qg +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslE_LozAQh-_7KcqcthCoifafJ5ftxcO2S9s9LR6yZhChNZJE2Jfid39Rwb5KG6X1aOJvnnmYMDfIpMA9v6IG_y9QIMCAgAsEPCCwhIhArmSMWktV_dIEQvEffIdAmuWFqY4jArFUCP4NTGouCD6c-b8LHpELVAsHCAg0PL3UmFylV64-AsENBwKHwvizgJKAQVQSkIW5V9WGJwg-Lcl48i7VJs1is1h2sXYEe4q4Vy4yqQQqFJ3CUfmgiR9JojDhRqoF7emf_vz6vgtP53D_8zwL6BxI74jNn3bpdrqk40dApx3BALkdwer1EbDxcmxauQFyK7d-Xc4dL-dOKzdAbuU2r8t54-W8aeUGyK3cdprN8ABxRJ3LTGNvQzyu7FSbA0WCzZrRslAx_lYyrjHN56HO1QcCtWluafMRZs1V1eDXMLWGWSdM-2FmJw-gXWvas4e9d_peWsMrO3n1DnltDW_s5M075K19Vs7AM7E_sj47Kr99BgAA__8FF6qg query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT a, b FROM data WHERE (a + b + c::INT) = 27 ORDER BY a,b] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMll-L2kAUxd_7KcJ9Upxi7iT-CxSyLwVhiWVrH0qRJWsGV3AdmYzQZfG7FxPEaNx7k6roy7JJPHNvzvlxyAcsdaKi-E2lEPwBBAESBHggwAcBHZgIWBk9VWmqzfYnuWCY_IXAFTBfrtZ2e3siYKqNguAD7NwuFAQwjl8W6knFiTJtFwQkysbzRTZmZeZvsXkPk9jGIOD7fGGVCZxGI0Sn5YSyuf3rBcEwGjedb47sBdn_IGC0toETogilCD2YbATotd3vkNp4piDAjai-58NsZtQsttq0O4drZnNAwEP0-zkajZ-jX4-PjRCbpVuyebTK_vSXd-c1Tl9PHTzZ7DeWn268P2q91CZRRiUHh2WnEO-E7qVear-tV8ffn9pYZdpYMrclQtn6dIZfwZFTfhQOPrFMpL_qVVu6RxaeXqFzsAJWxx1viTuzZwGN7p3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hJ0t46pZKZye1O9NlP1w-hpNia_HGW67EaiUps_xfxiuMwfbRcsivFYjEWxPBBjPXHvHDHiWerOWeoBrZak4R5tuEeKfXqyT4olk3WHVHdpcfccUGgxAwot5kBh1AwojJoBpUca3qcN758DyoDuBJcphVKl1GoFWs3VAq1me4GRc8XAyJnAsVQsh75Lxne6WZjMka4W9JnhpXKpFTqt5kKn1WzojJwLnZFzodO9ikyxYqljaoVOdwwyJYOllqkVOq3mQqfVbOiMnAudkXOh0w0rmYaV9EfbceiTzZd_AQAA__8WBWk2 query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT a, b FROM data WHERE (a + b + c::INT) = 27 ORDER BY b,a] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMll9r4kAUxd_3U4T7VOks5k7iv8BC-rIglLh03YdlkZKawQrWkckIW4rffTFBjIm9N1kVfSlN4pl7c86PQz5gqRMVxW8qheAPIAiQIMADAT4I6MBEwMroqUpTbbY_yQXD5C8EroD5crW229sTAVNtFAQfYOd2oSCAcfyyUE8qTpRpuyAgUTaeL7IxKzN_i817mMQ2BgHf5wurTODc3YXo3DuhbG3_ekEwjMYt55sje0H2PwgYrW3ghChCKUIPJhsBem33O6Q2nikIcCPq7_kwmxk1i6027c7hmtkcEPAQ_X6ORuPn6Nfj412Ircot2Sqtsj_95d15jdPXYwdPNvuN5acb749aL7VJlFHJwWHZKcQ7oXuul9pv6zXx96c2Vpk2ls2V9yLE-09n-DUcOeZH4eAjy0T6q161pVuy8PgKnYMVsD7ueE3cmT0LaHRvBHc8J-54adwZf3e4l81thLusz5q8JmvMnoVcejfCmjwna_LSrDH-7lgrm9uINa8-a941WWP2LOTSvxHWvHOy5l2aNcbfHWtlcxux5tdnzb8ma8yehVwGN8Kaf07W_Euzxvi7Y61s7n9_Mh6Z8aTSlV6mqtaXoLt1TCUzldub6rWZqh9GT7Mx-eUo02U3EpXa_CnmF8Nl_mi7YFGMZTEWxfJAjM3EvVPEiCepOyepB7RakoZ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YqVjmkUOt0xyJQMVlqmUei0mgudVrOhM3IudEbOhU43rGQaVtIfbeXQJ5sv_wIAAP__Fh1pNg== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT c, d, sum(a+c::INT) + avg(b+d) FROM data GROUP BY c, d] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUll1r4k4Uxu__n0LOVUvnj56ZiS-5mrJXQjdduvZiWaSkZrBC68gkwpbid19ibDWmPUcxK3oXY345L88zD3mDqUtsFL_YFMLfgCBAggAFAjQICGAoYObdyKap8_kjBdBP_kDYEjCZzuZZfnsoYOS8hfANskn2bCGEQfz4bO9snFjfbIGAxGbx5HlZZuYnL7F_NUmcxSDgzk4T68OGwSujwrAfDUTDyCujRcMo0TAahgsBbp6ti6VZPLYQ4kLs3tD1eOztOM6cbwblfowSJh_3Ovr1EN0OHqL7m5sLoy4rt3R-6-f99wuDH1cyv_p2ex8NltflVtfVH18bT3H6tFUYhZEwXKwnkl9OtH7VfOp8Yr1NSi9bvoWYGVuf1d6eEKtDy49R1cfV-yIe-vnYwWVJxVy9d-maJvhSPbWPepH7382auKVctegVYRdd73KLlmRr68nPawel2rj72cGjnB2moQ0ftc_k7GCdZwdP--ww6q3OTru-syN39688in-Zhja07JyJf2Wd_pWn7V9GvZV_O_X5V-3uX3UU_zINbWjZPRP_qjr9q07bv4x6K_926_Ov3t2_-ij-ZRra0LJ3Jv7VdfpXn7Z_GfVW_u39m2_vTwre2XTmpqnd6cu6lS_fJmNbKJW6uR_ZH96NlmWKn7dLbnkjsWlW_IvFj_60-CtvcBPGbRg3YVmCcT-4cwiMeBAdHET3aFqSC1f0whUJa7qyJmHJaB2QdJuG24cYhYYZo9AwZxSGZozC0IxROuTCu_TCu4cYpUdnQosJhUqk7JUKNM3FAk2zucDgXDAwOCM4VoKlvHfJ7J1OFkZzpKMFNVO8Ei57iU7TnOg0zYrO4JzoDM6JTucqMsGKlYzZS3Q6Y5AJGaykzF6i0zQnOk2zojM4JzqDc6LTCSuZhJX0R9u26MPFf38DAAD__5Y6yYc= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUll1r4k4Uxu__n0LOVUvnj56ZiS-5mrJXQjdduvZiWaSkZrBC68gkwpbid19ibDWmPUcxK3oXY345L88zD3mDqUtsFL_YFMLfgCBAggAFAjQICGAoYObdyKap8_kjBdBP_kDYEjCZzuZZfnsoYOS8hfANskn2bCGEQfz4bO9snFjfbIGAxGbx5HlZZuYnL7F_NUmcxSDgzk4T68OGwSujwrAfDUTDyCujRcMo0TAahgsBbp6ti6VZPLYQ4kLs3tD1eOztOM6cbwblfowSJh_3Ovr1EN0OHqL7m5sLoy4rt3R-6-f99wuDH1cyv_p2ex8NltflVtfVH18bT3H6tFUYhZEwXKwnkl9OtH7VfOp8Yr1NSi9bvoWYGVuf1d6eEKtDy49R1cfV-yIe-vnYwWVJxVy9d-maJvhSPbWPepH7382auKVctegVYRdd73KLlmRr68nPawel2rj72cGjnB2moQ0ftc_k7GCdZwdP--ww6q3OTru-syN39688in-Zhja07JyJf2Wd_pWn7V9GvZV_O_X5V-3uX3UU_zINbWjZPRP_qjr9q07bv4x6K_926_Ov3t2_-ij-ZRra0LJ3Jv7VdfpXn7Z_GfVW_u39m2_vTwre2XTmpqnd6cu6lS_fJmNbKJW6uR_ZH96NlmWKn7dLbnkjsWlW_IvFj_60-CtvcBPGbRg3YVmCcT-4cwiMeBAdHET3aFqSC1f0whUJa7qyJmHJaB2QdJuG24cYhYYZo9AwZxSGZozC0IxROuTCu_TCu4cYpUdnQosJhUqk7JUKNM3FAk2zucDgXDAwOCM4VoKlvHfJ7J1OFkZzpKMFNVO8Ei57iU7TnOg0zYrO4JzoDM6JTucqMsGKlYzZS3Q6Y5AJGaykzF6i0zQnOk2zojM4JzqDc6LTCSuZhJX0R9u26MPFf38DAAD__5Y6yYc= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT c, d, sum(a+c::INT) + avg(b+d) FROM data GROUP BY c, d ORDER BY c, d] ---- -https://cockroachd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no "by hash" routers if there is a single stream. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT c, d, sum(a+c::INT) + avg(b+d) FROM data WHERE a > 9 GROUP BY c, d] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkkFrs0AQhu_fr5A5JWQ-4qq97GlyKoHUlDQplCJh6w4iJK7srtAS_O9FPTS21LbHeWee8ZHZC1RGc6rO7EA-gwCEG8gQamtyds7YLh6G1voVZIhQVnXjuzhDyI1lkBfwpT8xSEjNf1MvI0DQ7FV56sdaBNP4D8h5VTDIuMWrxWJ68V69nHjHSrNdhqP1UNvyrOwbaeUVIOy40mxlQGJBsZTrdI8BRQtKMKAYA0rgOyHxF6FVUVgulDd2KcY-FCMlgLBKn47pdn9MD5vNjOL5lyjpoofD3YxE33y8nVE0H_1Cp955Lya0o5H2DwfasatN5fhXFwrbDIF1wcMjcKaxOd9bk_efGcptz_WBZueHbjwU62podYLXsJiEo2k4moTDT3DW_nsPAAD__yGu6Vg= +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkkFrs0AQhu_fr5A5JWQ-4qq97GlyKoHUlDQplCJh6w4iJK7srtAS_O9FPTS21LbHeWee8ZHZC1RGc6rO7EA-gwCEG8gQamtyds7YLh6G1voVZIhQVnXjuzhDyI1lkBfwpT8xSEjNf1MvI0DQ7FV56sdaBNP4D8h5VTDIuMWrxWJ68V69nHjHSrNdhqP1UNvyrOwbaeUVIOy40mxlQGJBsZTrdI8BRQtKMKAYA0rgOyHxF6FVUVgulDd2KcY-FCMlgLBKn47pdn9MD5vNjOL5lyjpoofD3YxE33y8nVE0H_1Cp955Lya0o5H2DwfasatN5fhXFwrbDIF1wcMjcKaxOd9bk_efGcptz_WBZueHbjwU62podYLXsJiEo2k4moTDT3DW_nsPAAD__yGu6Vg= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a), sum(b), sum(c) FROM data GROUP BY d HAVING sum(a+b) > 10] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUlt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bN9GYzRbNES3UVbvcSl9e94c-H4ejuYXg_GFzE4SUI-HF_exHjeuWtV_56FVzuNLep9_jiPCX5004phMlqswHvzQ1s3lNkUqWkKN16U_UWwxbR3Su8u0d2Z_9W1Vl8my90Jchzfheu65ODbhRFX75-7t_2BiBgVOio9BUHIg7fNOYfdsND-UkurzDcefL_tYOt2tg-unj06DLNNLx2TjO6eMjo4hlE12sfH-_o8WGaaZzt9WnGxztkfLwziI_fPj7-0ePDNNM425vTjI9_yPj4ZxCfoH18gqPHh2mmcbbd04xPcMj4BGcQH-ZLeUz5UmY5tfqqcssDoXRG9enlslBT-q7ktCpTX44qrvojpVzXd7G-6Gf1rbLBJoy7MDZhbwvG98EdG7hrA6NV3xiaac943r4Z9s2yOmZbgZEOzXBoo9oMM6rNMKPaDHOqGZpR3bFRfW2Eb8yybmxkmWFGlhlmZJlhThZDM7K6NrKQmaLcGLWbo3aD1G6SWo5Su1mKVsMUmWkaMNL2xum7pJlpTpqZ5qSZaVYag3PS9oaqUdpk9eFvAAAA__-A5poC query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT avg(a+b), c FROM data GROUP BY c, d HAVING c = d] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMllGL2kAQx9_7KWSe7ugWnd3E00AhR6EgXGOx-lCKSM4MnuBlZROhx-F3L0mOGrXdybEieYsxv8zM_v4MeYVUJxTFz5RB8AsQBEgQoECABwJ8mAvYGr2kLNOmeKQCRslvCHoC1ul2lxe35wKW2hAEr5Cv8w1BANP4cUMTihMy3R4ISCiP15uyzNasn2PzEiZxHoOAr-tNTibohKrzuRMWdSeUJuUd_BhK0QmVKO7P9wL0Lj-UzPJ4RRDgXjRv6361MrSKc226_nFXYTH1ffRzEY2ni2j28HATqlsQ8GP27SbE4urLeBZN366PH5S3J90dCj6-dJ7i7OmkFsJ8f5hA_neCw3t2qTYJGUqO3lS-xTIj9s4Kn_aOf4eUb1eLUTGmOh_Tu63LkV1GjLrsWJH-pLdd9E-e_H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wC5r4CLLDjOy7DAjyw5zshiakTV0kYXMFuXWqNsedVukbpvUcZW67VJ0WqbIbFOPkXa2Tt8lzU5z0uw0J81Os9IYnJN2tlSt0ub7D38CAAD__3_8lMs= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a+b), sum(a+b) FILTER (WHERE a < d), sum(a+b) FILTER (WHERE a = c) FROM data GROUP BY d] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlt-L2kAQx9_7V8g8nXSL2WziaaCQe2hBsF6x3kNp5ci5gyd4WdlE6HH4v5eYQuKPzuRYFZ80m3wy35nvlyFvkBqNo-QFM4h-gQQBPghQICAAASFMBaysmWGWGVs8UgID_QciT8AiXa3z4ngqYGYsQvQG-SJfIkQwSZ6WOMZEo-14IEBjniyW2zIru3hJ7GuskzwBAWNMNdqoFQeiFcuPsV_8_F57npqVR59jBdONALPOq3pZnswRIrkRzTXdzecW50lubCfclRQXrf94-HYT--3qX-vrYDj5Mm7F6shZMaC70c_H0f3kcfQwHN7Esr0ns6r89Np6TrLnvaIBTDdVK_5_W6nes06N1WhR77xp-xaiWekdFP7Xj2wf9q3226gkqtNKHJlPZtWR4d6Tx2sHO7Vl8_TJS6WP0VQzpHvt6ZOnTJ88S_r85gnwL5UARlNtKLfXngD_lAnwz5IA1TwB6lIJYDTVhtK79gSoUyZAnSUBQfMEBJdKAKOpNpT-tScgOGUCgrN_gxwRMMZsZdIMG31heEULqOdY9puZtZ3hd2tm2zLl5f2W2x5ozPLyriwvBml5qxBYh-U-LOuwvwPL98FdF7jvAksn3TKkaZ-ct6JhRZvVpd0KSDqk4dDFahpmrKZhxmoa5qxmaMbqrovVtyTco83quZhFw4xZNMyYRcOcWQzNmNV3MUsyW5Rbo2571G2Rum1Sx1Xqtkul0zKVzDYNGNMO1um7TKNpzjSa5kyjadY0BudMO1iqpGnTzYe_AQAA__8fu1Dn +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlt-L2kAQx9_7V8g8nXSL2WziaaCQe2hBsF6x3kNp5ci5gyd4WdlE6HH4v5eYQuKPzuRYFZ80m3wy35nvlyFvkBqNo-QFM4h-gQQBPghQICAAASFMBaysmWGWGVs8UgID_QciT8AiXa3z4ngqYGYsQvQG-SJfIkQwSZ6WOMZEo-14IEBjniyW2zIru3hJ7GuskzwBAWNMNdqoFQeiFcuPsV_8_F57npqVR59jBdONALPOq3pZnswRIrkRzTXdzecW50lubCfclRQXrf94-HYT--3qX-vrYDj5Mm7F6shZMaC70c_H0f3kcfQwHN7Esr0ns6r89Np6TrLnvaIBTDdVK_5_W6nes06N1WhR77xp-xaiWekdFP7Xj2wf9q3226gkqtNKHJlPZtWR4d6Tx2sHO7Vl8_TJS6WP0VQzpHvt6ZOnTJ88S_r85gnwL5UARlNtKLfXngD_lAnwz5IA1TwB6lIJYDTVhtK79gSoUyZAnSUBQfMEBJdKAKOpNpT-tScgOGUCgrN_gxwRMMZsZdIMG31heEULqOdY9puZtZ3hd2tm2zLl5f2W2x5ozPLyriwvBml5qxBYh-U-LOuwvwPL98FdF7jvAksn3TKkaZ-ct6JhRZvVpd0KSDqk4dDFahpmrKZhxmoa5qxmaMbqrovVtyTco83quZhFw4xZNMyYRcOcWQzNmNV3MUsyW5Rbo2571G2Rum1Sx1Xqtkul0zKVzDYNGNMO1um7TKNpzjSa5kyjadY0BudMO1iqpGnTzYe_AQAA__8fu1Dn # Same query but restricted to a single range; no local aggregation stage. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(a+b), sum(a+b) FILTER (WHERE a < d), sum(a+b) FILTER (WHERE a = c) FROM data WHERE a = 1 GROUP BY d] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkcFKxDAQhu8-RflPipFt0j0FhHhQWNBV6nrSHmIzlMJuU5IUlKXvLm0OuxW36qmdf-abfDB7NNbQWu_IQ76Cg0GgYGidLcl764Y4Dq3MB2TKUDdtF4a4YCitI8g9Qh22BIm1vbLtQoDBUND1dhzrGWwXDpAPuiLIrGdHi_n84o1-31JO2pBbpJP1aF290-5TGR00GHJqDDmZqCVLFL9UYvi8dWmalTG6VhlOOfH_ON1UlaNKB-sWfKqkhvr55eFciYvDX3K3ut_c5onKfsiWJ53ExOmXA-TkW9t4-tMF0r5gIFNRPLK3nSvpydlyfCaWjyM3BoZ8iN0sFqsmtgbBY5jPwmIeFrNw-g0u-rOvAAAA__8xY-EL +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkcFKxDAQhu8-RflPipFt0j0FhHhQWNBV6nrSHmIzlMJuU5IUlKXvLm0OuxW36qmdf-abfDB7NNbQWu_IQ76Cg0GgYGidLcl764Y4Dq3MB2TKUDdtF4a4YCitI8g9Qh22BIm1vbLtQoDBUND1dhzrGWwXDpAPuiLIrGdHi_n84o1-31JO2pBbpJP1aF290-5TGR00GHJqDDmZqCVLFL9UYvi8dWmalTG6VhlOOfH_ON1UlaNKB-sWfKqkhvr55eFciYvDX3K3ut_c5onKfsiWJ53ExOmXA-TkW9t4-tMF0r5gIFNRPLK3nSvpydlyfCaWjyM3BoZ8iN0sFqsmtgbBY5jPwmIeFrNw-g0u-rOvAAAA__8xY-EL # Verify the XOR execution plan query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT xor_agg(to_hex(a)::bytes) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lF2LozAUhu_3VyznahcCNWq_ctUuLKU328XpxQyDlIw5OEJrJInQofjfB_WiWtro4Hjpx5vnfTjhXCCVAv_xE2pgr0CBgAsEPCDgA4EphAQyJSPUWqrylzqwFWdgDoEkzXJTvg4JRFIhsAuYxBwRGOz52xED5ALVxAECAg1PjhUmU8mJq4-V4IYDgQBTgYr9NPLwjudfK_qbsT8v-79PEBYEZG6uEG14jMBoQfoXWcexwpgbqSbTdo_nXXBYbzYl8SHKfYi6EvJUKoEKRev4sLCXoc7X23itNrT_BOioE-go0pCeDZ2A29_ZHdW5o0jDeT7U2evv7I3q3FGk4bwY6uz3d_ZHde4o0nBefud2uYMKUGcy1XizZe6f7JTbB0WM9arSMlcR_lcyqjD1467KVS8EalN_pfXDNq0_lQWbYWoNu60wvQ27dnIH2rOmfXvYH9J7ag3P7OTZEPLcGl7YyYsh5KV9Vk7HNbFfslt2WPz4DAAA__8fHsx- +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lF2LozAUhu_3VyznahcCNWq_ctUuLKU328XpxQyDlIw5OEJrJInQofjfB_WiWtro4Hjpx5vnfTjhXCCVAv_xE2pgr0CBgAsEPCDgA4EphAQyJSPUWqrylzqwFWdgDoEkzXJTvg4JRFIhsAuYxBwRGOz52xED5ALVxAECAg1PjhUmU8mJq4-V4IYDgQBTgYr9NPLwjudfK_qbsT8v-79PEBYEZG6uEG14jMBoQfoXWcexwpgbqSbTdo_nXXBYbzYl8SHKfYi6EvJUKoEKRev4sLCXoc7X23itNrT_BOioE-go0pCeDZ2A29_ZHdW5o0jDeT7U2evv7I3q3FGk4bwY6uz3d_ZHde4o0nBefud2uYMKUGcy1XizZe6f7JTbB0WM9arSMlcR_lcyqjD1467KVS8EalN_pfXDNq0_lQWbYWoNu60wvQ27dnIH2rOmfXvYH9J7ag3P7OTZEPLcGl7YyYsh5KV9Vk7HNbFfslt2WPz4DAAA__8fHsx- # Verify the XOR execution plan query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT xor_agg(a) FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslE2rozAUhvfzK4Z3NQOBGrVfrtpV6WY6lFkMDDLkmoMIrZEkwr0U__tFXVRLG73oMolvnvMcw7khV5J-iSsZRP_AweCDIQBDCIYlYoZCq4SMUbr-pA0c5TsijyHLi9LW2zFDojQhusFm9kKI8Ee8XehMQpJeeGCQZEV2aTCFzq5Cf-yksAIMp9JG33ccccWgSnu_0liREiJesfHYfZpqSoVVerHsU_-ezv_3h8OPHf_5EuW_RN0JZa60JE2yd31cuYvh3terCXrV8PH95jP2ewDbUVxN7bc_3tCf0XAA2zFcTzUMxhsGMxoOYDuGm6mG4XjDcEbDAWzHcDvnVHiCOpMpVG7oYTo8v9mrpwbJlNoRY1SpE_qtVdJg2uWpyTUbkoxtT3m7OObtUV1gN8ydYb8X5o9h300eQAfOdOgOh1PqXjrDKzd5NYW8doY3bvJmCnnr_lfewDNxP7JHdlx9-wwAAP__kuqulw== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslE2rozAUhvfzK4Z3NQOBGrVfrtpV6WY6lFkMDDLkmoMIrZEkwr0U__tFXVRLG73oMolvnvMcw7khV5J-iSsZRP_AweCDIQBDCIYlYoZCq4SMUbr-pA0c5TsijyHLi9LW2zFDojQhusFm9kKI8Ee8XehMQpJeeGCQZEV2aTCFzq5Cf-yksAIMp9JG33ccccWgSnu_0liREiJesfHYfZpqSoVVerHsU_-ezv_3h8OPHf_5EuW_RN0JZa60JE2yd31cuYvh3terCXrV8PH95jP2ewDbUVxN7bc_3tCf0XAA2zFcTzUMxhsGMxoOYDuGm6mG4XjDcEbDAWzHcDvnVHiCOpMpVG7oYTo8v9mrpwbJlNoRY1SpE_qtVdJg2uWpyTUbkoxtT3m7OObtUV1gN8ydYb8X5o9h300eQAfOdOgOh1PqXjrDKzd5NYW8doY3bvJmCnnr_lfewDNxP7JHdlx9-wwAAP__kuqulw== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT max(t.a), min(t.b), avg(t.c) FROM (VALUES (1, 2, 3), (4, 5, 6), (7, 8, 0)) AS t(a, b, c) WHERE b > 3] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkEFL_DAUxO__TxHm1IXANu3lT06tB6WHrSKyCNpDaR-1WJuSl4Cw9LtLmoOusKK3vJlMfpN3wmx6qts3YugnKDQSizUdMRsbpHih6t-hU4lxXrwLciPRGUvQJ7jRTQSNYzt54n0KiZ5cO07xxf_iSiS56F78_Mo7SFyPkyOrRZGJZ5-mOYlca13VD2hWCePdJ4JdOxB0usrf1yiHwdLQOmP36rzKoXxMChUqHKo6KbJwKo83SZHvLqLVX9D3xIuZmc6wlz_VSFA_UNwyG287urOm2zBxvN1ym9ATu-iqOFRztELBr2H1Yzj7Fm7Wfx8BAAD__0YIpH0= +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkEFL_DAUxO__TxHm1IXANu3lT06tB6WHrSKyCNpDaR-1WJuSl4Cw9LtLmoOusKK3vJlMfpN3wmx6qts3YugnKDQSizUdMRsbpHih6t-hU4lxXrwLciPRGUvQJ7jRTQSNYzt54n0KiZ5cO07xxf_iSiS56F78_Mo7SFyPkyOrRZGJZ5-mOYlca13VD2hWCePdJ4JdOxB0usrf1yiHwdLQOmP36rzKoXxMChUqHKo6KbJwKo83SZHvLqLVX9D3xIuZmc6wlz_VSFA_UNwyG287urOm2zBxvN1ym9ATu-iqOFRztELBr2H1Yzj7Fm7Wfx8BAAD__0YIpH0= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM (VALUES (1, '222'), (2, '444')) t1(a,b) JOIN (VALUES (1, 100.0), (3, 32.0)) t2(a,b) ON t1.a = t2.a] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJykkMFq8zAMgO__UwSdWhA0dst_MAzCTusO69hhl-FDiLU2LLODZcOg5N1H7EOXsG6E3WxJnz5JZ7DO0EP9TgzqBQRohN67hpidH0O5YG8-QJUIre1jGMMaoXGeQJ0htKEjUPBcd5F4UwKCoVC3Xe64K26LlSyaU7RvvAY9ILgYLm041EcCVQ64WCVmqv9_VV0M0TpvyJOZKPRI_lbyzbx3NZ_uXWvJb-R05o5ew6oS6xvfHk_pBQiHGFRRCawkVlusdlc3EUuO9kTcO8s03-jKjTQCmSPls7CLvqFH75qkyd9D4lLAEIeclfmztymVBvwKiwWwnMPyR3g7gctBD_8-AwAA__9uR-9k +https://cockroachdb.github.io/distsqlplan/decode.html#eJykkMFq8zAMgO__UwSdWhA0dst_MAzCTusO69hhl-FDiLU2LLODZcOg5N1H7EOXsG6E3WxJnz5JZ7DO0EP9TgzqBQRohN67hpidH0O5YG8-QJUIre1jGMMaoXGeQJ0htKEjUPBcd5F4UwKCoVC3Xe64K26LlSyaU7RvvAY9ILgYLm041EcCVQ64WCVmqv9_VV0M0TpvyJOZKPRI_lbyzbx3NZ_uXWvJb-R05o5ew6oS6xvfHk_pBQiHGFRRCawkVlusdlc3EUuO9kTcO8s03-jKjTQCmSPls7CLvqFH75qkyd9D4lLAEIeclfmztymVBvwKiwWwnMPyR3g7gctBD_8-AwAA__9uR-9k statement ok CREATE TABLE nullables (a INT, b INT, c INT, PRIMARY KEY (a)) @@ -220,12 +220,12 @@ CREATE TABLE nullables (a INT, b INT, c INT, PRIMARY KEY (a)) query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT array_agg(a) FROM (SELECT a FROM data WHERE b = 1 AND c = 1.0 AND d = 1.0 ORDER BY a)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlMFqg0AQhu99CpmToUvjqulhoaA0TRDSpEgupUjZuoMIxpXdDbQE372otKmlaS25eJx__JzPgfEApRS45jvUwJ6AAgEXCHhAwAcCM0gIVEqmqLVUzSMdEIlXYA6BvKz2pokTAqlUCOwAJjcFAoMtfykwRi5QTR0gINDwvGjHVCrfcfUWCG44EFjkhUHFLNsOXOvGooyxaL2dWOF6btmB10RXDmNssdqE28lH7n_m87vb6D5cTSCpCci9OTppwzMERmtywvuoK5VAhaIvGtBLSOofPi7MMoUZN1JNZ30kjOPw8TlcLu2AnjZye0Z0-CbpmDbpDvd2x-TtDff2xuTtD_f2x-T9x58iRl3JUmNP-dSbneYcUWTYna-We5Xig5JpO6YrNy3XBgK16bq0K6KybbWCX2H6K3zdg53vsHvOZO8c2D8Hnv0LTuqL9wAAAP__gR7lIA== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlMFqg0AQhu99CpmToUvjqulhoaA0TRDSpEgupUjZuoMIxpXdDbQE372otKmlaS25eJx__JzPgfEApRS45jvUwJ6AAgEXCHhAwAcCM0gIVEqmqLVUzSMdEIlXYA6BvKz2pokTAqlUCOwAJjcFAoMtfykwRi5QTR0gINDwvGjHVCrfcfUWCG44EFjkhUHFLNsOXOvGooyxaL2dWOF6btmB10RXDmNssdqE28lH7n_m87vb6D5cTSCpCci9OTppwzMERmtywvuoK5VAhaIvGtBLSOofPi7MMoUZN1JNZ30kjOPw8TlcLu2AnjZye0Z0-CbpmDbpDvd2x-TtDff2xuTtD_f2x-T9x58iRl3JUmNP-dSbneYcUWTYna-We5Xig5JpO6YrNy3XBgK16bq0K6KybbWCX2H6K3zdg53vsHvOZO8c2D8Hnv0LTuqL9wAAAP__gR7lIA== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT json_agg(a) FROM (SELECT a FROM data WHERE b = 1 AND c = 1.0 AND d = 1.0 ORDER BY a)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlEFrs0AQhu_fr5A5Gb6lcdX0sFBQmiZYUlPS3IqUrTuIYFzZ3UBL8L8XlTa1NK0lF4_zjo_zODAeoJQCY75DDewRKBBwgYAHBHwgMIOEQKVkilpL1TzSAZF4AeYQyMtqb5o4IZBKhcAOYHJTIDDY8ucCN8gFqqkDBAQanhftmErlO65eA8ENBwKLvDComGXbgWtdWZQxFsXbiRXGc8sOvCa6cBhji9U63E7ec_8jn99cR3fhagJJTUDuzdFJG54hMFqTE95HXakEKhR90YD-h6T-5uPCLFOYcSPVdNZHbh_W8VO4XNoBPS3k9oTo8EXSMS3SHe7tjsnbG-7tjcnbH-7tj8n7lx_FBnUlS4095VNvdpprRJFhd71a7lWK90qm7ZiuXLdcGwjUpuvSrojKttUKfobpj_BlD3a-wu45k71zYP8cePYnOKn_vQUAAP__zGvk2w== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlEFrs0AQhu_fr5A5Gb6lcdX0sFBQmiZYUlPS3IqUrTuIYFzZ3UBL8L8XlTa1NK0lF4_zjo_zODAeoJQCY75DDewRKBBwgYAHBHwgMIOEQKVkilpL1TzSAZF4AeYQyMtqb5o4IZBKhcAOYHJTIDDY8ucCN8gFqqkDBAQanhftmErlO65eA8ENBwKLvDComGXbgWtdWZQxFsXbiRXGc8sOvCa6cBhji9U63E7ec_8jn99cR3fhagJJTUDuzdFJG54hMFqTE95HXakEKhR90YD-h6T-5uPCLFOYcSPVdNZHbh_W8VO4XNoBPS3k9oTo8EXSMS3SHe7tjsnbG-7tjcnbH-7tj8n7lx_FBnUlS4095VNvdpprRJFhd71a7lWK90qm7ZiuXLdcGwjUpuvSrojKttUKfobpj_BlD3a-wu45k71zYP8cePYnOKn_vQUAAP__zGvk2w== # Test that orderings on GROUP BY columns are propagated through aggregations. statement ok @@ -243,29 +243,29 @@ ALTER TABLE sorted_data EXPERIMENTAL_RELOCATE query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT a, max(b) FROM sorted_data GROUP BY a] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkc9LwzAUx-_-FfI9bRBZk-Elp-w4mJ2MCYqUEZtnGcy-kqQgjP7v0ubgKqzq8f34fD_h5YyaHeX2gwL0KyQE7lEINJ5LCoF9305La_cJnQkc66aNfbsQKNkT9BnxGE8EjZzvuFkoCDiK9nga1joBbuM3FKKtCHrZiYtgOR28t28n2pF15BfZKB7vzCawj-QOzkYLgW0b9a2Rwihck8v_yFdV5amykf1Cjt2mr1f5yyHf7g_502YzM3IOgYfV88yo-VW9Gul_OeqOQsN1oD9dNesKAXIVpY8L3PqSHj2XgyaV24EbGo5CTNNlKtZ1GvUPvITlJKymYTUJZz_gorv5CgAA___lENek +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkc9LwzAUx-_-FfI9bRBZk-Elp-w4mJ2MCYqUEZtnGcy-kqQgjP7v0ubgKqzq8f34fD_h5YyaHeX2gwL0KyQE7lEINJ5LCoF9305La_cJnQkc66aNfbsQKNkT9BnxGE8EjZzvuFkoCDiK9nga1joBbuM3FKKtCHrZiYtgOR28t28n2pF15BfZKB7vzCawj-QOzkYLgW0b9a2Rwihck8v_yFdV5amykf1Cjt2mr1f5yyHf7g_502YzM3IOgYfV88yo-VW9Gul_OeqOQsN1oD9dNesKAXIVpY8L3PqSHj2XgyaV24EbGo5CTNNlKtZ1GvUPvITlJKymYTUJZz_gorv5CgAA___lENek query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT a, max(b) FROM sorted_data GROUP BY a ORDER BY a] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkk1Lw0AQhu_-CnlPLa4km9RLTumxUFOpFRQJZc2OoVAzYXcDQsl_l2QPtoWu9jgfz_skzB7QsKZCfZFF9g4JgQeUAq3hiqxlM7T90kJ_I4sFdk3buaFdClRsCNkBbuf2hAwF33MbpRDQ5NRuP671Aty5X8g6VROyWS-OgmU4eKM-9rQmpclE8Uk8Pplzy8aR3mrlFARWnctucynyBJfk8hr5vK4N1cqxieSpOx_qefG2LVabbfGyXE5yOYXA4_x1kifTi_rkGv3z8HMmSs7Vdxfj05P4P262JttyY-lfR4v7UoB0Tf5dWO5MRU-Gq1Hjy9XIjQ1N1vnpzBeLxo-GDzyGZRBOwnAShNMwnAbh-Awu-5ufAAAA__8Vfwq4 +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkk1Lw0AQhu_-CnlPLa4km9RLTumxUFOpFRQJZc2OoVAzYXcDQsl_l2QPtoWu9jgfz_skzB7QsKZCfZFF9g4JgQeUAq3hiqxlM7T90kJ_I4sFdk3buaFdClRsCNkBbuf2hAwF33MbpRDQ5NRuP671Aty5X8g6VROyWS-OgmU4eKM-9rQmpclE8Uk8Pplzy8aR3mrlFARWnctucynyBJfk8hr5vK4N1cqxieSpOx_qefG2LVabbfGyXE5yOYXA4_x1kifTi_rkGv3z8HMmSs7Vdxfj05P4P262JttyY-lfR4v7UoB0Tf5dWO5MRU-Gq1Hjy9XIjQ1N1vnpzBeLxo-GDzyGZRBOwnAShNMwnAbh-Awu-5ufAAAA__8Vfwq4 query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT c, min(b), a FROM sorted_data GROUP BY a, c] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJz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PBJl49dHH7d7iMJ8N9u-TM--vF47Oaktm1812dZVY2rWlAw7dNVkm1dN3uiqRc11R23pZmrWxvLQId1Rm7qjG-mOm-uO29LN1KyNZdQh3XGbuuMb6U6a607a0s3UrI1l3CHdSZu6kw78N1xp8Rnd1mwcNvorGBwOiXqJ1USc2dkF_rRmUZapHqclV77Q6Hy1KquHyaZaOjRYh-U5LOtwdALLr8HDEHgcAsugvmVK0xE575iGY1rWkLaVkHRKw2mIahpmVNMwo5qGOdUMzagehqh-IOERLWsUIouGGVk0zMiiYU4WQzOyxiGyJJOiXIyG5WhYkIYlaWCUhmWpDApTyaRpwki7iNMvSaNpThpNc9JompXG4Jy0i1Alpc323_4FAAD__2pESd8= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT c, min(b), a FROM sorted_data GROUP BY a, c ORDER BY a] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlt9r4k4Uxd-_f0W5Ty2dL-ZO4q88pY9CNy7d7sOyiKRmsIJ1ZDLCluL_viRBjI57b6JBfKzpmTM558MhX7DSqYqTD5VB-BsQBEgQ4IOAAAR0YSJgbfRMZZk2-b-UglH6B0JPwGK13tj854mAmTYKwi-wC7tUEMJr8rZULypJlel4ICBVNlksC5u1WXwk5jPKtLEqnaaJTWCyFaA3dn9eZpO5ghC3or7n03xu1Dyx2nS6h5ZR_mpP8a9pPH6dxj-fn-8jfAAB30bxfSQfnIf-w9GN9iZvn3fvSfbunD_Z7m8t_3nr_TmblTapMio9OKk4hXgv9Fp-sf2l_SZR_8i7Mx10cn4EAeONDe8iX0RSFMGc9gtqhHQqIoj8RziZU6z_1-uO9I4SPW3fPbDH-jRjWzQznpXWezdEM7ZJM16JZibqHc1OzufSLOvjJNvCifGsxN6_IZxkmzjJK-HERL3Dycn5XJz8-jj5beHEeFZiH9wQTn6bOPlXwomJeoeTk_O5OAX1cQrawonxrMQ-vCGcgjZxCq6EExP1Dicn5zY-3U74vahsrVeZqvVV5uUhqnSuysQzvTEz9d3o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wnSM9LRgw5s64NCqdVnOl02q2dEbOlc7IudLpXUVmWNHZmEal0xuDzMigszKNSqfVXOm0mi2dkXOlM3KudHphJbOwkv5oOy59sv3vbwAAAP__L7BNlA== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT b, max(c) FROM sorted_data@foo GROUP BY b] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUksFqg0AQhu99ivKfEtgSV9OLJ3NMSbWEFFqKhK07FSFxZHeFluC7F7XQWKptjjsz33y_jCeUrClWR7IIXyAhcItUoDKckbVs2nI_tNbvCD2Boqxq15ZTgYwNITzBFe5ACBHzDVeLAAKanCoO3VgjwLX7hqxTOSFcNuJssZxevFOvB9qS0mQW3mA93pgjy8aR3mvlFASS2oXXkcSYWV5ivuOi_BLLobgyxVGZj1_lvoiCUb9_iX-V54Zy5dgs_KE_avMkRpMh3X2vwCp-3sfJbh8_bjazSM4hcL96mkX-fDRMMAjzx323ZCsuLf3rwF6TCpDOqf-HLNcmowfDWafpn0nHdQVN1vXdZf9Yl32rDXgOy0nYn4b9STiYhoNJ2PsBp83VZwAAAP__oMEZww== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUksFqg0AQhu99ivKfEtgSV9OLJ3NMSbWEFFqKhK07FSFxZHeFluC7F7XQWKptjjsz33y_jCeUrClWR7IIXyAhcItUoDKckbVs2nI_tNbvCD2Boqxq15ZTgYwNITzBFe5ACBHzDVeLAAKanCoO3VgjwLX7hqxTOSFcNuJssZxevFOvB9qS0mQW3mA93pgjy8aR3mvlFASS2oXXkcSYWV5ivuOi_BLLobgyxVGZj1_lvoiCUb9_iX-V54Zy5dgs_KE_avMkRpMh3X2vwCp-3sfJbh8_bjazSM4hcL96mkX-fDRMMAjzx323ZCsuLf3rwF6TCpDOqf-HLNcmowfDWafpn0nHdQVN1vXdZf9Yl32rDXgOy0nYn4b9STiYhoNJ2PsBp83VZwAAAP__oMEZww== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM (SELECT a, max(c) FROM sorted_data GROUP BY a) JOIN (SELECT b, min(c) FROM sorted_data@foo GROUP BY b) ON a = b] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMl11r2zAUhu_3K8q5aqlGItn5hIF72dEmo3SwMUJxYzUNpFGQHVgp-e8jMSMfTs9rVfHmuyb2I51TPW9P9UZzk-hB_KJT6v8iSYIUCQpIUEiCWjQStLBmrNPU2PUrOXCd_KZ-U9B0vlhm669HgsbGauq_UTbNZpr6dB8_zvSdjhNtG00SlOgsns422yzs9CW2r1FqbKaThyTOYhI0XGb9s0iKKKDRSpBZZtvF0yyeaOrLlShfwNVkYvUkzoxttPb3j9Z9Dm2irU7WW5Kgq8HPh8Hw_mHw_ebmPJIXJOj26sd5pC4Oitmu__h69hynz4WlR6ttwerdgrfrmLyQw3Uu84WYrmTzf7UV-LUltm8t58feO9r5rbYT_dVM59o2ZHd_3Zl-ys4jeXnxxU4nz_mPu0opEQUiCt8Vq1OiIYdSB-azWTRUcPDm8b27e3vL8qmSlaQKFLDjX7seqZInTpWsR6qc2zpBqnpVpkqVN1tVYjYoYMeBTj3MVic2W9XDbOe2_M1WzSrNDsqbHVRiNihgx4FuPcwOTmx2UA-znds6gdmySrPD8maHlZgNCthxoFcPs8MTmx3Ww2wHEeTBbevJmOMWvKtA6LL1Ogd_d26Xd1BxDrY-6KD82D8O1wPv02r7SXiCv0PqX93IjhRyp9OFmae61H2ruW5FJxOd_3ZSs7Rj_c2a8Wab_ONww22-SHSa5U9l_uF6nj9aF7gLy0NY7sJqD5ZucMcHltKLbnnRPZ5WLB34wF0fWILjAnTbh1ag7YCVNOThkIVVyCveYuk2D7d98sHDIB88jPIBaJAPQIN8dHzywcMgHzyM8gFokA-eRvno-uSjx0-AJhgBhQHiNAN4Gg0BnoZTAOBoDAAceC75MQJOHNDAdEAj1REOXAc4kl0WZomL7ZKfJRKMA1mYJk668zTSnaeh7gBHugMc6V4YpE668zTSnaeh7gBHuvM41L0wTp10LwyWfd27QPfCZHHS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pE668zTSnaeh7gBHuvM41L0wTp10LwyWfd27QPfCZHHSnaeR7jwNdQc40h3gSPfCVHXSnaeR7jwNdQc40p3Hke6Kv5AqcCNVhdmyjyuAu9zOlCPd9aIPjs0Zb3vhCrXudkUbrT79CQAA__-vN-nv diff --git a/pkg/sql/opt/exec/execbuilder/testdata/distsql_auto_mode b/pkg/sql/opt/exec/execbuilder/testdata/distsql_auto_mode index 341187a609e7..af4ec52007dd 100644 --- a/pkg/sql/opt/exec/execbuilder/testdata/distsql_auto_mode +++ b/pkg/sql/opt/exec/execbuilder/testdata/distsql_auto_mode @@ -13,7 +13,7 @@ query BT colnames EXPLAIN (DISTSQL) VALUES (1) ---- automatic url -false https://cockroachdb.github.io/distsqlplan/decode.html?eJyMjzFrwzAQhff-CvOmFgS1O2rs5qUtHbIEDUI6HBNHZ3QSBIz-e7A0hAyBjO896fu4DYE9_dgLCfQRA4zCGtmRCMe9ag9Gf4XuFeaw5rTXRsFxJOgNaU4LQeNgl0zy2UPBU7LzUolf3Xf3PnTulMNZPmCKAud0p0iyE0H3Rb1u-idZOQg9mJ6TjQL5ido1wjk6-ovsqqbF3_qvFp4ktXVoYQxtKqa83QIAAP__QkpjGQ== +false https://cockroachdb.github.io/distsqlplan/decode.html#eJyMjzFrwzAQhff-CvOmFgS1O2rs5qUtHbIEDUI6HBNHZ3QSBIz-e7A0hAyBjO896fu4DYE9_dgLCfQRA4zCGtmRCMe9ag9Gf4XuFeaw5rTXRsFxJOgNaU4LQeNgl0zy2UPBU7LzUolf3Xf3PnTulMNZPmCKAud0p0iyE0H3Rb1u-idZOQg9mJ6TjQL5ido1wjk6-ovsqqbF3_qvFp4ktXVoYQxtKqa83QIAAP__QkpjGQ== # Check the JSON column is still there, albeit hidden. query T colnames diff --git a/pkg/sql/opt/exec/execbuilder/testdata/distsql_distinct_on b/pkg/sql/opt/exec/execbuilder/testdata/distsql_distinct_on index 4bf773c15d51..173aeb7d7852 100644 --- a/pkg/sql/opt/exec/execbuilder/testdata/distsql_distinct_on +++ b/pkg/sql/opt/exec/execbuilder/testdata/distsql_distinct_on @@ -82,7 +82,7 @@ # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT ON (x,y,z) x, y, z FROM xyz] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJyslE2LqzAUhvf3V1zedaAm2i9XLu6mm9uhzG5w4ZhDEVojSYR2iv99UMGOpY0Oukzie57zxHBuyJWk_8mZDMIPcDAIMPhgCMCwRMxQaJWSMUrXn7SBnbwg9BiyvChtvR0zpEoTwhtsZk-EEO_J54kOlEjSCw8MkmySnRpMobNzoq_R5foFhn1pw7-RYJHPogBxxaBKe69rbHIkhLxi49n_MmOzPLWLZR8ccdaAXlLES8q9eJkrLUmT7NWOK1cf3PtlI36vET7-qvncVz3A7hRXk65ajDcUcxsOsDvD9SRDf7yhP7fhALsz3EwyDMYbBnMbDrA7w-1sA-EJ5UCmULmhh8HwvLJXDwySR2qni1GlTulNq7TBtMt9k2s2JBnbnvJ2scvbo7rBn2HuDItemD-GhZs8gPad6cAdDqb0vXSGV27yagp57Qxv3OTNFPLW_a-8gWfifmSP7Lj68x0AAP__pp2oBA== +# https://cockroachdb.github.io/distsqlplan/decode.html#eJyslE2LqzAUhvf3V1zedaAm2i9XLu6mm9uhzG5w4ZhDEVojSYR2iv99UMGOpY0Oukzie57zxHBuyJWk_8mZDMIPcDAIMPhgCMCwRMxQaJWSMUrXn7SBnbwg9BiyvChtvR0zpEoTwhtsZk-EEO_J54kOlEjSCw8MkmySnRpMobNzoq_R5foFhn1pw7-RYJHPogBxxaBKe69rbHIkhLxi49n_MmOzPLWLZR8ccdaAXlLES8q9eJkrLUmT7NWOK1cf3PtlI36vET7-qvncVz3A7hRXk65ajDcUcxsOsDvD9SRDf7yhP7fhALsz3EwyDMYbBnMbDrA7w-1sA-EJ5UCmULmhh8HwvLJXDwySR2qni1GlTulNq7TBtMt9k2s2JBnbnvJ2scvbo7rBn2HuDItemD-GhZs8gPad6cAdDqb0vXSGV27yagp57Qxv3OTNFPLW_a-8gWfifmSP7Lj68x0AAP__pp2oBA== # # # Ensure that ordering propagates past local DISTINCT processors. # query TTTTT @@ -104,7 +104,7 @@ # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT ON (x,y,z) x, y, z FROM xyz ORDER BY x] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lb9u2zAQh_c-RXBrCdhH0o6tSUOXLE2Rdis8qOIhEOCIBkkBSQO_e6E_gCo3OsqyOkry777jdwf6HUpr6Gv2Qh6Sn4AgQIIABQI0CNjAQcDJ2Zy8t67-SRt4MK-QrAUU5akK9euDgNw6guQdQhGOBAn8yH4d6YkyQ261BgGGQlYcG8zJFS-Ze0tf336DgMcqJHepFKkSqYbDWYCtQl_Xh-yZIMGzmM7-bl0gt9oMsSl-Hi0vryn_pfChKPOwwvUlQTQHqU_lDDkyyV2Ko1A1Cu1Ztq3z0UnYzv45-1Wd6UFnOH3SuPSkI-xu0tu5k46U733igpOW033KpX1G2J3P-7k-I-V7n3JBn2q6T7W0zwi787mb6zNSvvepFvSpp_vUS_uMsDuf-7k-I-V7n_o_3ewfQJ_In2zpaUAcq7yur30yz9T-TXhbuZy-OZs3mPbxsck1Lwz50H7F9uGhbD_VDf4dRjYs-bBkw2oQxsuw4tve8mjNpjd8eMOGI-TtLYe-Z8M7nrxjw3s-vL-lbYzsWGzJ-C3DyJrhTXuGkUXTETi_aRhZNeR37bL3w_nTnwAAAP__eVbBtQ== +# https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lb9u2zAQh_c-RXBrCdhH0o6tSUOXLE2Rdis8qOIhEOCIBkkBSQO_e6E_gCo3OsqyOkry777jdwf6HUpr6Gv2Qh6Sn4AgQIIABQI0CNjAQcDJ2Zy8t67-SRt4MK-QrAUU5akK9euDgNw6guQdQhGOBAn8yH4d6YkyQ261BgGGQlYcG8zJFS-Ze0tf336DgMcqJHepFKkSqYbDWYCtQl_Xh-yZIMGzmM7-bl0gt9oMsSl-Hi0vryn_pfChKPOwwvUlQTQHqU_lDDkyyV2Ko1A1Cu1Ztq3z0UnYzv45-1Wd6UFnOH3SuPSkI-xu0tu5k46U733igpOW033KpX1G2J3P-7k-I-V7n3JBn2q6T7W0zwi787mb6zNSvvepFvSpp_vUS_uMsDuf-7k-I-V7n_o_3ewfQJ_In2zpaUAcq7yur30yz9T-TXhbuZy-OZs3mPbxsck1Lwz50H7F9uGhbD_VDf4dRjYs-bBkw2oQxsuw4tve8mjNpjd8eMOGI-TtLYe-Z8M7nrxjw3s-vL-lbYzsWGzJ-C3DyJrhTXuGkUXTETi_aRhZNeR37bL3w_nTnwAAAP__eVbBtQ== # # # Ensure that even with more ordering columns, ordering propagates past local # # DISTINCT processors. @@ -126,7 +126,7 @@ # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT ON (y) x, y FROM xyz ORDER BY y, x] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJyslb9u2zAQh_c-RXFrCNhHyo6tSUOXLE2Rdis0qOIhEOCIAkkBSQO_e6E_gCq3OioQR0n-8bv77kC_Q200fS1eyEH6ExAESBCgQEACAg6QC2isKck5Y7ufDIEH_QrpXkBVN63vXucCSmMJ0nfwlb8QpPCj-HWhJyo02d0eBGjyRXXpMY2tXgr7lr2-_QYBj61PP2dSZAryqwDT-ulQ54tnghSvYj34u7Ge7O4wZ2byTmR4t4iQH0F8qZyv6tLvcH9L6RqymizprqlFnFrETRQznLPUB1vXP92vrCuZ1YXrR4xRRxwAjyM-bhlxADGpxCgjlutVyqgqA-BR5f0WlQHEpFJGUanWq1RRVQbAo8rTFpUBxKRSRVGZrFeZRFUZAI8qz1tUBhCTyiT6Hf4f3BO5xtSOZqylk_fd5U76mYY_BGdaW9I3a8oeMzw-9rn-hSbnh684PDzUw6euwL_DyIYlH5ZsWM3CeBtWfNlHHp2w6QMfPrDhAPm4pel7NnziySc2fObD5y1lY2DHQkvGbxkG1gw37RkGFi0JwPlNw8CqIb9rt7Xn109_AgAA__8Zbbvp +# https://cockroachdb.github.io/distsqlplan/decode.html#eJyslb9u2zAQh_c-RXFrCNhHyo6tSUOXLE2Rdis0qOIhEOCIAkkBSQO_e6E_gCq3OioQR0n-8bv77kC_Q200fS1eyEH6ExAESBCgQEACAg6QC2isKck5Y7ufDIEH_QrpXkBVN63vXucCSmMJ0nfwlb8QpPCj-HWhJyo02d0eBGjyRXXpMY2tXgr7lr2-_QYBj61PP2dSZAryqwDT-ulQ54tnghSvYj34u7Ge7O4wZ2byTmR4t4iQH0F8qZyv6tLvcH9L6RqymizprqlFnFrETRQznLPUB1vXP92vrCuZ1YXrR4xRRxwAjyM-bhlxADGpxCgjlutVyqgqA-BR5f0WlQHEpFJGUanWq1RRVQbAo8rTFpUBxKRSRVGZrFeZRFUZAI8qz1tUBhCTyiT6Hf4f3BO5xtSOZqylk_fd5U76mYY_BGdaW9I3a8oeMzw-9rn-hSbnh684PDzUw6euwL_DyIYlH5ZsWM3CeBtWfNlHHp2w6QMfPrDhAPm4pel7NnziySc2fObD5y1lY2DHQkvGbxkG1gw37RkGFi0JwPlNw8CqIb9rt7Xn109_AgAA__8Zbbvp # # # Distinct processors elided becaue of strong key. # query TTTTT @@ -139,7 +139,7 @@ # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT ON (a,b,c) a, b, c FROM abc] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJyskj1rwzAQhvf-jHdWiT87eOqaJS2hW_GgWEcwOD5zkqEl-L8Xy0Pq4BYVdZTunnvu4L2iZ0MHfSGL6h0pFDIo5FAooFCiVhiEG7KWZW5ZgL35QJUotP0wuvm7VmhYCNUVrnUdocKbPnV0JG1IdvNcQ063ndcM0l60fD7rU4N6UuDR3eZYp8-EKp3UD66bYuxZDAmZ1fh62tjmwI887Mq7xm11tlKn4WdmsWdm4a481pWHu4pYVxHuSv4zKhuuI9mBe0tBSUjmKJE505I7y6M09CrceM3yfPGc_zBk3VJNl8e-9yW_4Hc4_RV-WsHJPZzFmPMYuIiByz_B9fTwFQAA__97QoeT +# https://cockroachdb.github.io/distsqlplan/decode.html#eJyskj1rwzAQhvf-jHdWiT87eOqaJS2hW_GgWEcwOD5zkqEl-L8Xy0Pq4BYVdZTunnvu4L2iZ0MHfSGL6h0pFDIo5FAooFCiVhiEG7KWZW5ZgL35QJUotP0wuvm7VmhYCNUVrnUdocKbPnV0JG1IdvNcQ063ndcM0l60fD7rU4N6UuDR3eZYp8-EKp3UD66bYuxZDAmZ1fh62tjmwI887Mq7xm11tlKn4WdmsWdm4a481pWHu4pYVxHuSv4zKhuuI9mBe0tBSUjmKJE505I7y6M09CrceM3yfPGc_zBk3VJNl8e-9yW_4Hc4_RV-WsHJPZzFmPMYuIiByz_B9fTwFQAA__97QoeT # # query TTTTT # EXPLAIN (VERBOSE) SELECT DISTINCT ON (a, b) a, b FROM abc ORDER BY a, b, c @@ -156,4 +156,4 @@ # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT ON (a, b) a, b FROM abc ORDER BY a, b, c] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lM-LqzAQx-_vr3jMtQM10f7y5OFdenldyt4WD9YMRWiNJBF2Kf7vi2axa9lGwezRxO985sOEuUEpBf3PrqQhfgMGCBwQQkCIAGEFKUKlZE5aS9X-YgN78Q5xgFCUVW3a4xQhl4ogvoEpzIUghtfsdKEjZYLUsq0ryGTFpcNUqrhm6iPJTjkgHGoT_00YJhyTENIGQdbmXleb7EwQswans_8V2hRlbpbrIbijtEglSJH4wj5l8qfMO0raUo-cBSZ8gUm4gLRxNciCWR2Ggw7Z9Ilw3xMZYffCG48T4dN9Q9--I-zed-vRN5zuG_n2HWH3vjuPvtF038C37wi791390ob5gXkkXclS04D4rHLQrh0SZ7LrSsta5fSiZN5h7Oehy3UHgrSxt8x-7Et71Tb4PcycYT4Is8cwd5NH0KEzHbnD0Zy-V87w2k1ezyFvnOGtm7ydQ965ZxWMPBP3I3tkp82fzwAAAP__G57AJg== +# https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lM-LqzAQx-_vr3jMtQM10f7y5OFdenldyt4WD9YMRWiNJBF2Kf7vi2axa9lGwezRxO985sOEuUEpBf3PrqQhfgMGCBwQQkCIAGEFKUKlZE5aS9X-YgN78Q5xgFCUVW3a4xQhl4ogvoEpzIUghtfsdKEjZYLUsq0ryGTFpcNUqrhm6iPJTjkgHGoT_00YJhyTENIGQdbmXleb7EwQswans_8V2hRlbpbrIbijtEglSJH4wj5l8qfMO0raUo-cBSZ8gUm4gLRxNciCWR2Ggw7Z9Ilw3xMZYffCG48T4dN9Q9--I-zed-vRN5zuG_n2HWH3vjuPvtF038C37wi791390ob5gXkkXclS04D4rHLQrh0SZ7LrSsta5fSiZN5h7Oehy3UHgrSxt8x-7Et71Tb4PcycYT4Is8cwd5NH0KEzHbnD0Zy-V87w2k1ezyFvnOGtm7ydQ965ZxWMPBP3I3tkp82fzwAAAP__G57AJg== diff --git a/pkg/sql/opt/exec/execbuilder/testdata/distsql_indexjoin b/pkg/sql/opt/exec/execbuilder/testdata/distsql_indexjoin index 6e6ba5eee8c9..34734b5bf7be 100644 --- a/pkg/sql/opt/exec/execbuilder/testdata/distsql_indexjoin +++ b/pkg/sql/opt/exec/execbuilder/testdata/distsql_indexjoin @@ -25,21 +25,21 @@ NULL /10 1 {1} 1 query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM t WHERE v > 10 AND v < 50] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslDtrwzAURvf-ivLNt8SvPOrJazokJXQrHlzrEgyJZSS5tJT89-IoUDk0ioMz6nHu8RmsH9RS8KrYs0b6jhCECIQYhASEKXJCo2TJWkvVXbHAUnwhDQhV3bTGbpvK7Bgp2loqwYoFCIJNUe268_yQE0qpGOnf1ZV8ks1kcXaRIFtzGpsTtCm2jDQ-kKMOHfU_g9-Kjx1vuBCsJkFvPD4zA8K6NeljFuKSLbzF9iKr-iRL-rJGVftCfbtKyiLK4oviqCeOhmeG4zOv2JzM6X0z4-GZ0fjMKzYnc3bfzGR4Zjw-84rNyZzfNzPwizesG1lrHvTXB92zwWLL9o3RslUlvypZHjV2uT5yxw3B2tjTZ7tY1vao-0AXDr1w5IcjLxz04PAcjr1w4jcnY8xTLzzzm2djzHMvvPCbFzeZ88PDbwAAAP__eQw40w== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslDtrwzAURvf-ivLNt8SvPOrJazokJXQrHlzrEgyJZSS5tJT89-IoUDk0ioMz6nHu8RmsH9RS8KrYs0b6jhCECIQYhASEKXJCo2TJWkvVXbHAUnwhDQhV3bTGbpvK7Bgp2loqwYoFCIJNUe268_yQE0qpGOnf1ZV8ks1kcXaRIFtzGpsTtCm2jDQ-kKMOHfU_g9-Kjx1vuBCsJkFvPD4zA8K6NeljFuKSLbzF9iKr-iRL-rJGVftCfbtKyiLK4oviqCeOhmeG4zOv2JzM6X0z4-GZ0fjMKzYnc3bfzGR4Zjw-84rNyZzfNzPwizesG1lrHvTXB92zwWLL9o3RslUlvypZHjV2uT5yxw3B2tjTZ7tY1vao-0AXDr1w5IcjLxz04PAcjr1w4jcnY8xTLzzzm2djzHMvvPCbFzeZ88PDbwAAAP__eQw40w== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM t WHERE v > 10 AND v < 50 ORDER BY v] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslM1uozAURvfzFKNvO3cUMORnWLHNLJIq6q5iQfFVhJRgZJuqVcW7V8GRClHjEIWlf46Pz-Z-olKSN_mRDZIXhCAIECIQYhDmyAi1VgUbo_TpigPW8h1JQCirurFu25b2wEigtGTNEgTJNi8P3bup-IOszQiF0ozk-_ZG_VX1bDW4nbUE1djzyxnB2HzPSKKWevawZ__h4ef89cA7ziXrWTD8zFtqQdg2NvmdhpQKXBOG9wj_q7I6--Khr9blMdcfF1ZKo6tiMRCL8aXhJKU3hL3S-bSl0fhSMUnpDWGvdDFtaTy-NJqk9IawV7qctjTwi3dsalUZHjUBgtMIYblnN3KManTBT1oVncYttx3XbUg21p3-c4t15Y5OH-zDoRcWflh44WAAh5dw5IVjvzl-xDz3wgu_efGIeemFV37z6i5z1v76CgAA___W2DtJ +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslM1uozAURvfzFKNvO3cUMORnWLHNLJIq6q5iQfFVhJRgZJuqVcW7V8GRClHjEIWlf46Pz-Z-olKSN_mRDZIXhCAIECIQYhDmyAi1VgUbo_TpigPW8h1JQCirurFu25b2wEigtGTNEgTJNi8P3bup-IOszQiF0ozk-_ZG_VX1bDW4nbUE1djzyxnB2HzPSKKWevawZ__h4ef89cA7ziXrWTD8zFtqQdg2NvmdhpQKXBOG9wj_q7I6--Khr9blMdcfF1ZKo6tiMRCL8aXhJKU3hL3S-bSl0fhSMUnpDWGvdDFtaTy-NJqk9IawV7qctjTwi3dsalUZHjUBgtMIYblnN3KManTBT1oVncYttx3XbUg21p3-c4t15Y5OH-zDoRcWflh44WAAh5dw5IVjvzl-xDz3wgu_efGIeemFV37z6i5z1v76CgAA___W2DtJ # Here we care about ordering by v, but v is not otherwise used. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT w FROM t WHERE v > 10 AND v < 50 ORDER BY v] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslL9uqzAYR_f7FFe_ta6CDflTJtZ0SKqoW8VA8acIKcHINlWrinevgiPVVK1DFEZsn-_4DPgTtZK0KY5kkL6Ag0GAIQZDAoY5coZGq5KMUfp0xAFr-Y40YqjqprVu2Vb2QEihtCRNEgySbFEd-rmZuEPe5Qyl0oT0-_RG3atmthqczjsG1drz5JzB2GJPSOOOeXbu2X8Z_Fy8HmhHhSQ9i4aXecssGLatTf9nnGUCfwn5NcJHVdVnXzL0Nbo6FvrDs8YhqxhYxfhMPknmBaGXOZ8wMx6fKSbJvCD0MhcTZibjM-NJMi8IvczlhJlR2Loj06ja0Ki_Pjo9GyT35J4Zo1pd0pNWZa9xn9ue6xckGet2H9zHunZbpwv6MA_CIgyLIBwNYP4TjoNwEjYnt5jnQXgRNi9uMS-D8CpsXl1lzrt_XwEAAP__NMo41Q== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslL9uqzAYR_f7FFe_ta6CDflTJtZ0SKqoW8VA8acIKcHINlWrinevgiPVVK1DFEZsn-_4DPgTtZK0KY5kkL6Ag0GAIQZDAoY5coZGq5KMUfp0xAFr-Y40YqjqprVu2Vb2QEihtCRNEgySbFEd-rmZuEPe5Qyl0oT0-_RG3atmthqczjsG1drz5JzB2GJPSOOOeXbu2X8Z_Fy8HmhHhSQ9i4aXecssGLatTf9nnGUCfwn5NcJHVdVnXzL0Nbo6FvrDs8YhqxhYxfhMPknmBaGXOZ8wMx6fKSbJvCD0MhcTZibjM-NJMi8IvczlhJlR2Loj06ja0Ki_Pjo9GyT35J4Zo1pd0pNWZa9xn9ue6xckGet2H9zHunZbpwv6MA_CIgyLIBwNYP4TjoNwEjYnt5jnQXgRNi9uMS-D8CpsXl1lzrt_XwEAAP__NMo41Q== # The single join reader should be on node 5, and doesn't need to output v. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT w FROM t WHERE v > 40 AND v < 50 ORDER BY v] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkT1rwzAQhvf-ivLOKrFsumjKmg5JCd2KB9U6gsHRCelcWoL_e7FVqF2I24z38byPOF3g2dHeninBvEJD4RG1QojcUEocx3Ze2rkPmEKh9aGXsV0rNBwJ5gJppSMY7PmBw6aEgiOxbTetDQrcyw-UxJ4IphrULFivB7_Yt46OZB3FTbGIx_tWoHDoxdxvNa7Z9C22J279t0wvZSG2Zxs_Z8rqqrJcKP-43JFSYJ_oX6crhlqB3Iny7yTuY0PPkZtJk8vDxE0NR0nytMrFzufR-MA5rFfhch0uV-HiF1wPd18BAAD__56h0KE= +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkT1rwzAQhvf-ivLOKrFsumjKmg5JCd2KB9U6gsHRCelcWoL_e7FVqF2I24z38byPOF3g2dHeninBvEJD4RG1QojcUEocx3Ze2rkPmEKh9aGXsV0rNBwJ5gJppSMY7PmBw6aEgiOxbTetDQrcyw-UxJ4IphrULFivB7_Yt46OZB3FTbGIx_tWoHDoxdxvNa7Z9C22J279t0wvZSG2Zxs_Z8rqqrJcKP-43JFSYJ_oX6crhlqB3Iny7yTuY0PPkZtJk8vDxE0NR0nytMrFzufR-MA5rFfhch0uV-HiF1wPd18BAAD__56h0KE= diff --git a/pkg/sql/opt/exec/execbuilder/testdata/distsql_interleaved_join b/pkg/sql/opt/exec/execbuilder/testdata/distsql_interleaved_join index 1896e966c18e..812702c40cd6 100644 --- a/pkg/sql/opt/exec/execbuilder/testdata/distsql_interleaved_join +++ b/pkg/sql/opt/exec/execbuilder/testdata/distsql_interleaved_join @@ -190,13 +190,13 @@ NULL /2/#/56/1/42/2/#/58/1/2 1 {1} 1 # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM parent1 JOIN child1 USING(pid1) WHERE pid1 >= 3 AND pid1 <= 5] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzMkkFr6zAQhO_vVzzm9B7dEstpL4aCryklKbkWH4S1SQSOZFZyaSn570VWoU5oQ9tTb5ZmZscf2hc4b3ip9xxQPUCBUIIwR0PoxbccgpckZePCPKEqCNb1Q8zX0caOUWFwXgwLGxAMR227pDeHhtB6YVTv1qW_9P2sPDES_BDfxjaEEPWWUZUHmlSrSfUHgxcusnSsH3nN2rDceutYZsVRE-54E5Hw7F7Lc91rYRcT-dpud1Ol3dnOJCHPAaHjTfxXq4v_N5K84ycIqyFWf2tFdUn1FdXX-IxGHdGUP6JRv5SmOE-z5tB7F_hLr16ktWGz5bxjwQ_S8r34dqzJx9WYGy8Mh5jVeT4sXJbSD07D6my4OAqr03D5rXBz-PMaAAD__y7yGHk= +# https://cockroachdb.github.io/distsqlplan/decode.html#eJzMkkFr6zAQhO_vVzzm9B7dEstpL4aCryklKbkWH4S1SQSOZFZyaSn570VWoU5oQ9tTb5ZmZscf2hc4b3ip9xxQPUCBUIIwR0PoxbccgpckZePCPKEqCNb1Q8zX0caOUWFwXgwLGxAMR227pDeHhtB6YVTv1qW_9P2sPDES_BDfxjaEEPWWUZUHmlSrSfUHgxcusnSsH3nN2rDceutYZsVRE-54E5Hw7F7Lc91rYRcT-dpud1Ol3dnOJCHPAaHjTfxXq4v_N5K84ycIqyFWf2tFdUn1FdXX-IxGHdGUP6JRv5SmOE-z5tB7F_hLr16ktWGz5bxjwQ_S8r34dqzJx9WYGy8Mh5jVeT4sXJbSD07D6my4OAqr03D5rXBz-PMaAAD__y7yGHk= # # # Swap parent1 and child1 tables. # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM child1 JOIN parent1 USING(pid1) WHERE pid1 >= 3 AND pid1 <= 5] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzMklFL-zAUxd__n-LPeVK8sqbDl4LQ14lsslfpQ2jutkCXlJtUFNl3lzSC3dChPvnW5JxzT3_kvsJ5w0u954DqEQqEEoQ5GkIvvuUQvCQpGxfmGVVBsK4fYr6ONnaMCoPzYljYgGA4atslvTk0hNYLo_qwLv2172fliZHgh_g-tiGEqLeMqjzQpFpNqj8ZvHCRpWP9xGvWhuXOW8cyK46acM-biIRn91pe6nZnO5PA13a7mwq9FnYxKXkOCB1v4kWtri5vJZnHTxBWQ6z-14rqkuo51Tf4ikYd0ZS_olF_lKY4T7Pm0HsX-FuvXqS1YbPlvGPBD9Lyg_h2rMnH1ZgbLwyHmNV5PixcltIPTsPqbLg4CqvTcPmjcHP49xYAAP__IiwYdw== +# https://cockroachdb.github.io/distsqlplan/decode.html#eJzMklFL-zAUxd__n-LPeVK8sqbDl4LQ14lsslfpQ2jutkCXlJtUFNl3lzSC3dChPvnW5JxzT3_kvsJ5w0u954DqEQqEEoQ5GkIvvuUQvCQpGxfmGVVBsK4fYr6ONnaMCoPzYljYgGA4atslvTk0hNYLo_qwLv2172fliZHgh_g-tiGEqLeMqjzQpFpNqj8ZvHCRpWP9xGvWhuXOW8cyK46acM-biIRn91pe6nZnO5PA13a7mwq9FnYxKXkOCB1v4kWtri5vJZnHTxBWQ6z-14rqkuo51Tf4ikYd0ZS_olF_lKY4T7Pm0HsX-FuvXqS1YbPlvGPBD9Lyg_h2rMnH1ZgbLwyHmNV5PixcltIPTsPqbLg4CqvTcPmjcHP49xYAAP__IiwYdw== # # # Select over two ranges for parent/child with split at grandchild key. # # Also, rows with pid1 <= 30 should have 4 rows whereas pid1 > 30 should @@ -204,7 +204,7 @@ NULL /2/#/56/1/42/2/#/58/1/2 1 {1} 1 # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM parent1 JOIN child1 ON parent1.pid1 = child1.pid1 WHERE parent1.pid1 >= 29 AND parent1.pid1 <= 31 ORDER BY parent1.pid1] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzUUcFq6zAQvL-veOypJSqxnOZiKOiaUpKSa_FBWBtH4EhmtS4twf9eJB0Sl6S0vfVm7czs7IyP4LzBtT5ggOoFJAhYQi2gJ99gCJ7iOJNW5g2qQoB1_cBxXAtoPCFUR2DLHUIFK8dIHepX3KI2SI_eOqR5XGuQte2SyxPuGKKHPWh6V70mdBw5W9vuz5FmbzsTgbwHBHS44xslZ7cPFLnpEwRsBq7-KylUKdRCqHuhllCPAvzAp2MD6xahkqO4EuiUw5NBQjM9W8kZ1OOF1Gt_5_t5OWFfcy8n7vJXdRZ_o84LgbYYeu8CfquqInaNpsX8b4IfqMFn8k2yyc9N0qWBwcAZlfmxcglKB56L5ZfixURcfBaXP3Kux38fAQAA__8x_hkU +# https://cockroachdb.github.io/distsqlplan/decode.html#eJzUUcFq6zAQvL-veOypJSqxnOZiKOiaUpKSa_FBWBtH4EhmtS4twf9eJB0Sl6S0vfVm7czs7IyP4LzBtT5ggOoFJAhYQi2gJ99gCJ7iOJNW5g2qQoB1_cBxXAtoPCFUR2DLHUIFK8dIHepX3KI2SI_eOqR5XGuQte2SyxPuGKKHPWh6V70mdBw5W9vuz5FmbzsTgbwHBHS44xslZ7cPFLnpEwRsBq7-KylUKdRCqHuhllCPAvzAp2MD6xahkqO4EuiUw5NBQjM9W8kZ1OOF1Gt_5_t5OWFfcy8n7vJXdRZ_o84LgbYYeu8CfquqInaNpsX8b4IfqMFn8k2yyc9N0qWBwcAZlfmxcglKB56L5ZfixURcfBaXP3Kux38fAQAA__8x_hkU # # # Parent-child where pid1 <= 15 have one joined row and pid1 > 15 have no # # joined rows (since child2 only has 15 rows up to pid1 = 15). @@ -216,13 +216,13 @@ NULL /2/#/56/1/42/2/#/58/1/2 1 {1} 1 # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM parent1 JOIN child2 USING(pid1) WHERE pid1 >= 12 ORDER BY pid1] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlD1rwzAQhvf-ivJOLbkSyx8ZDAWtKSUpWYsHY10Sg2MZSS4twf-92B4Sl6YfzuLN0t3j9x6BdESpFa_SA1vErxAg-CAEIIQgREgIldEZW6tN29IDS_WO2CPkZVW7djshZNow4iNc7gpGjGXp2BScvvGGU8XmSeclm7kHgmKX5kWX-MxbhzYjP6TmQ1ap4dK1Y2zy3f68ku3zQrWz9f8BoeCtu5Nidv9o2t7uE4R17eJbKUj6JEOSEckFkoaga3ca1rp0x4hFQxeETh7aKDashmNLMUPSfGO90g-6mkeD7kvp_iBdjDpOMd3j9EcJ-dMVCkYJBdMVCkcJhdMV-uVJ2rCtdGn5T7fTa683qx33z4HVtcn4xeisi-mX647rNhRb11dFv1iWXakb8BwWP8KLAex9hf1rkoNr4PAaOPoXnDQ3nwEAAP__9wcgdA== +# https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlD1rwzAQhvf-ivJOLbkSyx8ZDAWtKSUpWYsHY10Sg2MZSS4twf-92B4Sl6YfzuLN0t3j9x6BdESpFa_SA1vErxAg-CAEIIQgREgIldEZW6tN29IDS_WO2CPkZVW7djshZNow4iNc7gpGjGXp2BScvvGGU8XmSeclm7kHgmKX5kWX-MxbhzYjP6TmQ1ap4dK1Y2zy3f68ku3zQrWz9f8BoeCtu5Nidv9o2t7uE4R17eJbKUj6JEOSEckFkoaga3ca1rp0x4hFQxeETh7aKDashmNLMUPSfGO90g-6mkeD7kvp_iBdjDpOMd3j9EcJ-dMVCkYJBdMVCkcJhdMV-uVJ2rCtdGn5T7fTa683qx33z4HVtcn4xeisi-mX647rNhRb11dFv1iWXakb8BwWP8KLAex9hf1rkoNr4PAaOPoXnDQ3nwEAAP__9wcgdA== # # # These rows are all on the same node 1 (gateway). # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM parent1 JOIN child2 USING(pid1) WHERE pid1 IN (1, 11, 21, 31) ORDER BY pid1] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJyMUE1LxDAUvPsrZE6KD9ws6iEg5LoirvQqPYTmbTfQTcrLqyhL_7u0OagHwVvmIzOZnJFy4Bd_4gL7BoOWMEruuJQsC1UNu_ABuyHENE660C2hy8KwZ2jUgWGxS8oysH_nhn1gecoxsdxuQAisPg5rwzMfFEtHPHn5dKMXTmpAaGJ__Kl0xziELQg1B4SBD3rlzM31oyze9QjCflJ76Qy5Lbk7cvfkHtDOhDzp92OL-p5hzUz_H9RwGXMq_GvAX8mbuSVw6Ll-WsmTdPwquVtrKtyv91YicNGqmgp2qUpzO198BQAA___Vk4P- +# https://cockroachdb.github.io/distsqlplan/decode.html#eJyMUE1LxDAUvPsrZE6KD9ws6iEg5LoirvQqPYTmbTfQTcrLqyhL_7u0OagHwVvmIzOZnJFy4Bd_4gL7BoOWMEruuJQsC1UNu_ABuyHENE660C2hy8KwZ2jUgWGxS8oysH_nhn1gecoxsdxuQAisPg5rwzMfFEtHPHn5dKMXTmpAaGJ__Kl0xziELQg1B4SBD3rlzM31oyze9QjCflJ76Qy5Lbk7cvfkHtDOhDzp92OL-p5hzUz_H9RwGXMq_GvAX8mbuSVw6Ll-WsmTdPwquVtrKtyv91YicNGqmgp2qUpzO198BQAA___Vk4P- # # # Parent-grandchild. # query T @@ -233,7 +233,7 @@ NULL /2/#/56/1/42/2/#/58/1/2 1 {1} 1 # OR pid1 >= 31 AND pid1 <= 33 # ] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzslE9r3DAQxe_9FGJOu3RKLDlpqWBBhVJwKd5iemt9ENbEETiSkeTSEvzdi-0u8Yb0Xwohh71ZevPjDX6juQHnDZX6miLIz8ABQQDCBdQIffANxejDJC2FhfkGMkOwrh_SdF0jND4QyBtINnUEEgqXKHSkv1JF2lB4762jcJYBgqGkbTc7faDLBJOHvdbhu-p1IJcm-0lg72yXKEi22SjOvgxZljc7xnMpZVF-2rJ9tVJox_jrg_KmfMvWjOA_le1CraD8IAFCZdurdTtt0M40V7Yz4qA-ek_LfwOEji7TRvHn212YGpk_AWE_JMkURyVQnaO6QPUS1SuoRwQ_pNt8YtItgeQj_iLD2-gG54OhQOYoq3q8J-XSv_D9WX6n8H5rcWTNHzQ-_DQ-T2h8xIMyFKcMn1CGf1jjFcXeu0h_9cKzaUWQaWnZJ9EPoaGPwTezzXLcz9x8YSimReXLoXCzNDe4hvlv4fMjOLsLi_9xzv8JrsdnPwIAAP__gf0kvQ== +# https://cockroachdb.github.io/distsqlplan/decode.html#eJzslE9r3DAQxe_9FGJOu3RKLDlpqWBBhVJwKd5iemt9ENbEETiSkeTSEvzdi-0u8Yb0Xwohh71ZevPjDX6juQHnDZX6miLIz8ABQQDCBdQIffANxejDJC2FhfkGMkOwrh_SdF0jND4QyBtINnUEEgqXKHSkv1JF2lB4762jcJYBgqGkbTc7faDLBJOHvdbhu-p1IJcm-0lg72yXKEi22SjOvgxZljc7xnMpZVF-2rJ9tVJox_jrg_KmfMvWjOA_le1CraD8IAFCZdurdTtt0M40V7Yz4qA-ek_LfwOEji7TRvHn212YGpk_AWE_JMkURyVQnaO6QPUS1SuoRwQ_pNt8YtItgeQj_iLD2-gG54OhQOYoq3q8J-XSv_D9WX6n8H5rcWTNHzQ-_DQ-T2h8xIMyFKcMn1CGf1jjFcXeu0h_9cKzaUWQaWnZJ9EPoaGPwTezzXLcz9x8YSimReXLoXCzNDe4hvlv4fMjOLsLi_9xzv8JrsdnPwIAAP__gf0kvQ== # # query T # SELECT url FROM [EXPLAIN (DISTSQL) @@ -243,7 +243,7 @@ NULL /2/#/56/1/42/2/#/58/1/2 1 {1} 1 # OR pid1 >= 31 AND pid1 <= 33 # ] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzslE-L2zAQxe_9FGJOCZ2ylr1LqSCgQim4FKeY3lofhDXrFXglI8mlZfF3L7Yb4oT0Xwolh9wsvfnxBr_RPIF1mgr1SAHEJ-CAkALCHVQInXc1heD8KM2Fuf4KIkEwtuvjeF0h1M4TiCeIJrYEAnIbybekvlBJSpN_54wlf5MAgqaoTDs5vaf7CKOHeVT-m2y8srp-MK0e7UeRvTVtJC_YaiU5-9wnSVZvGM-EEHnxcc225UKhDeOvdsrr4g1bMin_oaxnagFlOwkQStM8LFvqlCcb-U757_3M_w0QWrqPK8mfrzd-bGT6BIRtHwWTHGWKMkN5i_IO5UuoBgTXx30-IaqGQPABf5LhPrreOq_Jkz7IqhpOpFy4F667yY4KT1unB9b8rPHh1_G5oPFJz8owvWZ4QRn-Zo2XFDpnA_3RC0_GFUG6oXmfBNf7mj54V08283E7cdOFphBnlc-H3E7S1OAS5r-Ebw_g5BhO_8U5-yu4Gp59DwAA__8zXSS0 +# https://cockroachdb.github.io/distsqlplan/decode.html#eJzslE-L2zAQxe_9FGJOCZ2ylr1LqSCgQim4FKeY3lofhDXrFXglI8mlZfF3L7Yb4oT0Xwolh9wsvfnxBr_RPIF1mgr1SAHEJ-CAkALCHVQInXc1heD8KM2Fuf4KIkEwtuvjeF0h1M4TiCeIJrYEAnIbybekvlBJSpN_54wlf5MAgqaoTDs5vaf7CKOHeVT-m2y8srp-MK0e7UeRvTVtJC_YaiU5-9wnSVZvGM-EEHnxcc225UKhDeOvdsrr4g1bMin_oaxnagFlOwkQStM8LFvqlCcb-U757_3M_w0QWrqPK8mfrzd-bGT6BIRtHwWTHGWKMkN5i_IO5UuoBgTXx30-IaqGQPABf5LhPrreOq_Jkz7IqhpOpFy4F667yY4KT1unB9b8rPHh1_G5oPFJz8owvWZ4QRn-Zo2XFDpnA_3RC0_GFUG6oXmfBNf7mj54V08283E7cdOFphBnlc-H3E7S1OAS5r-Ebw_g5BhO_8U5-yu4Gp59DwAA__8zXSS0 # # query TTT # EXPLAIN SELECT * FROM grandchild2 JOIN parent1 USING(pid1) WHERE @@ -278,7 +278,7 @@ NULL /2/#/56/1/42/2/#/58/1/2 1 {1} 1 # OR gcid2 >= 49 AND gcid2 <= 51 # ] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzslUFr2zAUx-_7FOKdHPJGLVluV0FAgzHIGMkIu20-GOs1NbhWkOSxUfLdh-3FrUs21gRy8tH668df8k_wHqG2hlb5A3lQ34ADggCEBBAkIKSQIeycLch769otPbA0P0HFCGW9a0K7nCEU1hGoRwhlqAgULOtArqL8B20oN-Q-2bImdxUDgqGQl1XX-JnuArQd5UPufunivqxMe4JNub1_HmxdXptxyj6WVSCnWBRFmrPvTRwntGCpUmq5-jpj71cf2BAUC3bzJ5ix9YZFkRYDwsWYEQPD5QE6UHKg5O2YkgOV8gMFCP29AaGiuxBpPkct5qiT-Wzh2muMlgBh3QTFNEctUCeoJeoU9TXqG9TvUN9CtkewTXj68T7kWwLF9_gXOU9Omto6Q47MSEK2P6JvZd_a3VX6YuPxajGq5ie9Cz69i0u8C3GSHDHJuYSc5CQ5ySTnEnLkSXLkJOfS4-6InA35na09_dc0i9txSGZL_ez0tnEFfXG26Gr6z3XHdQuGfOhT3n8s6y7qDvgc5v-Er0dw_BIW5zQn58DyHDh9FZzt3_wOAAD__-mfE2o= +# https://cockroachdb.github.io/distsqlplan/decode.html#eJzslUFr2zAUx-_7FOKdHPJGLVluV0FAgzHIGMkIu20-GOs1NbhWkOSxUfLdh-3FrUs21gRy8tH668df8k_wHqG2hlb5A3lQ34ADggCEBBAkIKSQIeycLch769otPbA0P0HFCGW9a0K7nCEU1hGoRwhlqAgULOtArqL8B20oN-Q-2bImdxUDgqGQl1XX-JnuArQd5UPufunivqxMe4JNub1_HmxdXptxyj6WVSCnWBRFmrPvTRwntGCpUmq5-jpj71cf2BAUC3bzJ5ix9YZFkRYDwsWYEQPD5QE6UHKg5O2YkgOV8gMFCP29AaGiuxBpPkct5qiT-Wzh2muMlgBh3QTFNEctUCeoJeoU9TXqG9TvUN9CtkewTXj68T7kWwLF9_gXOU9Omto6Q47MSEK2P6JvZd_a3VX6YuPxajGq5ie9Cz69i0u8C3GSHDHJuYSc5CQ5ySTnEnLkSXLkJOfS4-6InA35na09_dc0i9txSGZL_ez0tnEFfXG26Gr6z3XHdQuGfOhT3n8s6y7qDvgc5v-Er0dw_BIW5zQn58DyHDh9FZzt3_wOAAD__-mfE2o= # # query TTT # EXPLAIN @@ -309,7 +309,7 @@ NULL /2/#/56/1/42/2/#/58/1/2 1 {1} 1 # pid1 >= 10 AND pid1 <= 39 # ] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzUlVGrmzAUx9_3KS7n6V4WuEZtbysM3GPHto6OPQ0fgjm1gk0kiWOj-N1HlLVa2jisL74lOefv75z_CeYEQnL8yo6oIfoJFAj4QCAAAiEQWEBCoFQyRa2lsimtYMN_Q-QRyEVZGXucEEilQohOYHJTIESwEQZVgewX7pBxVJ9kLlC9WgRHw_KiIX7GvQHLyI9M_YlLplAYm2MDT9vKRE-x3e7y7NBNTA95wc-Bf4kkttW3JCBQ4N48x_T9ywdls5olEDgnB5DUBGRlLl1owzKEiNbk_zv9mGUKM2akel32u_v-48tzTC2zWfkvd4H-XeCFUwmpOCrkPUhSu0ui3tiagl5NdNS4_RmOe6DTjrdv04zbH2VtMENrBzrtWLuaxtpglLXhDK0d6LRj7Xoaa8NR1noztHag0461i-n__zeAO9SlFBqv3oHbX_bs-4A8w_Yx0bJSKX5TMm0w7Xbb6JoDjtq0UdpuNqIN2QK7YuoU-z0xvRb7bvIAOnCqQ7c4fKTuhVO8dJOXj5DfnOKVm7x6hLx2z8obuCbuS3bNTup3fwMAAP__hy1jzg== +# https://cockroachdb.github.io/distsqlplan/decode.html#eJzUlVGrmzAUx9_3KS7n6V4WuEZtbysM3GPHto6OPQ0fgjm1gk0kiWOj-N1HlLVa2jisL74lOefv75z_CeYEQnL8yo6oIfoJFAj4QCAAAiEQWEBCoFQyRa2lsimtYMN_Q-QRyEVZGXucEEilQohOYHJTIESwEQZVgewX7pBxVJ9kLlC9WgRHw_KiIX7GvQHLyI9M_YlLplAYm2MDT9vKRE-x3e7y7NBNTA95wc-Bf4kkttW3JCBQ4N48x_T9ywdls5olEDgnB5DUBGRlLl1owzKEiNbk_zv9mGUKM2akel32u_v-48tzTC2zWfkvd4H-XeCFUwmpOCrkPUhSu0ui3tiagl5NdNS4_RmOe6DTjrdv04zbH2VtMENrBzrtWLuaxtpglLXhDK0d6LRj7Xoaa8NR1noztHag0461i-n__zeAO9SlFBqv3oHbX_bs-4A8w_Yx0bJSKX5TMm0w7Xbb6JoDjtq0UdpuNqIN2QK7YuoU-z0xvRb7bvIAOnCqQ7c4fKTuhVO8dJOXj5DfnOKVm7x6hLx2z8obuCbuS3bNTup3fwMAAP__hy1jzg== # # ############### # # Outer joins # @@ -380,22 +380,22 @@ NULL /2/#/56/1/42/2/#/58/1/2 1 {1} 1 # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM outer_p1 FULL OUTER JOIN outer_c1 USING (pid1)] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzclE2L2zAQhu_9FWJOu3TK-nMPhoIuDTgYp5jkVEwx1iQ1OJKR5NIQ_N-L7EOaNP1Y5-abpdEzr585zBmkEpRXRzKQfAEfEAJACAEhAoQYSoROq5qMUdo9mYBU_IDEQ2hk11t3XSLUShMkZ7CNbQkSSKUl3VL1nQqqBOm1aiTpFxchyFZNOyZmtLfgMppjpU9c9Zb01849KprDt99LtStNrQBhe-ooYatdlrHNbvupYOtNmgNCS3v7xP33zx-16zJ-upYkBemEpat8l2VP3EcePiPjATIeIeMxMv4K5YCgensxM7Y6ECT-gH-wv0j3UmlBmsSVZTncmU-uPqjuJb55eD86uIr2Zw0-WMjgg1n24ULsw1n20ULso1n23kLs_7FwCzKdkob-a6N4biWRONC0v4zqdU2ftarHmOm4GbnxQpCxU9WfDqkcS-MP_gr7f4Vfr2DvFg4eSQ4fgaNH4PhNcDm8-xkAAP__5oReVw== +# https://cockroachdb.github.io/distsqlplan/decode.html#eJzclE2L2zAQhu_9FWJOu3TK-nMPhoIuDTgYp5jkVEwx1iQ1OJKR5NIQ_N-L7EOaNP1Y5-abpdEzr585zBmkEpRXRzKQfAEfEAJACAEhAoQYSoROq5qMUdo9mYBU_IDEQ2hk11t3XSLUShMkZ7CNbQkSSKUl3VL1nQqqBOm1aiTpFxchyFZNOyZmtLfgMppjpU9c9Zb01849KprDt99LtStNrQBhe-ooYatdlrHNbvupYOtNmgNCS3v7xP33zx-16zJ-upYkBemEpat8l2VP3EcePiPjATIeIeMxMv4K5YCgensxM7Y6ECT-gH-wv0j3UmlBmsSVZTncmU-uPqjuJb55eD86uIr2Zw0-WMjgg1n24ULsw1n20ULso1n23kLs_7FwCzKdkob-a6N4biWRONC0v4zqdU2ftarHmOm4GbnxQpCxU9WfDqkcS-MP_gr7f4Vfr2DvFg4eSQ4fgaNH4PhNcDm8-xkAAP__5oReVw== # # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM outer_gc1 FULL OUTER JOIN outer_c1 USING (pid1, cid1, cid2)] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzklU2LnEAQhu_5FVKnHabC-rlJhEBfsuAiTpCdU5Agdq0R3G7pbkOWwf8eWiEzTiYf6xw9Vlc9_crTUB5ASE5Z-Uwa4i_gAYIPCAEghIAQQYHQKVmR1lLZkQlI-A-IXYRGdL2xxwVCJRVBfADTmJYghkQYUi2V3ymnkpN6kI0gdWsjOJmyacfElJ4M2IzmuVQvTPaG1Ne6slN5U3_7vTe2prsA4fGlo9i536eps9s_fsqdh12SAUJLT-aGeVtk_hZZsN18VPa22ZGNIMFJxU5yn-3T9IZ5yO42-Kv0kb07KQNk7zfosBAdFqHDPkAxIMjeHCVoU9YEsTfgH0Qd_fRCKk6K-ExIMVxQmcm3sruNzgYvR_uzaG_RG_nreyN_kahgfaKCRaLC9YkKF4ly1yfqH_-RnHQnhab_2n6uXZ_Ea5p2rZa9quizktUYM5W7kRsPOGkzdb2pSMTYGj_wFPb-Ct_NYPcc9q9JDq6Bw2vg6FVwMbz5GQAA__8alY8h +# https://cockroachdb.github.io/distsqlplan/decode.html#eJzklU2LnEAQhu_5FVKnHabC-rlJhEBfsuAiTpCdU5Agdq0R3G7pbkOWwf8eWiEzTiYf6xw9Vlc9_crTUB5ASE5Z-Uwa4i_gAYIPCAEghIAQQYHQKVmR1lLZkQlI-A-IXYRGdL2xxwVCJRVBfADTmJYghkQYUi2V3ymnkpN6kI0gdWsjOJmyacfElJ4M2IzmuVQvTPaG1Ne6slN5U3_7vTe2prsA4fGlo9i536eps9s_fsqdh12SAUJLT-aGeVtk_hZZsN18VPa22ZGNIMFJxU5yn-3T9IZ5yO42-Kv0kb07KQNk7zfosBAdFqHDPkAxIMjeHCVoU9YEsTfgH0Qd_fRCKk6K-ExIMVxQmcm3sruNzgYvR_uzaG_RG_nreyN_kahgfaKCRaLC9YkKF4ly1yfqH_-RnHQnhab_2n6uXZ_Ea5p2rZa9quizktUYM5W7kRsPOGkzdb2pSMTYGj_wFPb-Ct_NYPcc9q9JDq6Bw2vg6FVwMbz5GQAA__8alY8h # # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM outer_c1 LEFT OUTER JOIN outer_p1 USING (pid1) WHERE pid1 >= 0 AND pid1 < 40] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzUlE-Lo0AQxe_7KeSddtlaYqu7B2HBSwYMIQ6SOQ0yiF3JCMaW7naYEPzug3rIJJP5l5xys_v1q1e_gnKHWkle5Bs2CO8hQPBA8EEIkBEarQo2RuleHh_H8hmhSyjrprX9dUYolGaEO9jSVowQcW1ZV5w_ccq5ZD1TZc164oIg2eZlNaTNeWXRZ5SbXG8j1VrWD0XfQ1quH99KTS-NpUBYbhsOnfn0Zukkd8tp6sySeAFCxSv7MxK_f_3XfZXhE4SktaETCYo8inyKAor-IesIqrV7DmPzNSMUHb3Dukdsa6Ula5YHTFl3YhoL9Uc1k-Do4elo7yBanDVmcZVj9s5i9a6S1T-L1b9K1k9-FSmbRtWGv7Qdbr9eLNc87qJRrS74VqtiiBmPyeAbLiQbO6piPMT1IA0NvjaLD81_D8zusdm7JNm_xBx8y5x1P14CAAD___ca6HA= +# https://cockroachdb.github.io/distsqlplan/decode.html#eJzUlE-Lo0AQxe_7KeSddtlaYqu7B2HBSwYMIQ6SOQ0yiF3JCMaW7naYEPzug3rIJJP5l5xys_v1q1e_gnKHWkle5Bs2CO8hQPBA8EEIkBEarQo2RuleHh_H8hmhSyjrprX9dUYolGaEO9jSVowQcW1ZV5w_ccq5ZD1TZc164oIg2eZlNaTNeWXRZ5SbXG8j1VrWD0XfQ1quH99KTS-NpUBYbhsOnfn0Zukkd8tp6sySeAFCxSv7MxK_f_3XfZXhE4SktaETCYo8inyKAor-IesIqrV7DmPzNSMUHb3Dukdsa6Ula5YHTFl3YhoL9Uc1k-Do4elo7yBanDVmcZVj9s5i9a6S1T-L1b9K1k9-FSmbRtWGv7Qdbr9eLNc87qJRrS74VqtiiBmPyeAbLiQbO6piPMT1IA0NvjaLD81_D8zusdm7JNm_xBx8y5x1P14CAAD___ca6HA= # # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM outer_p1 RIGHT OUTER JOIN outer_gc1 USING (pid1) WHERE pid1 >= 1 AND pid1 <= 20] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzUlE9r20AQxe_9FOKdWjrF-ucWBIW9lFamWEW4pyCC0I4VgawVu6sQY_Tdg6SDY8f5Z5980-7bN29-A6MdGiV5mW_YILqBB4IPQgBCiIzQalWwMUoP8vQ4lg-IXELVtJ0drjNCoTQj2sFWtmZEiBvLuub8nlPOJeuFqhrWMxcEyTav6jHtL68thoxqk-utUJ1lfdsOPaRVefdcKotBm2qBsNq2HDlp_PvPykn-r36lziKJlyDUvLafhff1y0891Bk_QUg6GzkiIOGTCEnMSXwn8QNZT1Cd3cMYm5eMyOvpBeA9Z9coLVmzPADL-hMjWapvqp2FRw9PR_sH0d5Zs_aud9b-WcD-9QIHZwEH1wv8xu8jZdOqxvC7lsUdto1lydNqGtXpgv9pVYwx0zEZfeOFZGMn1ZsOcTNKY4NPzd6r5vmB2T02-5ckB5eYww-Zs_7TYwAAAP__Vjbt9A== +# https://cockroachdb.github.io/distsqlplan/decode.html#eJzUlE9r20AQxe_9FOKdWjrF-ucWBIW9lFamWEW4pyCC0I4VgawVu6sQY_Tdg6SDY8f5Z5980-7bN29-A6MdGiV5mW_YILqBB4IPQgBCiIzQalWwMUoP8vQ4lg-IXELVtJ0drjNCoTQj2sFWtmZEiBvLuub8nlPOJeuFqhrWMxcEyTav6jHtL68thoxqk-utUJ1lfdsOPaRVefdcKotBm2qBsNq2HDlp_PvPykn-r36lziKJlyDUvLafhff1y0891Bk_QUg6GzkiIOGTCEnMSXwn8QNZT1Cd3cMYm5eMyOvpBeA9Z9coLVmzPADL-hMjWapvqp2FRw9PR_sH0d5Zs_aud9b-WcD-9QIHZwEH1wv8xu8jZdOqxvC7lsUdto1lydNqGtXpgv9pVYwx0zEZfeOFZGMn1ZsOcTNKY4NPzd6r5vmB2T02-5ckB5eYww-Zs_7TYwAAAP__Vjbt9A== # # ######################## # # Non-interleaved joins # @@ -406,37 +406,37 @@ NULL /2/#/56/1/42/2/#/58/1/2 1 {1} 1 # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM child1 JOIN child2 USING(pid1)] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzElsFq20AQhu99ijCnlmyxdyXZsaCgawpNSuit-KBYU1vgaM1Kgobgdy-yCq5ldUabwfLNsvbbnZ35QP8bFDbDh_QFS4h_ggYFBhQEoCAEBREsFeycXWFZWtcsaYH77DfEUwV5saur5u-lgpV1CPEbVHm1RYjhR_q8xSdMM3STKSjIsErz7eGYnctfUvearDb5NtOw3CuwdfV3q-MOz683m7TcnLJJs36poKzSNUKs9-p9JUVESUZUkvlvScd9rMvQYdbd57Y5eNCqntt9Q7fGrzYv0E10p-Nb_FV9TPTtpy8uX2_an6Dgsa7im0SrxKgkUEmkkplK5p3bH28WDLhZXfRV3Vvwg_1sdxMddVb2nx2enK2HD1qP5J5HSbOR3NPXcU9f3j0zvNlmpPl7lDQfaf7mOvM3l59_MLzZwUjz9yjpbqT5B9eZf3D5-YfDmx2ONH-PkhYjzT-8zvzDcbNHTzlPWO5sUeKgZDFtLoTZGts2lbZ2K_zu7OpwTPv4eOAOX9QMy6p9a9qH-6J91RQ4HJ5J4IUE1qK6dUTT2qNlxg-eSeCFBNaiujstO6NNl57-Swd0vwMS1qc9m3bpUCI4DTOC0zAjOA1zgjM0I3gkEZyGGcFpmBGchjnBGZoRfCYRfC5RlIYZRWmYUZSGOUUZmlH0TqIoDTOK0jCjKA1zijI0o-hCoqgW5QSGZiRlaMZShuY05XAuK8jCgiwtyOKCMC_IAoMWJQZ9Fhm8bKVpzlaa5myladZWBuds9QlL5zPzSUu-NGerV17yxjlbz8IDaety_-FPAAAA__-7ahyi +# https://cockroachdb.github.io/distsqlplan/decode.html#eJzElsFq20AQhu99ijCnlmyxdyXZsaCgawpNSuit-KBYU1vgaM1Kgobgdy-yCq5ldUabwfLNsvbbnZ35QP8bFDbDh_QFS4h_ggYFBhQEoCAEBREsFeycXWFZWtcsaYH77DfEUwV5saur5u-lgpV1CPEbVHm1RYjhR_q8xSdMM3STKSjIsErz7eGYnctfUvearDb5NtOw3CuwdfV3q-MOz683m7TcnLJJs36poKzSNUKs9-p9JUVESUZUkvlvScd9rMvQYdbd57Y5eNCqntt9Q7fGrzYv0E10p-Nb_FV9TPTtpy8uX2_an6Dgsa7im0SrxKgkUEmkkplK5p3bH28WDLhZXfRV3Vvwg_1sdxMddVb2nx2enK2HD1qP5J5HSbOR3NPXcU9f3j0zvNlmpPl7lDQfaf7mOvM3l59_MLzZwUjz9yjpbqT5B9eZf3D5-YfDmx2ONH-PkhYjzT-8zvzDcbNHTzlPWO5sUeKgZDFtLoTZGts2lbZ2K_zu7OpwTPv4eOAOX9QMy6p9a9qH-6J91RQ4HJ5J4IUE1qK6dUTT2qNlxg-eSeCFBNaiujstO6NNl57-Swd0vwMS1qc9m3bpUCI4DTOC0zAjOA1zgjM0I3gkEZyGGcFpmBGchjnBGZoRfCYRfC5RlIYZRWmYUZSGOUUZmlH0TqIoDTOK0jCjKA1zijI0o-hCoqgW5QSGZiRlaMZShuY05XAuK8jCgiwtyOKCMC_IAoMWJQZ9Fhm8bKVpzlaa5myladZWBuds9QlL5zPzSUu-NGerV17yxjlbz8IDaety_-FPAAAA__-7ahyi # # # Join on non-interleaved tables (with key) uses merge joiner. # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM parent1 JOIN parent2 ON pid1=pid2] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lVFr2zAQx9_3Kco9bVQjluykqWHg1w7WjrK34Qc1uiWG1DKSDCsl333YLmQxic5GRG9xrJ_u_r8D3zvUWuGjfEUL-W_gwEAAgxQYZMBgCSWDxugNWqtNd2QAHtRfyBMGVd20rvu7ZLDRBiF_B1e5PUIOv-TLHp9RKjSLBBgodLLa92UaU71K81Y00mDtOJQHBrp1H3cdr3h5u9lJuzuFi-58ycA6uUXI-YFd6Ol4jzYKDarxPbdd4eOptj53rq81zvYDzRa_66pGs1idXrvHP-5zwW-_fDPVdjf8BAZPrctvCs4KwYqUFdko8zFPOiHPjE4f9VfdLDgfnTxfOzupzafPl8eaL48_37trzldMdyxiORbxHa-v6Tid7jiN5TiN7_j-mo6z6Y6zWI5n9LT09SSCehIXe4o0d57EWlBnGnlG2-ja4qT1k3RRUG1xsGN1azb40-hNX2Z4fOq5fhEotG54-_HwUA-vuganw1kIvAqB1yEwJ0LzMZ38Tws_LLwwP6WTMZ2GDMsPE8Pyw8Sw_DAxLCIzEToLGdYyRLcfJnT7YUK3HyZ0E5mJ0KsQ3Xchuv0wodsPE7r9MKGbyEyEXofovg_R7YcJ3X6Y0O2HCd1EZurLP2dZipl0FkSvguh1EM2p4PM2Znn49C8AAP__9ASy7Q== +# https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lVFr2zAQx9_3Kco9bVQjluykqWHg1w7WjrK34Qc1uiWG1DKSDCsl333YLmQxic5GRG9xrJ_u_r8D3zvUWuGjfEUL-W_gwEAAgxQYZMBgCSWDxugNWqtNd2QAHtRfyBMGVd20rvu7ZLDRBiF_B1e5PUIOv-TLHp9RKjSLBBgodLLa92UaU71K81Y00mDtOJQHBrp1H3cdr3h5u9lJuzuFi-58ycA6uUXI-YFd6Ol4jzYKDarxPbdd4eOptj53rq81zvYDzRa_66pGs1idXrvHP-5zwW-_fDPVdjf8BAZPrctvCs4KwYqUFdko8zFPOiHPjE4f9VfdLDgfnTxfOzupzafPl8eaL48_37trzldMdyxiORbxHa-v6Tid7jiN5TiN7_j-mo6z6Y6zWI5n9LT09SSCehIXe4o0d57EWlBnGnlG2-ja4qT1k3RRUG1xsGN1azb40-hNX2Z4fOq5fhEotG54-_HwUA-vuganw1kIvAqB1yEwJ0LzMZ38Tws_LLwwP6WTMZ2GDMsPE8Pyw8Sw_DAxLCIzEToLGdYyRLcfJnT7YUK3HyZ0E5mJ0KsQ3Xchuv0wodsPE7r9MKGbyEyEXofovg_R7YcJ3X6Y0O2HCd1EZurLP2dZipl0FkSvguh1EM2p4PM2Znn49C8AAP__9ASy7Q== # # # Join on non-interleaved column uses hash joiner. # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM parent1 JOIN child1 ON pa1 = ca1] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJy8llFr2zwUhu-_X1HOVQv6SCTZaWMY-HLdRTvK7oYv3PgsMaSWkRVYKfnvI_Egi-PpWDtEl2nySK_OeaDvBzSmwqfyDTvIvoMEAQoEaBCQgIAUCgGtNSvsOmMPP-mBx-onZHMBddPu3OHPhYCVsQjZB7jabREy-Fa-bvEFywrtbA4CKnRlvT1e09r6rbTveVtabJyEYi_A7Nzvs05HvL7fbMpucw7nCop9IaBz5Rohk3vxb5nS8UyrTb2tQiPps0jqr5FO5-waYyu0WJ2dVBxI6icj7_pcdpsvpm7QzuRg1lv84W5zdffJ1uuNu831HQh43rnsJpciVyLXIk9Eng5efHqNZrxmJOqT-d-0M5kO3z16d3J2t5y-XBlLuIBMi0jCycjCyasKp6YPWMVaekCm-0hLV5GXrq66dD19wDrW0gMyPURauo68dH3VpSfTB5zEWnpApmWkpSeRl55E6xMjQV6wa03T4aS2MD88Bas19qPpzM6u8Ks1q-M1_cfnI3f8J1lh5_pvVf_hsem_OgScDi848JIDS1ZumfppGTAyFQYvOPCSA0tW7sHILmg1pOd_0to_b-2F5fnM5kM64QjuhwnB_TAhuB-mBCdoQvCUI7gfJgT3w4TgfpgSnKAJwRccwe85ivphQlE_TCjqhylFCZpQ9IGjqB8mFPXDhKJ-mFKUoAlFlxxFJasnEDQhKUETlhI0pSmFU12BVxZ4bYFXF5h9gVcYJKsxyIvKEGSrn6Zs9dOUrX6atJXAKVtDytLlzkLaUihN2RrUl4JxytaL8uC1tdj_9ysAAP__U3kYdA== +# https://cockroachdb.github.io/distsqlplan/decode.html#eJy8llFr2zwUhu-_X1HOVQv6SCTZaWMY-HLdRTvK7oYv3PgsMaSWkRVYKfnvI_Egi-PpWDtEl2nySK_OeaDvBzSmwqfyDTvIvoMEAQoEaBCQgIAUCgGtNSvsOmMPP-mBx-onZHMBddPu3OHPhYCVsQjZB7jabREy-Fa-bvEFywrtbA4CKnRlvT1e09r6rbTveVtabJyEYi_A7Nzvs05HvL7fbMpucw7nCop9IaBz5Rohk3vxb5nS8UyrTb2tQiPps0jqr5FO5-waYyu0WJ2dVBxI6icj7_pcdpsvpm7QzuRg1lv84W5zdffJ1uuNu831HQh43rnsJpciVyLXIk9Eng5efHqNZrxmJOqT-d-0M5kO3z16d3J2t5y-XBlLuIBMi0jCycjCyasKp6YPWMVaekCm-0hLV5GXrq66dD19wDrW0gMyPURauo68dH3VpSfTB5zEWnpApmWkpSeRl55E6xMjQV6wa03T4aS2MD88Bas19qPpzM6u8Ks1q-M1_cfnI3f8J1lh5_pvVf_hsem_OgScDi848JIDS1ZumfppGTAyFQYvOPCSA0tW7sHILmg1pOd_0to_b-2F5fnM5kM64QjuhwnB_TAhuB-mBCdoQvCUI7gfJgT3w4TgfpgSnKAJwRccwe85ivphQlE_TCjqhylFCZpQ9IGjqB8mFPXDhKJ-mFKUoAlFlxxFJasnEDQhKUETlhI0pSmFU12BVxZ4bYFXF5h9gVcYJKsxyIvKEGSrn6Zs9dOUrX6atJXAKVtDytLlzkLaUihN2RrUl4JxytaL8uC1tdj_9ysAAP__U3kYdA== # # # Prefix join on interleaved columns uses merge joiner. # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM child2 JOIN grandchild2 USING(pid1, cid2)] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzEll1r2zAUhu_3K8q52qhGItn5Mgx828HaUXY3cuFGZ47BtYxsw0rJfx-2C1kcT8eainzp2I_06uiBvK9QKIn3yTNWEP0EDgwEMAiAQQgMVrBnUGp1wKpSuv2kB-7kb4iWDLKibOr25z2Dg9II0SvUWZ0jRPAjecrxEROJerEEBhLrJMu7bUqdPSf6JT4cs1wK2J8YqKZ-W-q8wtPLzTGpjpdszFncInsGVZ2kCBE_sf9LtRpPleqkkO8TTfwz2nkppSVqlMOlblksbtv9J385ctpvqFP8qrIC9YIPLiHHX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uif9UGnA6vXeCdC8ydcvOVmeYWIxN28NoF3rnA3Cn3YGRXtBjSy7_pwDzvwAjzy5kth3ToIrgZJgQ3w4TgZpgSnKAJwVcugpthQnAzTAhuhinBCZoQfO0i-MZFUTNMKGqGCUXNMKUoQROKbl0UNcOEomaYUNQMU4oSNKHozkVR7tQTCJqQlKAJSwma0pTCqa7gVhbc2oJbXXDsC26FgTs1Bn5VGaxsNdOUrWaastVMk7YSOGWrTVm6vjObtmRLU7Za9SVrnLL1qjwYbd2fPvwJAAD__4eyQAE= # # # Subset join on interleaved columns uses hash joiner. # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM child2 JOIN grandchild2 USING(pid1, cid3)] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzElsGK2zAQhu99imVOLagkkp1sYij42O1htyy9FR-80TQxZK0gOdBlybsX2y1pHFdjdYp6VOxP-jX-IP8r1EbjffmMDrKvIEGAAgEJCEhBwAIKAQdrNuicse0rPXCnv0M2F1DVh2PT_lwI2BiLkL1CUzV7hAy-lE97fMRSo53NQYDGpqz23TEHWz2X9iXf7Kq9VlCcBJhj83Or8w5PLze70u0u2VyKPIHiVAhwTblFyORJ_F2qxXiqrS1r_W-iqT9GO291rI3VaFFfbFa0JPXKyP0-lm73yVQ12pkcTH2P35q3XcZ3H2y13f1agICHY5PddCuRK5GnIl-KfCXy9WAA55sljJuNxL43781hJhfDGYyenV6cLad_cBlPw4BUy8gaysgaymgaqulDV_FUCEh1G1kFFVkFFU2FZPrQk3gqBKRaRVYhiaxCEk2FdPrQ03gqBKRaR1YhjaxC-l96ykioR3QHUzuc1ELm7bVQb7EfkzNHu8HP1my6Y_rlQ8d1f7kaXdM_Vf3iru4ftQGnw0sOvObAkpVbLvy0DBiZCoOXHHjNgSUr92BkV7Qa0vPf6cQ_78QLy8uZzYd0yhHcDxOC-2FCcD9MCU7QhOALjuB-mBDcDxOC-2FKcIImBF9yBL_lKOqHCUX9MKGoH6YUJWhC0RVHUT9MKOqHCUX9MKUoQROKrjmKSlZPIGhCUoImLCVoSlMKp7oCryzw2gKvLjD7Aq8wSFZjkFeVIchWP03Z6qcpW_00aSuBU7aGlKXrbxbSlkJpytagvhSMU7ZelQevrcXpzY8AAAD__5b5Mtw= +# https://cockroachdb.github.io/distsqlplan/decode.html#eJzElsGK2zAQhu99imVOLagkkp1sYij42O1htyy9FR-80TQxZK0gOdBlybsX2y1pHFdjdYp6VOxP-jX-IP8r1EbjffmMDrKvIEGAAgEJCEhBwAIKAQdrNuicse0rPXCnv0M2F1DVh2PT_lwI2BiLkL1CUzV7hAy-lE97fMRSo53NQYDGpqz23TEHWz2X9iXf7Kq9VlCcBJhj83Or8w5PLze70u0u2VyKPIHiVAhwTblFyORJ_F2qxXiqrS1r_W-iqT9GO291rI3VaFFfbFa0JPXKyP0-lm73yVQ12pkcTH2P35q3XcZ3H2y13f1agICHY5PddCuRK5GnIl-KfCXy9WAA55sljJuNxL43781hJhfDGYyenV6cLad_cBlPw4BUy8gaysgaymgaqulDV_FUCEh1G1kFFVkFFU2FZPrQk3gqBKRaRVYhiaxCEk2FdPrQ03gqBKRaR1YhjaxC-l96ykioR3QHUzuc1ELm7bVQb7EfkzNHu8HP1my6Y_rlQ8d1f7kaXdM_Vf3iru4ftQGnw0sOvObAkpVbLvy0DBiZCoOXHHjNgSUr92BkV7Qa0vPf6cQ_78QLy8uZzYd0yhHcDxOC-2FCcD9MCU7QhOALjuB-mBDcDxOC-2FKcIImBF9yBL_lKOqHCUX9MKGoH6YUJWhC0RVHUT9MKOqHCUX9MKUoQROKrjmKSlZPIGhCUoImLCVoSlMKp7oCryzw2gKvLjD7Aq8wSFZjkFeVIchWP03Z6qcpW_00aSuBU7aGlKXrbxbSlkJpytagvhSMU7ZelQevrcXpzY8AAAD__5b5Mtw= # # # Sort node in between join and child nodes produces hash joiner. # query T # SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM parent1 JOIN (SELECT * FROM child1 ORDER BY cid1) USING(pid1)] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lk9vm0wQxu_vp4jm9FbdKuyC_yFV4tj0kFRpbxUHYrYxksOiBUuNonz3ClMrApx9mGK41bV_zOzsb_LwQrlJ9W3ypEsKf5IkQYoE-SQoIEELigUV1mx1WRpb_6QBbtLfFHqCsrw4VPV_x4K2xmoKX6jKqr2mkH4kD3t9r5NU22uPBKW6SrL9sUxhs6fEPkdFYnVeSYpfBZlD9fdZb494eL7aJeWuDUf172NBZZU8agrlq_i3nhbne9rusn3abemtnOKU-25spe217Bw_Uh9HHdl_t4e35xxyY1Ntddp6UlyT6CdnDvIlKXdfTZbXh-nMba9_Vf9H8sNnmz3ujv8iQXeHKryKpIiUiAIRLd4dZzDiKGf6vDWfTHGtvO6hz9ZetGrL4ebIuWxm9LS8gM2g3MlmOaXNcmabl9PZrIbfnprLKEZPqwsYBcqdjFJTGqVmNmo1nVH-8Nvz5zKK0dP6AkaBciej_CmN8mc2aj2dUcHw2wvmMorR0-YCRoFyJ6OCKY0KZjZqM8873Jku7nVZmLzUg97QvPocOn3UzVxKc7Bb_c2a7bFM8_HuyB1fHFJdVs23fvPhJm--qhscDq_HwFKNopdjaOW5admlvRbdgr0urBgDVzx4PQbuDJxLL8fQnYH3aN858MB9W4H7tqT7uhZj9sMNg_1ww2g_AA32w02j_Vg6J75yD3w1Zj_cMNgPN4z2A9BgP9w02o_1mP3YjDHcDQPD3TAyHNDAcDcNE6AXIK2JS_BHRfYShCM5oIHlgEaaIxx4DnAkuuzlCMd02csRjuqABq4DGsmOcGA7wKHu7gyVC6A7J0T7d85JUS4NdWflKBeHuruTFOnOiVIujXRnhSkbR7qz4rSPu_NUboDunETt3zknUrk01J0Vqlwc6a7cqdrVPX79708AAAD__3t4GdI= +# https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lk9vm0wQxu_vp4jm9FbdKuyC_yFV4tj0kFRpbxUHYrYxksOiBUuNonz3ClMrApx9mGK41bV_zOzsb_LwQrlJ9W3ypEsKf5IkQYoE-SQoIEELigUV1mx1WRpb_6QBbtLfFHqCsrw4VPV_x4K2xmoKX6jKqr2mkH4kD3t9r5NU22uPBKW6SrL9sUxhs6fEPkdFYnVeSYpfBZlD9fdZb494eL7aJeWuDUf172NBZZU8agrlq_i3nhbne9rusn3abemtnOKU-25spe217Bw_Uh9HHdl_t4e35xxyY1Ntddp6UlyT6CdnDvIlKXdfTZbXh-nMba9_Vf9H8sNnmz3ujv8iQXeHKryKpIiUiAIRLd4dZzDiKGf6vDWfTHGtvO6hz9ZetGrL4ebIuWxm9LS8gM2g3MlmOaXNcmabl9PZrIbfnprLKEZPqwsYBcqdjFJTGqVmNmo1nVH-8Nvz5zKK0dP6AkaBciej_CmN8mc2aj2dUcHw2wvmMorR0-YCRoFyJ6OCKY0KZjZqM8873Jku7nVZmLzUg97QvPocOn3UzVxKc7Bb_c2a7bFM8_HuyB1fHFJdVs23fvPhJm--qhscDq_HwFKNopdjaOW5admlvRbdgr0urBgDVzx4PQbuDJxLL8fQnYH3aN858MB9W4H7tqT7uhZj9sMNg_1ww2g_AA32w02j_Vg6J75yD3w1Zj_cMNgPN4z2A9BgP9w02o_1mP3YjDHcDQPD3TAyHNDAcDcNE6AXIK2JS_BHRfYShCM5oIHlgEaaIxx4DnAkuuzlCMd02csRjuqABq4DGsmOcGA7wKHu7gyVC6A7J0T7d85JUS4NdWflKBeHuruTFOnOiVIujXRnhSkbR7qz4rSPu_NUboDunETt3zknUrk01J0Vqlwc6a7cqdrVPX79708AAAD__3t4GdI= # # query TTT # EXPLAIN SELECT * FROM parent1 JOIN (SELECT * FROM child1 ORDER BY cid1) USING (pid1) @@ -464,7 +464,7 @@ NULL /2/#/56/1/42/2/#/58/1/2 1 {1} 1 # ORDER BY pid1 # ] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzcls9u2kAQh-99imhOrbIV7NpAsFTJV6o2qVBvlQ8OnoAlx4vWS9Uo4t0rYxLMn-xgRhiJo7377c7OfIffK-Q6w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goCHhQ1uQilCJUJPhL4IBxAtBeiFXRe-qffx5WYWF7Pt8kIJ0TISUNh4ihDIpTi-Ab_jx2z99k5v-9i3B81jg7mVrJrUhzVtztEmQYPJ7jm35cVH7TrwvJ9oprgeqtyZ6ttYaiM5PI7e_kQ2L_N4LztQ873-qucduT2Nj673t66XJ9kur8d2ogF12_tt2S4vY7s8v-3qJN3U9ehGNKCu26At3dRldFPn1807STfvenQjGlDX7a4t3bzL6OadXzf_JN3869GNaEBdt2FbuvmX0c1vNzoeKGeMxVznBR6VCrvlgzCZYtWmQi_MBH8ZPVldU30-rLhVPEmwsNWqqj5GebVUFng83OfAQw4sWXXLnpuWDVqmmsF9DjzkwJJV907L9mi1S3frtOfut-eE5XbPuru0zxHcDROCu2FCcDdMCU7QhOA9juBumBDcDROCu2FKcIImBO9zBB9wFHXDhKJumFDUDVOKEjSh6B1HUTdMKOqGCUXdMKUoQROKDjmKSlZOIGhCUoImLCVoSlMKp7ICLyzw0gIvLjDzAi8wSFZikHuRoZGtbpqy1U1Ttrpp0lYCp2xtEpb2Z9YkLTWlKVsb5aXGOGXrXnhw2hotP_0PAAD__9pnwiY= # # # Multi-table join with parent1 and child1 at the bottom uses interleaved # # joiner but induces a hash joiner on the higher join. @@ -475,4 +475,4 @@ NULL /2/#/56/1/42/2/#/58/1/2 1 {1} 1 # JOIN grandchild1 USING (pid1, cid1) # ] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzUls-K2zAQh-99imVOLVXZSLbzx1DwsSllt4Teig_aeDYxeK0gK6XLkncvjrPEdlJNHIEgtzjSJ81ovsPvDUqV4YN8wQri38CBgQAGATAIgUEEKYONVkusKqXrLQ0wz_5CPGKQl5utqf9OGSyVRojfwOSmQIhhXhrUBco_uECZof6u8hL1_QgYZGhkXuxv_IHPBuo78hepX5ON1FiauoxFvlq3V5brvMjqheYcYFDgs_mY8M-fvup67_4nMHjcmvgu4SwRLAlZEkG6Y6C25lDpscCn17u1rNbdemowgHSXMqiMXCHEfMcub_qXfCoO_d5H3ZPfG1lpWWaHbgaXJjqlif-WdjxqWyqdocasc1hak9SWM_19k9X6MEjem-RhHCwJjgNhieiMJHifyoQl0173x7YCh7bO1PygvqjNPY_6D3D27rBzN79KcX7bihNNtxUfe1ace1ac-1FcXKWZuG3NiKbbmk08ayY8ayb8aBZcpVlw25oRTbc1m3rWLPCsWeBHs_AqzcLb1oxouq3ZzLNmoWfNQv-58ExFC6w2qqzwotQ3qnvCbIXNG1Vqq5f4U6vl_prm83HP7TNIhpVpVkXzMS-bpbrAy-GxCzxzgblT3Tyy03zAk4lh8NgFnrnA3Knu3pOd0KJPj9p0YH_vwArz7puN-nToIrgdJgS3w4TgdpgSnKAJwSMXwe0wIbgdJgS3w5TgBE0IPnYRfOKiqB0mFLXDhKJ2mFKUoAlFpy6K2mFCUTtMKGqHKUUJmlB05qIod8oJBE1IStCEpQRNaUrhVFZwCwtuacEtLjjmBbfAwJ0SAz-JDINstdOUrXaastVOk7YSOGXrkLB0OrMhaWkoTdk6KC8NxilbT8KD1dZ09-FfAAAA___T9r_v +# https://cockroachdb.github.io/distsqlplan/decode.html#eJzUls-K2zAQh-99imVOLVXZSLbzx1DwsSllt4Teig_aeDYxeK0gK6XLkncvjrPEdlJNHIEgtzjSJ81ovsPvDUqV4YN8wQri38CBgQAGATAIgUEEKYONVkusKqXrLQ0wz_5CPGKQl5utqf9OGSyVRojfwOSmQIhhXhrUBco_uECZof6u8hL1_QgYZGhkXuxv_IHPBuo78hepX5ON1FiauoxFvlq3V5brvMjqheYcYFDgs_mY8M-fvup67_4nMHjcmvgu4SwRLAlZEkG6Y6C25lDpscCn17u1rNbdemowgHSXMqiMXCHEfMcub_qXfCoO_d5H3ZPfG1lpWWaHbgaXJjqlif-WdjxqWyqdocasc1hak9SWM_19k9X6MEjem-RhHCwJjgNhieiMJHifyoQl0173x7YCh7bO1PygvqjNPY_6D3D27rBzN79KcX7bihNNtxUfe1ace1ac-1FcXKWZuG3NiKbbmk08ayY8ayb8aBZcpVlw25oRTbc1m3rWLPCsWeBHs_AqzcLb1oxouq3ZzLNmoWfNQv-58ExFC6w2qqzwotQ3qnvCbIXNG1Vqq5f4U6vl_prm83HP7TNIhpVpVkXzMS-bpbrAy-GxCzxzgblT3Tyy03zAk4lh8NgFnrnA3Knu3pOd0KJPj9p0YH_vwArz7puN-nToIrgdJgS3w4TgdpgSnKAJwSMXwe0wIbgdJgS3w5TgBE0IPnYRfOKiqB0mFLXDhKJ2mFKUoAlFpy6K2mFCUTtMKGqHKUUJmlB05qIod8oJBE1IStCEpQRNaUrhVFZwCwtuacEtLjjmBbfAwJ0SAz-JDINstdOUrXaastVOk7YSOGXrkLB0OrMhaWkoTdk6KC8NxilbT8KD1dZ09-FfAAAA___T9r_v diff --git a/pkg/sql/opt/exec/execbuilder/testdata/distsql_join b/pkg/sql/opt/exec/execbuilder/testdata/distsql_join index 025ff6c86878..a759f98d30b1 100644 --- a/pkg/sql/opt/exec/execbuilder/testdata/distsql_join +++ b/pkg/sql/opt/exec/execbuilder/testdata/distsql_join @@ -76,7 +76,7 @@ render · · (a, b) · # query T # SELECT url FROM [EXPLAIN (DISTSQL) (SELECT * FROM (SELECT a,b FROM data AS data1) JOIN (SELECT c,d FROM data AS data2 ORDER BY c,d) ON a=c AND b=d ORDER BY c,d)] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzElk9v2kwQxu_vp4jm9FbZCu_a_LNUiWsqNanS3ioODt6CJcKitZEaRXz3ChyEbMM-ni6yjwR-3tmZ3-TxO21Mqh-TV51T_IskCVIkKCRBEQka0lzQ1pqFznNjDz8pgYf0D8WBoGyz3RWHP88FLYzVFL9TkRVrTTH9TF7W-lknqbaDgASlukiy9fGYrc1eE_s2S5MiIUFPuyK-m0kxUzTfCzK74uOp54e9vN2tknxVfcwJmQvKi2SpKZZ78W8FDlsUGIpZVCvwfLLinPzD2ELbgQzq97kXM3Xv24TwainnRxmbaqvTq-e3_uWF233Tdqm_mmxzuGKtsWv9u_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PDDkwM-zVx0oWJUftBR72YyChwelsTwcknE6MOTIz6NXHa9avqhYKedb41m1y3egMNDlfS6VKXDcvNzi70d2sWx2PKj09H7vjmk-q8KL8Nyw8Pm_KrQ4Ht4YkPLJUXPfKhVeCmZZ0OKnQFDuqwYjRc8eCJD1xrOJce-dC1hjfo0NnwyD2tyD0t6R7X0Gc_3DDYDzeM9gPQYD_cNNqPkbPjY3fDxz774YbBfrhhtB-ABvvhptF-THz2Y-pjuBsGhrthZDiggeFuGiZAI0AqHZfgn4psJAhHckADywGNNEc48BzgSHTZyBGO6bKRIxzVAQ1cBzSSHeHAdoBD3d0ZKodAd06INmfOSVEuDXVn5SgXh7q7kxTpzolSLo10Z4UpG0e6s-K0ibvzVE6B7pxEbc6cE6lcGurOClUujnRX7lSt6z7f__c3AAD__68_ThQ= # # # ORDER BY on the columns equal to the mergeJoinOrder columns should not # # require a terminal SORT node. @@ -105,7 +105,7 @@ render · · (a, b) · # query T # SELECT url FROM [EXPLAIN (DISTSQL) (SELECT * FROM (SELECT a,b FROM data AS data1) JOIN (SELECT c,d FROM data AS data2 ORDER BY c,d) ON a=c AND b=d ORDER BY a,b)] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzElk9v2kwQxu_vp4jm9FbZCu_a_LNUiWsqNanS3ioODt6CJcKitZEaRXz3ChyEbMM-ni6yjwR-3tmZ3-TxO21Mqh-TV51T_IskCVIkKCRBEQka0lzQ1pqFznNjDz8pgYf0D8WBoGyz3RWHP88FLYzVFL9TkRVrTTH9TF7W-lknqbaDgASlukiy9fGYrc1eE_s2S5MiIUFPuyK-m0kxUzTfCzK74uOp54e9vN2tknxVfcwJmQvKi2SpKZZ78W8FDlsUGIpZVCvwfLLinPzD2ELbgQzq97kXM3Xv24TwainnRxmbaqvTq-e3_uWF233Tdqm_mmxzuGKtsWv9u_j_g_70xWbL1fljxQThbnfkf8cLlT-az2Y7UNWxXCthWClBtndN9rIMjAJHt10GcPJpGWQHyyD7XYZRF8ug2g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2PKj09H7vjmk-q8KL8Nyw8Pm_KrQ4Ht4YkPLJUXPfKhVeCmZZ0OKnQFDuqwYjRc8eCJD1xrOJce-dC1hjfo0NnwyD2tyD0t6R7X0Gc_3DDYDzeM9gPQYD_cNNqPkbPjY3fDxz774YbBfrhhtB-ABvvhptF-THz2Y-pjuBsGhrthZDiggeFuGiZAI0AqHZfgn4psJAhHckADywGNNEc48BzgSHTZyBGO6bKRIxzVAQ1cBzSSHeHAdoBD3d0ZKodAd06INmfOSVEuDXVn5SgXh7q7kxTpzolSLo10Z4UpG0e6s-K0ibvzVE6B7pxEbc6cE6lcGurOClUujnRX7lSt6z7f__c3AAD__68_ThQ= # ORDER BY on a different ordering should require a terminal SORT NODE. query TTTTT @@ -126,7 +126,7 @@ sort · · (a, b, c, d) +b,+a query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT * FROM (SELECT a,b FROM data AS data1) JOIN (SELECT c,d FROM data AS data2 ORDER BY c,d) ON a=c AND b=d ORDER BY b,a)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzElstu2zoQhvfnKYJZnSIsIlLyFSjgZdNFUqTdFV4oFhsLcESDkoEGQd69kFUh0SXzi2VtLRXrI0fDb_LzmTKT6Jv4Uee0_EGSBCkSFJKgiARNaC1ob81G57mx5SsVcJ38omUgKM32h6L881rQxlhNy2cq0mKnaUnf4_udvtNxou1VQIISXcTp7rjN3qaPsX1aJXERk6DbQ7G8WEmxUrR-EWQOxZ9VXxe7f7rYxvm2uUyNrAXlRfygaSlfxN8VOBlQYChWkW-B6t0CX5c6ZMYm2uqksdi6JNErPV_5Oc63X0yaaXslW8ew0z-L_481fvhk04dt_dA4EtH33a8fFLp0_JuxRVlHq9srdSlW8vLdPaIBTevrx5uFe4q5MR_N_koF7S73ljBplCCHiyVHMd-hwOko5sszmy9PbT7oeG3-1Md8NfxU1SjaORQ4G0U7dWbt1Km1Ax2vtZv5aBcOP9VwFO0cCpyPol14Zu3CU2sHOl5rN_fRLhp-qt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SLXvC0dOiZcoNnPnCrZ670xIte8LRq08FbOmzAQRsOWTjiTytiYSX5rSc-88HDYD54GM0HoMF8ABrMx9RnPngYzAcPo_kANJgPQIP5mLGWznlJ5z7zsfAxnIeB4TyMDAc0MBzQKAFcYrP7n9QlN11pGAJOyemMA81lJ0UaqkrFiy75GAGmy06OuKgOaOA6oJHsCAe2Ixzp3slQJ915GunO01B3gCPdAY507wRpU_cp0L2TKU66dzLFSXeeRrrzNNQd4Eh3gCPdO3nqpDtPI915GuoOcKQ7wJHunVRt3rUDXnfVyRZW9_XLf78DAAD__4D9QPA= # TODO(radu): enable when we support merge joins. # @@ -135,17 +135,17 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJzElstu2zoQhvfnKYJZnSIsIl # query T # SELECT url FROM [EXPLAIN (DISTSQL) (SELECT * FROM (SELECT a,b FROM data AS data1) FULL OUTER JOIN (SELECT c,d FROM data AS data2 ORDER BY c,d) ON a=c and b=d ORDER BY a,b)] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzEl0Fv2kAQhe_9FWhOrbJVvGNDwFIlLq2UKA1VmpwqDg7eEiTCorWRGkX57xUQhAxh3zqD8NHBb994Zj6_-IVmNjc32ZMpKP1DmhQxKYpJUUKK2jRUNHd2ZIrCuuUta8Fl_o_SSNFkNl-Uyz8PFY2sM5S-UDkpp4ZSussepubWZLlx5xEpyk2ZTaYrm7mbPGXuuZ9nZUaKBosybfW16jMNXxXZRfl26vawh-fWY1Y8Vo_ZSIaKijIbG0r1q_pYge2AAmPVT3YK3DpzHeff1pXGneto93nOVJ_PpE2ID5ayPcq63DiTH_QPvvOdp_tp3Nhc2cls-Yg7jb17npu09eP--ro1uL_7ftu6GlzekKKp-Vt-fjv1yzc3GT9uLysbovxjSD4wBg4aw9ajLe_vO8Xc2K92fs7Vfh0qoVMpQYfvuW4ExBoFdo4LInDegKhPAKJuFsROkyCGjYGDxnAIRA5fMm6EghoFXhyXAuC8oYBPQAE3S8FFkxSEjYGDx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FADnDQXxCSiIm6Wg2yQFYWPgoDEcoiAJX7KkEQpqFNg7LgXAeUNBcgIKkmYp6DVJQdgYOGgMIZ8m73jcmmJuZ4UJ-uKIlu00-dish1XYhRuZX86OVjbry8FKt_pvLzdFuf41Xl9cztY_LQsMF_ckYp2I1CJvBt56Vx1V1BVxtCvmGg3neuKeRLzT8LpqkTcD79jb8MTf8MQrbvtH3faPuuO37kjg8ovBgvvFCC6gFnkjuC68He_6G96VwOUXgwX3ixFcQC3yRnD1vA3Xkb_jeu9VWgcvvfcqrUMIUIM1BWrECJLL3GEE7b1Qq1OLwdT23qh1QAFqsK1AjVBBcpk7gkX700S3Qd_9eYJoEeUJUKN9lSUKksvcIS3-UNEgVbQoVoAa7assWJBc5g5p8WcLg2xhUbawKFuAGuwrUCNakFzmjmhhf7YwyBYWZQtQo88MWbYgucwd0cL-bGGQLVwvW4avn_4HAAD__9-kdhE= # # query T # SELECT url FROM [EXPLAIN (DISTSQL) (SELECT * FROM (SELECT a,b FROM data AS data1) LEFT OUTER JOIN (SELECT c,d FROM data AS data2 ORDER BY c,d) ON a=c and b=d ORDER BY a,b)] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzEl0Fv2k4Qxe__T4Hm9K-yVbxjQ8BSJS6plKgNVUpPFQcHbwkSYdHaSI2ifPcKCEKGsG-dQfjo4LdvPDM_v_iF5jY3d9mTKSj9TZoUMSmKSVFCito0UrRwdmyKwrrVLRvBTf6X0kjRdL5Ylqs_jxSNrTOUvlA5LWeGUhpmDzNzb7LcuMuIFOWmzKaztc3CTZ8y99zPszIjRYNlmbb6WvWZRq-K7LJ8O3V32MNz6zErHqvHbCUjRUWZTQyl-lV9rMB2QIGx6id7Be6cuY7zT-tK4y51tP88F6rPF9ImxEdL2R1lXW6cyY_6B9_5ztN9N25ibu10vnrEvcYOnxcmbX27_jpsDX4Nr-9bt4ObO1I0M3_K_99O_fTFTSePu8vKhij_GJIPjIGDxrDzaMv7-04xd_azXVxytV_HSuhUSt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M4ComwWx0ySIYWPgoDEcA5HDl4wboaBGgVenpQA4byngM1DAzVJw1SQFYWPgoDEcoyAOX7K4EQpqFNg9LQXAeUtBfAYK4mYp6DZJQdgYOGgMxyhIwpcsaYSCGgX2TksBcN5SkJyBgqRZCnpNUhA2Bg4aQ8inyTse96ZY2Hlhgr44olU7TT4xm2EVdunG5oez47XN5nKw1q3_28tNUW5-jTcXN_PNT6sCw8U9iVgnIrXIm4G33ldHFXVFHO2LuUbDuZ64JxHvNbyuWuTNwDv2NjzxNzzxitv-Ubf9o-74rTsSuPxisOB-MYILqEXeCK4rb8e7_oZ3JXD5xWDB_WIEF1CLvBFcPW_DdeTvuD54ldbBSx-8SusQAtRgTYEaMYLkMncYQQcv1OrUYjC1gzdqHVCAGmwrUCNUkFzmjmDR_jTRbdB3f54gWkR5AtRoX2WJguQyd0iLP1Q0SBUtihWgRvsqCxYkl7lDWvzZwiBbWJQtLMoWoAb7CtSIFiSXuSNa2J8tDLKFRdkC1OgzQ5YtSC5zR7SwP1sYZAvXy5bR63__AgAA__86O3Xp # # query T # SELECT url FROM [EXPLAIN (DISTSQL) (SELECT * FROM (SELECT a,b FROM data AS data1) RIGHT OUTER JOIN (SELECT c,d FROM data AS data2 ORDER BY c,d) ON a=c and b=d ORDER BY a,b)] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzEl0Fv2kAQhe_9FWhOrbJV2LEhYKkSl6olUkNF6ani4OAtQSIsWhupUZT_XgFByBD2rTMIHx389o1n5vOLn2lhM3OXPpqckj-kSRGToogUxaSoRWNFS2cnJs-tW9-yFfSzf5Q0Fc0Wy1Wx_vNY0cQ6Q8kzFbNibiihUXo_N0OTZsZdN0lRZop0Nt_YLN3sMXVPvSwtUlI0WBVJo6dVj2n8osiuitdT94fdPzUe0vyhfMxOMlaUF-nUUKJf1PsKbAUUGKlefFDg3pmrOP-yrjDuWjcPn-dK9fhK2oToZCn7o6zLjDPZSf_gO994uh_GTc2tnS3Wj3jQ2NHT0iSN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0-vh776YubTR_2l6UVUf45xO-YAwfNYe_Rkjf4jWLu7Ge7vOZyw06V0C6VoMMXXddCYoUC2-clETjvSNQXIFHXS2K7VhLD5sBBczhFIodvGdeCQYUCb86LAXDeYcAXwIDrxeCmVgzC5sBBcziFQRS-ZVEtGFQosHNeDIDzDoPoAhhE9WLQqRWDsDlw0BxOYRCHb1lcCwYVCuyeFwPgvMMgvgAGcb0YdGvFIGwOHDSHkM-TNzyGJl_aRW6Cvjqa636abGq208rtyk3MT2cnG5vt5WCj2_zDl5m82P4abS_6i-1P6wLDxV2JWMcitcibgbc-VDdL6pK4eSjmCg3nauKuRHzQ8KpqkTcD78jb8Njf8NgrbvlH3fKPuu23bkvg8ovBgvvFCC6gFnkjuG68He_4G96RwOUXgwX3ixFcQC3yRnB1vQ3XTX_H9dGrtApe-uhVWoUQoAZrCtSIESSXucMIOnqhlqcWgakdvVGrgALUYFuBGqGC5DJ3BIv2p4lugb778wTRIsoToEb7KksUJJe5Q1r8oaJBqmhRrAA12ldZsCC5zB3S4s8WBtnComxhUbYANdhXoEa0ILnMHdHC_mxhkC0syhagRp8ZsmxBcpk7ooX92cIgW7hatoxfPvwPAAD__wYqd4g= # # ## Nested merge joins should be planned on the same ordering @@ -184,7 +184,7 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJzElstu2zoQhvfnKYJZnSIsIl # query T # SELECT url FROM [EXPLAIN (DISTSQL) (SELECT * FROM (SELECT a,b from data AS data3 NATURAL JOIN ((SELECT a,b FROM data AS data1) JOIN (SELECT c,d FROM data AS data2 ORDER BY c,d) ON a=c AND b=d)))] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJzMmE1v2kwQx-_Pp4jm9FTZKt61eZUq-ZpKTaq0t4qDg7cEiWBkG6lRxHevgFBiL5m_xxY2R15-zOxk9-d_9pWWSWzvomeb0fgXaVJkSJFPigJS1KOJolWaTG2WJen2K3vgNv5DY0_RfLla59u3J4qmSWpp_Er5PF9YGtPP6HFhH2wU2_T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OrAxwpGXNxwfgZc0_SIFaAY3cinAgV4AjuwIcRl3-aYqKgxyAwi7AUdoFOQLFXYADx2o-Seg-kKyTJUSS5WkoWYAjyfI4lCzAkWQlOUpKQ8mKkpQUh5IVZSkXd1KFSLJOqhBJlqehZAGOJMvjULI8jiRrJIFKSiPJIhxIFuBIsghHlwpOqijsWGN4yRonVUgkC2gkWYQDyQIcSRbhQLJGkqikNJIswoFkAY4kC3AkWePEColkjZMqJJIFNJIswoFkAY4kC3AoWUmgktJQsqJAJcWhZEWBysWdVFGU7BBIVnJF4x4X0R2NGEeSFd3SiHEkWUmiktJQsqJEJcWhZEWJyr04d2IFK9nJ5r-_AQAA__9IVxsL # # # statement ok @@ -193,4 +193,4 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJzElstu2zoQhvfnKYJZnSIsIl # query T # SELECT url FROM [EXPLAIN (DISTSQL) (SELECT l.k, r.k FROM (SELECT * FROM distsql_mj_test ORDER BY k) l INNER JOIN (SELECT * FROM distsql_mj_test ORDER BY k) r ON l.k = r.k)] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJyskk9Lw0AQxe9-CpmT0pVk06SHgJBrBVup3qSUmB3jSpqNsxtQSr-7JHtIE8z2D952Z-f35r1ldlAqgYt0ixriV-DAIII1g4pUhlorasq2aS6-IfYZyLKqTVNeM8gUIcQ7MNIUCDEs1J2qvAgYCDSpLNq2PQNVmw7SJs0R4tmeHQhzt_BL-lbgClOB5Pk9eahIblP6SYTURn8Vm-3nxqA2wGBZm_g64TDmgJ_j4FmRQfJ4f3jCJ6PywaUBg_8KOL0g4PT0gOGofKdal4oEEorhThxv-cPjI1KOD0qWSF7YN1rgu7lJ-OT2nmT-YY_dF7EkGI0R9WIc2fAV6kqVGk9acb_JgCJH-yda1ZThE6msHWOvy5ZrCwK1sa8ze5mX9qkxeAhzJxy44cAJRz2YD-GpEw7dk8MzJgdDOHLC_mDyen_1GwAA___yFZqv +# https://cockroachdb.github.io/distsqlplan/decode.html#eJyskk9Lw0AQxe9-CpmT0pVk06SHgJBrBVup3qSUmB3jSpqNsxtQSr-7JHtIE8z2D952Z-f35r1ldlAqgYt0ixriV-DAIII1g4pUhlorasq2aS6-IfYZyLKqTVNeM8gUIcQ7MNIUCDEs1J2qvAgYCDSpLNq2PQNVmw7SJs0R4tmeHQhzt_BL-lbgClOB5Pk9eahIblP6SYTURn8Vm-3nxqA2wGBZm_g64TDmgJ_j4FmRQfJ4f3jCJ6PywaUBg_8KOL0g4PT0gOGofKdal4oEEorhThxv-cPjI1KOD0qWSF7YN1rgu7lJ-OT2nmT-YY_dF7EkGI0R9WIc2fAV6kqVGk9acb_JgCJH-yda1ZThE6msHWOvy5ZrCwK1sa8ze5mX9qkxeAhzJxy44cAJRz2YD-GpEw7dk8MzJgdDOHLC_mDyen_1GwAA___yFZqv diff --git a/pkg/sql/opt/exec/execbuilder/testdata/distsql_misc b/pkg/sql/opt/exec/execbuilder/testdata/distsql_misc index 7174f4b51fad..fe0bb4f0917e 100644 --- a/pkg/sql/opt/exec/execbuilder/testdata/distsql_misc +++ b/pkg/sql/opt/exec/execbuilder/testdata/distsql_misc @@ -21,7 +21,7 @@ subtest scrub # (rightside.k IS NULL) # ] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJyckc2K2zAQgO99CjGnLBlIJDs9CAq6dCFLGpdscio-uNY0a3AkM5Khy5J3L45hNw5x2vQ4I33zzc8bOG9pXRwogP4BEnKEhn1JIXjuUv2Hpf0Neo5QuaaNXTpHKD0T6DeIVawJNGyLnzVtqLDEszkgWIpFVZ_KNlwdCn41kUIEhKyNWhiFRqJJID8i-DZ-FA6x2BNoecR_lz97jsQzOfQaOUWjpmiS6ahG3aM5n1ENXYFK7-zdUyb_MWUyPiXCoYjli6jJaaFGremo9UPWOs-WmOzAlnfk375caf0b8Z6efOWIZ-mw_-1rQ1o87lYrke22XzfiKVuuAaGmX3FyNtzDF672L8MUIDxWdSTWYmKUWD6L9W61ehDZRkzM4j1-P4fE7iIJmhTNAs3n0Q0t7rnLhkLjXaDLTV2tPO_WQ3ZP_bqDb7mk7-zLk6YPsxN3SlgKsX-VfbB0_VPX4Dksb8LpAJaXsLoJJ7fNyR1mdQmnN-HFhTk_fvoTAAD__3P7gDg= +# https://cockroachdb.github.io/distsqlplan/decode.html#eJyckc2K2zAQgO99CjGnLBlIJDs9CAq6dCFLGpdscio-uNY0a3AkM5Khy5J3L45hNw5x2vQ4I33zzc8bOG9pXRwogP4BEnKEhn1JIXjuUv2Hpf0Neo5QuaaNXTpHKD0T6DeIVawJNGyLnzVtqLDEszkgWIpFVZ_KNlwdCn41kUIEhKyNWhiFRqJJID8i-DZ-FA6x2BNoecR_lz97jsQzOfQaOUWjpmiS6ahG3aM5n1ENXYFK7-zdUyb_MWUyPiXCoYjli6jJaaFGremo9UPWOs-WmOzAlnfk375caf0b8Z6efOWIZ-mw_-1rQ1o87lYrke22XzfiKVuuAaGmX3FyNtzDF672L8MUIDxWdSTWYmKUWD6L9W61ehDZRkzM4j1-P4fE7iIJmhTNAs3n0Q0t7rnLhkLjXaDLTV2tPO_WQ3ZP_bqDb7mk7-zLk6YPsxN3SlgKsX-VfbB0_VPX4Dksb8LpAJaXsLoJJ7fNyR1mdQmnN-HFhTk_fvoTAAD__3P7gDg= # # # Verify the foreign key check execution plan uses a merge join. # @@ -52,7 +52,7 @@ subtest scrub # c.id IS NULL AND c.id2 IS NULL # ] # ---- -# https://cockroachdb.github.io/distsqlplan/decode.html?eJycklFrnTAUx9_3KcJ58nID1bi9BAYZbAWL0-G8T0PEmXNtqEskidBS_O7DCGstvRvdY345__wO5-QRtJFYdL_QAf8BCTQUJmt6dM7YFW0FmbwHHlNQepr9ihsKvbEI_BG88iMCh7r7OWKFnUR7FQMFib5TY3i2v1WjbLvZm1Zpifft-a5VsrV4bqfOovYiVECzUDCzf3I43w0IPFno__WR7PvYZKtaSdbe4YPYyEUxuyh-8s3aWIkW5c7VrMl_lbzS_Ve0A94YpdFesX339cOEnFyf8pyUp_pLRW7KrAAKI559JNiRivR4-GjVcOsjkRypYMcDULhWo0fLSRRFgpHsOynKmhSnPD-QsiKRSHfsQD4Vn0kk3gf6nHz4Q4BCOXtOREIFoyK9OL70LXur0E1GO3w5xldfjtfZoRxw24Uzs-3xmzV90GzHMuQCkOj8dsu2Q6bDVfhYz8PJG8LsZZj9NZzuwvHSLO9-BwAA__9_viDb +# https://cockroachdb.github.io/distsqlplan/decode.html#eJycklFrnTAUx9_3KcJ58nID1bi9BAYZbAWL0-G8T0PEmXNtqEskidBS_O7DCGstvRvdY345__wO5-QRtJFYdL_QAf8BCTQUJmt6dM7YFW0FmbwHHlNQepr9ihsKvbEI_BG88iMCh7r7OWKFnUR7FQMFib5TY3i2v1WjbLvZm1Zpifft-a5VsrV4bqfOovYiVECzUDCzf3I43w0IPFno__WR7PvYZKtaSdbe4YPYyEUxuyh-8s3aWIkW5c7VrMl_lbzS_Ve0A94YpdFesX339cOEnFyf8pyUp_pLRW7KrAAKI559JNiRivR4-GjVcOsjkRypYMcDULhWo0fLSRRFgpHsOynKmhSnPD-QsiKRSHfsQD4Vn0kk3gf6nHz4Q4BCOXtOREIFoyK9OL70LXur0E1GO3w5xldfjtfZoRxw24Uzs-3xmzV90GzHMuQCkOj8dsu2Q6bDVfhYz8PJG8LsZZj9NZzuwvHSLO9-BwAA__9_viDb subtest stats @@ -87,4 +87,4 @@ NULL /1 {1} 1 query T SELECT url FROM [EXPLAIN (DISTSQL) CREATE STATISTICS s1 ON a FROM data] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lM-KszAUxfffU8hdfQOBJmr_ueosu5kO7ewGF6m5iIw1kkSYmeK7DyrSsbRRaGbpjSe_czjhnqGQAl_4CTVE78CAgA8EAiAQAoE5xARKJRPUWqrml06wFZ8QUQJZUVamGccEEqkQojOYzOQIEbzxY4575ALVjAIBgYZneYspVXbi6msjuOFAYFeZyNswiGsCsjKXK7XhKULEajIde-CnMkc1mw-R3fiQfWPkMUpp4-hguB3s3wVfeFUhlUCFYsCL67vWntNUYcqNVDNGp5v0_vuUescq-UCjn-5aDgaW2fSKmMOKRrB9RQvnFfnT8_oO845g-7xL53mD6XkDh3lHsH3elfO84fS8ocO8I9g-7_pPV84N8B51KQuNV6vn9s20WUkoUuz2l5aVSvBVyaTFdJ-7VtcOBGrTnbLuY1t0R43B32JmFfsDMbsW-3byCDqwqkO7OHzE99wqXtjJi0fIS6t4ZSevHiGv7V3RkWdif2TX7Lj-9xMAAP__kHfOZg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lM-KszAUxfffU8hdfQOBJmr_ueosu5kO7ewGF6m5iIw1kkSYmeK7DyrSsbRRaGbpjSe_czjhnqGQAl_4CTVE78CAgA8EAiAQAoE5xARKJRPUWqrml06wFZ8QUQJZUVamGccEEqkQojOYzOQIEbzxY4575ALVjAIBgYZneYspVXbi6msjuOFAYFeZyNswiGsCsjKXK7XhKULEajIde-CnMkc1mw-R3fiQfWPkMUpp4-hguB3s3wVfeFUhlUCFYsCL67vWntNUYcqNVDNGp5v0_vuUescq-UCjn-5aDgaW2fSKmMOKRrB9RQvnFfnT8_oO845g-7xL53mD6XkDh3lHsH3elfO84fS8ocO8I9g-7_pPV84N8B51KQuNV6vn9s20WUkoUuz2l5aVSvBVyaTFdJ-7VtcOBGrTnbLuY1t0R43B32JmFfsDMbsW-3byCDqwqkO7OHzE99wqXtjJi0fIS6t4ZSevHiGv7V3RkWdif2TX7Lj-9xMAAP__kHfOZg== diff --git a/pkg/sql/opt/exec/execbuilder/testdata/distsql_numtables b/pkg/sql/opt/exec/execbuilder/testdata/distsql_numtables index bf9e93752285..df7efd55c3a9 100644 --- a/pkg/sql/opt/exec/execbuilder/testdata/distsql_numtables +++ b/pkg/sql/opt/exec/execbuilder/testdata/distsql_numtables @@ -48,25 +48,25 @@ NULL /2000 {1} 1 query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT 5, 2+y, * FROM NumToStr WHERE y <= 10 ORDER BY str] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkDFrwzAQhff-ivDWCGKZdtHk1Uta3GzFg2odwWDrzOkMLcH_vdga0hRS2k33Tu97j7sgcqCjHynBvcGiNZiEO0qJZZXyhzp8wBUGfZxmXeXWoGMhuAu014HgcPLvAzXkA8mhgEEg9f2wYSfpRy-fVZxH5aQCg4ZiIHG7J-dcfTyZXWX35fVtdlWJdjHgWa-RSf2Z4Oxi_l7rlUVJDva2UfW4v4sv_4NvKE0cE93g75GLpTWgcKZ82cSzdPQi3G0xeXzefJsQKGne2jzUMa_Wgt_N9ldz-cPcLg9fAQAA___0cqP4 +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkDFrwzAQhff-ivDWCGKZdtHk1Uta3GzFg2odwWDrzOkMLcH_vdga0hRS2k33Tu97j7sgcqCjHynBvcGiNZiEO0qJZZXyhzp8wBUGfZxmXeXWoGMhuAu014HgcPLvAzXkA8mhgEEg9f2wYSfpRy-fVZxH5aQCg4ZiIHG7J-dcfTyZXWX35fVtdlWJdjHgWa-RSf2Z4Oxi_l7rlUVJDva2UfW4v4sv_4NvKE0cE93g75GLpTWgcKZ82cSzdPQi3G0xeXzefJsQKGne2jzUMa_Wgt_N9ldz-cPcLg9fAQAA___0cqP4 # Query which requires a full table scan. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT 5, 2 + y, * FROM NumToStr WHERE y % 1000 = 0 ORDER BY str] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlMtq8zAQhff_U5iBH1qiEku2cxEUvCpkk5Y0u-KFaw3B4FhGkqEl5N2LL5A6JLJJuvBOtzPn8I2YA-RS4Dreowb-ARQIMCDgAQEfCAQQESiUTFBrqaonjWAlvoC7BNK8KE11HBFIpELgBzCpyRA4bOPPDDcYC1RTFwgINHGa1TaFSvex-g7zcm-kNgoIvKSZQcWdh5A6_x3qui7nfLXePjrPTrsEAhvMRfUqaE6IE9IJO62JEzKIjgRkaU7BtIl3CJweyfDw71IZVNOgmzv0J1fLs6vlT1WlEqhQXCp6IcNaPsliSrvsrtl7HXs6vDV0dK3pCd-2ZnZra9hwNmx0bHrCt2zmt7LxhrPxRsemJ3zLZnErG384G390bHrCt2yWfzHuLpTfoC5krnHQJHOrWYhih83s1LJUCb4pmdQ2zfa11tUHArVpbmmzWeXNVRXwt5haxawjpudiZnfusfasat8u9u_JHVjFM7vz7B7nuVW8sDsv7nFe2nvl9nwT-yc7946O_34CAAD__12t7jY= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlMtq8zAQhff_U5iBH1qiEku2cxEUvCpkk5Y0u-KFaw3B4FhGkqEl5N2LL5A6JLJJuvBOtzPn8I2YA-RS4Dreowb-ARQIMCDgAQEfCAQQESiUTFBrqaonjWAlvoC7BNK8KE11HBFIpELgBzCpyRA4bOPPDDcYC1RTFwgINHGa1TaFSvex-g7zcm-kNgoIvKSZQcWdh5A6_x3qui7nfLXePjrPTrsEAhvMRfUqaE6IE9IJO62JEzKIjgRkaU7BtIl3CJweyfDw71IZVNOgmzv0J1fLs6vlT1WlEqhQXCp6IcNaPsliSrvsrtl7HXs6vDV0dK3pCd-2ZnZra9hwNmx0bHrCt2zmt7LxhrPxRsemJ3zLZnErG384G390bHrCt2yWfzHuLpTfoC5krnHQJHOrWYhih83s1LJUCb4pmdQ2zfa11tUHArVpbmmzWeXNVRXwt5haxawjpudiZnfusfasat8u9u_JHVjFM7vz7B7nuVW8sDsv7nFe2nvl9nwT-yc7946O_34CAAD__12t7jY= # Query with a restricted span + filter. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT str FROM NumToStr WHERE y < 10 AND str LIKE '%e%' ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyMjzFrwzAUhPf-CnMQsghqd9SUpS2mJSlutqJBtR5BYEvm6Qlagv57sTWUDoWMd590d--KEB0d7UwJ-gMdjMLCcaSUIq9WfdC7L-hWwYcly2obhTEyQV8hXiaCxtl-TjSQdcT3LRQcifXTFruwny1_H0KeJSZhKDz5SYh1c3hoXvuXx2a_o91ea_1-HvrjMxROWVYKUxRilt_eJPZC0F1Rt28bKC0xJPoz67_kthgFcheq96eYeaQ3juNWU-Vp-7cZjpJU2lXRh4qKKXc_AQAA___YHXLQ +https://cockroachdb.github.io/distsqlplan/decode.html#eJyMjzFrwzAUhPf-CnMQsghqd9SUpS2mJSlutqJBtR5BYEvm6Qlagv57sTWUDoWMd590d--KEB0d7UwJ-gMdjMLCcaSUIq9WfdC7L-hWwYcly2obhTEyQV8hXiaCxtl-TjSQdcT3LRQcifXTFruwny1_H0KeJSZhKDz5SYh1c3hoXvuXx2a_o91ea_1-HvrjMxROWVYKUxRilt_eJPZC0F1Rt28bKC0xJPoz67_kthgFcheq96eYeaQ3juNWU-Vp-7cZjpJU2lXRh4qKKXc_AQAA___YHXLQ # Query which requires a full table scan. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT str FROM NumToStr WHERE y % 1000 = 0 AND str LIKE '%i%' ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlE2rm0AYhff9FcOBkIROiTOaLgYKFvqBtJiSZldcWOclCMaRmRFagv-9RKG5Xm7u9ZKNO-fj4Zxn4PWM2mhK8xM5qF8Q4JDgCMERgWOLjKOxpiDnjL1cGYBE_4EKOMq6af1lO-MojCWoM3zpK4LCIf9d0Z5yTXYTgEOTz8uqj2lsecrt37huT944b8Hxpaw8WcVWq1iwBRNBECilkvSwZh_Y_8-P6Se2iiX7nnz7zJaLcrFUSv087JP06xocu9YrFkseC2Qdh2n9tZ7z-ZGgRMdvKFybG6vJkh53juVbZN0Tnql5Z5rNdnT7VrocpYvpDyhm-oByuoKcqUI4XSGcqUI0XSGaqcILP5M9ucbUjiZNWXAZU9JHGsbamdYW9MOaoo8Zlrue6zc0OT-cimGR1P1RX_AhLJ6F34_g4DEs70kO74Gje-Dtq-Cse_MvAAD__yjQ8xE= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlE2rm0AYhff9FcOBkIROiTOaLgYKFvqBtJiSZldcWOclCMaRmRFagv-9RKG5Xm7u9ZKNO-fj4Zxn4PWM2mhK8xM5qF8Q4JDgCMERgWOLjKOxpiDnjL1cGYBE_4EKOMq6af1lO-MojCWoM3zpK4LCIf9d0Z5yTXYTgEOTz8uqj2lsecrt37huT944b8Hxpaw8WcVWq1iwBRNBECilkvSwZh_Y_8-P6Se2iiX7nnz7zJaLcrFUSv087JP06xocu9YrFkseC2Qdh2n9tZ7z-ZGgRMdvKFybG6vJkh53juVbZN0Tnql5Z5rNdnT7VrocpYvpDyhm-oByuoKcqUI4XSGcqUI0XSGaqcILP5M9ucbUjiZNWXAZU9JHGsbamdYW9MOaoo8Zlrue6zc0OT-cimGR1P1RX_AhLJ6F34_g4DEs70kO74Gje-Dtq-Cse_MvAAD__yjQ8xE= # # -- Join tests -- @@ -75,7 +75,7 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlE2rm0AYhff9FcOBkIROiT query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x, str FROM NumToSquare JOIN NumToStr ON y = xsquared] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lc9q20AQh-99ijCnBLZYs5LiWFDQsekhKaG3ooNiTW2BrVV3V9AQ_O5FVsGV7M5KXayj_nw7M98PZt-hUgU95XsykHwHBAESBIQgIAIBMWQCaq3WZIzS7S8d8Fj8giQQUFZ1Y9vXmYC10gTJO9jS7ggS-Ja_7uiF8oL0IgABBdm83B3L1Lrc5_otrZq9VeZnk2uC7CBANfbPeadjXt9utrnZ9g9IJWSHTICx-YYgwYP4v76Q68vqiU1hryn5z6ZO5zSV0gVpKnonZS3p-uXCZJ9zs_2iyor04r7f2o5-2NtU3n3S5WZrb1O8AwHPjU1uUhRpNJjzNEPoMcOFBp_UR1UvEIfTXqwd9Wrj-FDlbKHivKEurxGqHC82nE2snFfswzXEhuPFRrOJDecVu7qG2Gi82Hg2sdG8YjG49oK_UP-FTK0qQ6PWd9BOQMWGOiNGNXpNX7VaH8t0j89H7rhHCzK2-yq7h8eq-9Q2OB6OfeClD7zygRF5GicYk9Pg2Ade-sArH3hg7IyWQzr4mw553SELY993MKQjn7B42BEWDzvC4mFHWDzsCiv2CeveRzcPO3TzsEM3Dzt087BL99JH94OPbh526OZhh24edujmYZfulY9unHJZnu_QKbflVNq1_Kfcl1Npl3M8uz1Y6dnhw-8AAAD__3ZSr0E= +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lc9q20AQh-99ijCnBLZYs5LiWFDQsekhKaG3ooNiTW2BrVV3V9AQ_O5FVsGV7M5KXayj_nw7M98PZt-hUgU95XsykHwHBAESBIQgIAIBMWQCaq3WZIzS7S8d8Fj8giQQUFZ1Y9vXmYC10gTJO9jS7ggS-Ja_7uiF8oL0IgABBdm83B3L1Lrc5_otrZq9VeZnk2uC7CBANfbPeadjXt9utrnZ9g9IJWSHTICx-YYgwYP4v76Q68vqiU1hryn5z6ZO5zSV0gVpKnonZS3p-uXCZJ9zs_2iyor04r7f2o5-2NtU3n3S5WZrb1O8AwHPjU1uUhRpNJjzNEPoMcOFBp_UR1UvEIfTXqwd9Wrj-FDlbKHivKEurxGqHC82nE2snFfswzXEhuPFRrOJDecVu7qG2Gi82Hg2sdG8YjG49oK_UP-FTK0qQ6PWd9BOQMWGOiNGNXpNX7VaH8t0j89H7rhHCzK2-yq7h8eq-9Q2OB6OfeClD7zygRF5GicYk9Pg2Ade-sArH3hg7IyWQzr4mw553SELY993MKQjn7B42BEWDzvC4mFHWDzsCiv2CeveRzcPO3TzsEM3Dzt087BL99JH94OPbh526OZhh24edujmYZfulY9unHJZnu_QKbflVNq1_Kfcl1Npl3M8uz1Y6dnhw-8AAAD__3ZSr0E= # TODO(radu): this should be a merge join. query TTTTT @@ -101,7 +101,7 @@ render · · (x, str) · query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x, str FROM NumToSquare JOIN NumToStr ON x = y WHERE x % 2 = 0] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlUFr2zAUx-_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O7pla3_6-oNvhF5gWqyX2b2eEPcxOzu9uFyjfb5mcV0YrEjCxIzE950TjstH5qK_Ro68KGV_KTPEwY6wq4WDtq1Wb9jwK_pqPAxj8KsxGOAu8fR3hNcfDx43gYIY6wfxzRNcURjh_HfIQ4ov5xTK8pjmj8OFgw8uC6sJ8n1AdZaOw1loKqI8w22EjSslRr_Kbkui7TPD7WXH35Z6hN85Y3D8uieVVtsD889YFnPvDcB2bMTrMBxvgweOoDz3zguQ_cMXZG8y4d_EuHdt2hFWZt30GXjnzCssOOsOywIyw77AjLDrvCmvqEde-j2w47dNthh2477NBth126Zz66H3x022GHbjvs0G2HHbrtsEv33Ec3GzIsz-_QIdNyKO26_IfMy6G0yzk7mx5W6cnxw-8AAAD__1z29JU= # # -- Aggregation tests -- @@ -111,19 +111,19 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlUFr2zAUx-_7FOLBoKUasW query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT sum(y) FROM NumToStr] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslE1vozAQhu_7K1bvaVeyFAzki1P2mMM2VdqeKg4uHiGkBCPbSK0i_nsFHAJRYqjgaJt3nnmMNRfkStKTOJNB9A4OBh8MARhCMCwRMxRaJWSM0vUnbWAvPxF5DFlelLbejhkSpQnRBTazJ0KEV_FxoiMJSXrhgUGSFdmpwRQ6Owv9tcvLs1XGajAcShv93nHEFYMq7bWssSIlRLxi49H_0lRTKqzSi2Wf_PL2_8-O_32I8R9irtXLXGlJmmSvdFy5G-HezzoJep3w8XfNZ77rAXRHcTXlrv3xhv7MhgPojuF6imEw3jCY2XAA3THcTDEMxxuGMxsOoDuG27kmwh3MkUyhckM3k-F-Za-eGCRTaseLUaVO6FmrpMG0y0OTazYkGdue8naxz9ujusFumDvDfi_Mb8O-mzyADpzp0B0Op_S9dIZXbvJqCnntDG_c5M0U8tb9r7yBZ-J-ZLfsuPr1HQAA__8CqbEl +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslE1vozAQhu_7K1bvaVeyFAzki1P2mMM2VdqeKg4uHiGkBCPbSK0i_nsFHAJRYqjgaJt3nnmMNRfkStKTOJNB9A4OBh8MARhCMCwRMxRaJWSM0vUnbWAvPxF5DFlelLbejhkSpQnRBTazJ0KEV_FxoiMJSXrhgUGSFdmpwRQ6Owv9tcvLs1XGajAcShv93nHEFYMq7bWssSIlRLxi49H_0lRTKqzSi2Wf_PL2_8-O_32I8R9irtXLXGlJmmSvdFy5G-HezzoJep3w8XfNZ77rAXRHcTXlrv3xhv7MhgPojuF6imEw3jCY2XAA3THcTDEMxxuGMxsOoDuG27kmwh3MkUyhckM3k-F-Za-eGCRTaseLUaVO6FmrpMG0y0OTazYkGdue8naxz9ujusFumDvDfi_Mb8O-mzyADpzp0B0Op_S9dIZXbvJqCnntDG_c5M0U8tb9r7yBZ-J-ZLfsuPr1HQAA__8CqbEl # Count the rows in the NumToStr table. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT count(*) FROM NumToStr] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslE2LszAQx-_Pp3iYUxcCNWrfPHXZUw-rS1_YwyLFNYMIbSJJhF2K331RD1Vpo6DHJP7zm98Y5gZcMPSjKyrwvoACARsIOEDABQILCAlkUsSolJDlJ3Vgx37AswikPMt1uR0SiIVE8G6gU31B8OAYfV9wjxFDObeAAEMdpZcKk8n0GsnfLc-vWigtgUCQa--_LzhCWBAQub5frHSUIHi0IMPhr0kiMYm0kPNFm_0WnPzjeR98HmYvT1n2U9YdkXMhGUpkrfvDwlwN7bTicHo_7_zjbEufV-O0qqHD204nb3sPvCG6HN12e7ioPbloD7whuhot6gwXdSYX7YE3RNejRd3hou7koj3whuhm0onxgLVHlQmusDM5Ht9slRMFWYL1-FEilzF-SBFXmHoZVLlqg6HS9SmtFzteH5UFNsPUGLZbYdoN22ZyD9oxpl1z2B1T98IYXprJyzHklTG8NpPXY8gb87-yep6J-ZF12WHx7y8AAP__2avBCw== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslE2LszAQx-_Pp3iYUxcCNWrfPHXZUw-rS1_YwyLFNYMIbSJJhF2K331RD1Vpo6DHJP7zm98Y5gZcMPSjKyrwvoACARsIOEDABQILCAlkUsSolJDlJ3Vgx37AswikPMt1uR0SiIVE8G6gU31B8OAYfV9wjxFDObeAAEMdpZcKk8n0GsnfLc-vWigtgUCQa--_LzhCWBAQub5frHSUIHi0IMPhr0kiMYm0kPNFm_0WnPzjeR98HmYvT1n2U9YdkXMhGUpkrfvDwlwN7bTicHo_7_zjbEufV-O0qqHD204nb3sPvCG6HN12e7ioPbloD7whuhot6gwXdSYX7YE3RNejRd3hou7koj3whuhm0onxgLVHlQmusDM5Ht9slRMFWYL1-FEilzF-SBFXmHoZVLlqg6HS9SmtFzteH5UFNsPUGLZbYdoN22ZyD9oxpl1z2B1T98IYXprJyzHklTG8NpPXY8gb87-yep6J-ZF12WHx7y8AAP__2avBCw== # Count how many numbers contain the digit 5. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT count(*) FROM NumToStr WHERE str LIKE '%five%'] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzElF2LnDAUhu_7K4YDy24hsBN1ZmdzNaW0RdpqcVx6UWSx5lQEx0gSS8vify_qxarMRMGCl368eV6eE84LFIKjF59RAfsBFAhYQMAGAg4Q2EFEoJQiQaWEbH7pAi7_A2xLICvKSjevIwKJkAjsBXSmcwQGYfwzxwBjjvJ-CwQ46jjLW0wps3Ms_x6L6qyF0hIIfMxyjZJtjtbmi_v5w-b25lf2G29uGWOnMHC9T0DAr3TzA0Q1AVHpV7TScYrAaE3m13uXphLTWAt5vxu2e-8_eeFz4H8_3b29yrKusl4RVSEkR4l8cH5Um9vQkazT09dn1wvvjvR6G3vQhs4fDF1hMBP1eir2iwdjzVdhraBiol5PxcNiFfZ8FfYKKibq9VQcFqtw5qtwVlAxUa-n4vG_bq4LrABVKQqFow12-eRts9mQp9itQSUqmeA3KZIW0z36ba59wVHp7ivtHtyi-9QU7IepMWwNwnQctszkCbRtTDvmsLOk984Y3pvJ-yXkB2P4YCYflpAfzbPaTlwT8yUbs6P6zb8AAAD__x4t7Hs= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzElF2LnDAUhu_7K4YDy24hsBN1ZmdzNaW0RdpqcVx6UWSx5lQEx0gSS8vify_qxarMRMGCl368eV6eE84LFIKjF59RAfsBFAhYQMAGAg4Q2EFEoJQiQaWEbH7pAi7_A2xLICvKSjevIwKJkAjsBXSmcwQGYfwzxwBjjvJ-CwQ46jjLW0wps3Ms_x6L6qyF0hIIfMxyjZJtjtbmi_v5w-b25lf2G29uGWOnMHC9T0DAr3TzA0Q1AVHpV7TScYrAaE3m13uXphLTWAt5vxu2e-8_eeFz4H8_3b29yrKusl4RVSEkR4l8cH5Um9vQkazT09dn1wvvjvR6G3vQhs4fDF1hMBP1eir2iwdjzVdhraBiol5PxcNiFfZ8FfYKKibq9VQcFqtw5qtwVlAxUa-n4vG_bq4LrABVKQqFow12-eRts9mQp9itQSUqmeA3KZIW0z36ba59wVHp7ivtHtyi-9QU7IepMWwNwnQctszkCbRtTDvmsLOk984Y3pvJ-yXkB2P4YCYflpAfzbPaTlwT8yUbs6P6zb8AAAD__x4t7Hs= # # -- Limit tests -- @@ -132,18 +132,18 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJzElF2LnDAUhu_7K4YDy24hsB query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT y FROM NumToStr LIMIT 5] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyMjzFLBEEMhXt_xfHqgLuFzVTXHognh51sMe6EY2B3siQZUI7573I7hVgIlu-95H3JDUUSv8SVDeEdIybCpjKzmejd6gOn9IkwEHLZqt_tiTCLMsINnn1hBLzFj4UvHBPr4wBCYo952Ws3zWvUr2Opq4u5gnCuHg7HEYTnvGY_PGFqBKn-AzCPV0YYG_3_iAvbJsX4F_-v5qFNBE5X7o-aVJ35VWXeMV2e973dSGze07GLU-lRm9rDdwAAAP__KwVtCg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyMjzFLBEEMhXt_xfHqgLuFzVTXHognh51sMe6EY2B3siQZUI7573I7hVgIlu-95H3JDUUSv8SVDeEdIybCpjKzmejd6gOn9IkwEHLZqt_tiTCLMsINnn1hBLzFj4UvHBPr4wBCYo952Ws3zWvUr2Opq4u5gnCuHg7HEYTnvGY_PGFqBKn-AzCPV0YYG_3_iAvbJsX4F_-v5qFNBE5X7o-aVJ35VWXeMV2e973dSGze07GLU-lRm9rDdwAAAP__KwVtCg== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT y FROM NumToStr ORDER BY y LIMIT 5] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyMjzFLBEEMhXt_xfHqgLuFzVTXHognh51sMe6EY2B3siQZUI7573I7hVgIlu-95H3JDUUSv8SVDeEdIybCpjKzmejd6gOn9IkwEHLZqt_tiTCLMsINnn1hBLzFj4UvHBPr4wBCYo952Ws3zWvUr2Opq4u5gnCuHg7HEYTnvGY_PGFqBKn-AzCPV0YYG_3_iAvbJsX4F_-v5qFNBE5X7o-aVJ35VWXeMV2e973dSGze07GLU-lRm9rDdwAAAP__KwVtCg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyMjzFLBEEMhXt_xfHqgLuFzVTXHognh51sMe6EY2B3siQZUI7573I7hVgIlu-95H3JDUUSv8SVDeEdIybCpjKzmejd6gOn9IkwEHLZqt_tiTCLMsINnn1hBLzFj4UvHBPr4wBCYo952Ws3zWvUr2Opq4u5gnCuHg7HEYTnvGY_PGFqBKn-AzCPV0YYG_3_iAvbJsX4F_-v5qFNBE5X7o-aVJ35VWXeMV2e973dSGze07GLU-lRm9rDdwAAAP__KwVtCg== # Test that the correct node is chosen in a reverse scan with multiple spans. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT y FROM NumToStr WHERE y < 1000 OR y > 9000 ORDER BY y DESC LIMIT 5] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyMkDFrwzAQhff-ivBmldiBLJqyBkpSQrfiQbWOILB9QneCluD_XmQNTQpNM967-57e0wUTezq4kQT2HS0MtugMYuKeRDgVuR7t_SdsYxCmmLXInUHPiWAv0KADweLAzxzXxcWTujAsZ7MBZ_2BRN2ZYDezuTJu7xu_uY-BTuQ8pXVzY4-YwujS127Ko7JogsExq13tSoyXMAZdbfFXiPYmxD_tTiSRJ6GH6jVzZ0D-TPUHhXPq6TVxvzxTx-PCLYIn0brd1GE_1VUJeA23d-HmF9zNT98BAAD___cAnxU= +https://cockroachdb.github.io/distsqlplan/decode.html#eJyMkDFrwzAQhff-ivBmldiBLJqyBkpSQrfiQbWOILB9QneCluD_XmQNTQpNM967-57e0wUTezq4kQT2HS0MtugMYuKeRDgVuR7t_SdsYxCmmLXInUHPiWAv0KADweLAzxzXxcWTujAsZ7MBZ_2BRN2ZYDezuTJu7xu_uY-BTuQ8pXVzY4-YwujS127Ko7JogsExq13tSoyXMAZdbfFXiPYmxD_tTiSRJ6GH6jVzZ0D-TPUHhXPq6TVxvzxTx-PCLYIn0brd1GE_1VUJeA23d-HmF9zNT98BAAD___cAnxU= query TTTTT EXPLAIN (VERBOSE) SELECT x FROM (SELECT x, 2*x, x+1 FROM NumToSquare) @@ -157,7 +157,7 @@ scan · · (x) · query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM (SELECT x, 2*x, x+1 FROM NumToSquare)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyMj7FqxDAQRPt8RZhaELtVde01uXCkCyoUazgMtuTsriDh0L8HW0VIEUg5M9J77B25JD7HlQr_hhHBYZMyUbXIXvUH5_QJPzjMeau218FhKkL4O2y2hfB4je8Lr4yJ8jTAIdHivBzYTeY1ytcp19WKftQohMOlmn88jQjNoVT7IavFG-HH5v5vv1K3kpW_xH-RhxYcmG7sF2qpMvFFynRoerwc_44iUa2vYw_n3KcW2sN3AAAA___R0mt- +https://cockroachdb.github.io/distsqlplan/decode.html#eJyMj7FqxDAQRPt8RZhaELtVde01uXCkCyoUazgMtuTsriDh0L8HW0VIEUg5M9J77B25JD7HlQr_hhHBYZMyUbXIXvUH5_QJPzjMeau218FhKkL4O2y2hfB4je8Lr4yJ8jTAIdHivBzYTeY1ytcp19WKftQohMOlmn88jQjNoVT7IavFG-HH5v5vv1K3kpW_xH-RhxYcmG7sF2qpMvFFynRoerwc_44iUa2vYw_n3KcW2sN3AAAA___R0mt- query TTTTT EXPLAIN (VERBOSE) SELECT y, str, repeat('test', y) AS res FROM NumToStr ORDER BY res @@ -199,4 +199,4 @@ render · · (y, str, res) query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT count(*) FROM (SELECT 1 AS one FROM NumToSquare WHERE x > 10 ORDER BY xsquared LIMIT 10)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkcFKxDAQhu8-hcxJMbBN99bTiqcF2Up3xYMUic1QAm2nTiagLH13aXPQCi3ucf7J93-BOUNHFg-mRQ_ZK2goFfRMFXpPPEbxwd5-QpYocF0fZIxLBRUxQnYGcdIgZHAy7w0WaCzyJgEFFsW4Zqrt2bWGv3ZdaIX8RzCMUA4KKMhPnxdTI2R6UP93HokFeaPnul16BwoeXevkWieLpvQS031dM9ZGiDfp3PaQPx9Ob0X-cry5XXRtL3EV6HvqPM48S83JUCpAW2O8lqfAFT4xVZMmjvnETYFFL3Gr47Dv4mr84G9Yr8LpOpyuwts_cDlcfQcAAP__-WfWZA== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkcFKxDAQhu8-hcxJMbBN99bTiqcF2Up3xYMUic1QAm2nTiagLH13aXPQCi3ucf7J93-BOUNHFg-mRQ_ZK2goFfRMFXpPPEbxwd5-QpYocF0fZIxLBRUxQnYGcdIgZHAy7w0WaCzyJgEFFsW4Zqrt2bWGv3ZdaIX8RzCMUA4KKMhPnxdTI2R6UP93HokFeaPnul16BwoeXevkWieLpvQS031dM9ZGiDfp3PaQPx9Ob0X-cry5XXRtL3EV6HvqPM48S83JUCpAW2O8lqfAFT4xVZMmjvnETYFFL3Gr47Dv4mr84G9Yr8LpOpyuwts_cDlcfQcAAP__-WfWZA== diff --git a/pkg/sql/opt/exec/execbuilder/testdata/distsql_union b/pkg/sql/opt/exec/execbuilder/testdata/distsql_union index 0a283a561cf9..4b25b39530d1 100644 --- a/pkg/sql/opt/exec/execbuilder/testdata/distsql_union +++ b/pkg/sql/opt/exec/execbuilder/testdata/distsql_union @@ -34,53 +34,53 @@ subtest Union query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM xyz UNION ALL SELECT x FROM xyz ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lc1vnDAQxe_9K6q51tXuGNgPTnvNJanS3ioOFI8ipA1GtpGSRvu_V4BQuqtkzIc58vF7b_zmSX6DSiu6z5_JQvobEARIEBCBgBgEJJAJqI0uyFpt2l964E69QLoVUFZ149rXmYBCG4L0DVzpzgQp_Mr_nOmRckVmswUBilxenjub2pTPuXk9vbz-BQEPjUu_nhCyiwDduHdF6_InghQvYp5rssRVTnH9qY0js8Gbc57w26f60Rz9JIT-u6w2igypj0Q_GOJef9f1Rl6f8TP7-Moexy8Nw1VlgusuXFU8rsMqce4qR-rv5urL8anJcLua4LoPtyuP65ClXCnLQX8_Vz8an1oUblcTXA_hduVxHbKMVspy0D_M1Y_HpxaH29UE12O4XXlchyzjlbIc9I8rXcePZGtdWRp1E27bu5TUE_V3r9WNKeiH0UVn0z8-dFz3QpF1_VfZP9xV_ad2wP9hZOGIhyULx1cw3sLREjjmz4z83AlL73l4x8IHHt4vOfRhCXxkYfQkhnzJ0Ncyvmae0XFRz5AvGiae0fmq4c6D813zzc6XzUfzbcOjZ3S-b3LrwfnGeWaXfOFu6ezy5V8AAAD__wH6wcY= +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lc1vnDAQxe_9K6q51tXuGNgPTnvNJanS3ioOFI8ipA1GtpGSRvu_V4BQuqtkzIc58vF7b_zmSX6DSiu6z5_JQvobEARIEBCBgBgEJJAJqI0uyFpt2l964E69QLoVUFZ149rXmYBCG4L0DVzpzgQp_Mr_nOmRckVmswUBilxenjub2pTPuXk9vbz-BQEPjUu_nhCyiwDduHdF6_InghQvYp5rssRVTnH9qY0js8Gbc57w26f60Rz9JIT-u6w2igypj0Q_GOJef9f1Rl6f8TP7-Moexy8Nw1VlgusuXFU8rsMqce4qR-rv5urL8anJcLua4LoPtyuP65ClXCnLQX8_Vz8an1oUblcTXA_hduVxHbKMVspy0D_M1Y_HpxaH29UE12O4XXlchyzjlbIc9I8rXcePZGtdWRp1E27bu5TUE_V3r9WNKeiH0UVn0z8-dFz3QpF1_VfZP9xV_ad2wP9hZOGIhyULx1cw3sLREjjmz4z83AlL73l4x8IHHt4vOfRhCXxkYfQkhnzJ0Ncyvmae0XFRz5AvGiae0fmq4c6D813zzc6XzUfzbcOjZ3S-b3LrwfnGeWaXfOFu6ezy5V8AAAD__wH6wcY= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM xyz UNION SELECT x FROM xyz ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslU1r20AQhu_9FWWuXbBnV7JjnXLoJZempL0VHVRpCAJHa3ZXkDT4vxdb4ETGnv3yUZLfeffxPLDvMOiOfjQvZKH6AwgCJAhQIKAAASXUAnZGt2StNoefTIGH7hWqpYB-2I3u8LoW0GpDUL2D692WoILfzd8tPVHTkVksQUBHrum3x5qd6V8a83b_-vYPBDyOrvp6j1DvBejRfUy0rnkmqHAvwlu_99b1Q-sW5bySmS9j5n-mwiwslYSF4VzF1YKPueOgTUeGutnUes8dQS6Dj1DGMP7SxpFZSDwf_-3q_NVsPkas7nZCelpPf9sqUcgYqiwslYSF4VxzIWU4l7zdtjytJ6x14rYiqDALSyVhYTjXfFsqnEvdblue1hPWXeK2IqgwC0slYWE413xbRThXcbtteVpPWJvEbUVQYRaWSsLCcK7rV_OFgieyOz1YOruiL09eHq5u6p5puuetHk1LP41ujzXT4-Mxd3zRkXXTV5weHobp0-GAn8PIhotZGM_Dkg0rvlnlNBdsuOSbSzYsJZ9esek1H17nQN-x4Q3fvMlpRo9jPsmyLENeM_R4hlmiIW8aelRD3jVfOe8aemTDLNuQ1w09vmGWcJIXTnqEk3HC1fsv_wMAAP__BkP9WA== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslU1r20AQhu_9FWWuXbBnV7JjnXLoJZempL0VHVRpCAJHa3ZXkDT4vxdb4ETGnv3yUZLfeffxPLDvMOiOfjQvZKH6AwgCJAhQIKAAASXUAnZGt2StNoefTIGH7hWqpYB-2I3u8LoW0GpDUL2D692WoILfzd8tPVHTkVksQUBHrum3x5qd6V8a83b_-vYPBDyOrvp6j1DvBejRfUy0rnkmqHAvwlu_99b1Q-sW5bySmS9j5n-mwiwslYSF4VzF1YKPueOgTUeGutnUes8dQS6Dj1DGMP7SxpFZSDwf_-3q_NVsPkas7nZCelpPf9sqUcgYqiwslYSF4VxzIWU4l7zdtjytJ6x14rYiqDALSyVhYTjXfFsqnEvdblue1hPWXeK2IqgwC0slYWE413xbRThXcbtteVpPWJvEbUVQYRaWSsLCcK7rV_OFgieyOz1YOruiL09eHq5u6p5puuetHk1LP41ujzXT4-Mxd3zRkXXTV5weHobp0-GAn8PIhotZGM_Dkg0rvlnlNBdsuOSbSzYsJZ9esek1H17nQN-x4Q3fvMlpRo9jPsmyLENeM_R4hlmiIW8aelRD3jVfOe8aemTDLNuQ1w09vmGWcJIXTnqEk3HC1fsv_wMAAP__BkP9WA== # UNION with no overlap. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM xyz WHERE x < 3 UNION SELECT x FROM xyz WHERE x >= 3 ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lkFr4zAQhe_7K8JcVxCPbCeNYaGHZSGXdun2tuuD1x6KIbWCJEO7Jf99cQxpHZqRZEGOlvLmzZf3DnqDTjV0Vz2TgeI3IAiQICAFARkIyKEUsNeqJmOUHn4yCrbNCxSJ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fGDyQ2avO0Nkz5PPJyfA8oeaJxreMUb2u6adW9dFm_Lw_6o4HDRk73uL4se3Gq2HBj2JkxdlEjOdiyYpT3jmNcc5Ycc4756xYSl69YtVrXryOgb5hxRveeRPjjI6OuUoW1TLka4aOnmFU0ZBvGjqqhnzXXOZ819BRNoxqG_J1Q0ffMKpwki-cdBROhhWuPHz5HwAA__9soUkq # UNION with partial overlap. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM xyz WHERE x <= 4 UNION SELECT x FROM xyz WHERE x > 1 ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lk9r20AQxe_9FGauXbBmJdmxoJBDKfiSlDS3VgdVGoLA0ZrdFSQN_u5FFjiRiWf_CHzUrt-8-fm9w75Bpxq6q57JQPEbEARIEJCCgAwE5FAK2GtVkzFKDz8ZBdvmBYpEQNvtezsclwJqpQmKN7Ct3REU8Fj93dEDVQ3pZQICGrJVuzva7HX7XOnX25fXfyDgR7uzpIvFLS7-9EmS1t8WWVEU27tHEHDf2-EGyoMA1dt3O2OrJ4ICD8J_pe-tsW1X22U-3YeZL0Pmf0TGIGZaoDdyGoWM_szZRYP3uX2ndEOamsnU8sCtIBPvFfIQxl9KW9JLiefjv16cv5rMx4BYr9Rkx0qn_3QV2eQQ5CDm-Cb7IqM_87TJ0p9ZXilmx0on5nVkzAHIGMQcH7MvMvozT2NO_ZnTK8XsWOnEfBMZcwAyBjHHx-yLjP7M05gzf-bsSjE7VjoxbyJjDkDGIOb4mH2R0Z_58vPjE4MHMnvVGTp7hnw-ORmeJ9Q80fiWMarXNf3Uqj7ajJ_3R93xoCFjx1scP7bdeDUs-FGMrDibiPFcLFlxyjunc5wzVpzzzjkrlpJXr1j1mhev50DfsOIN77yZ44yOjrlKNqtlyNcMHT3DWUVDvmnoqBryXXOZ811DR9lwVtuQrxs6-oazCif5wklH4WRY4crDl_8BAAD__93PSSU= +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lk9r20AQxe_9FGauXbBmJdmxoJBDKfiSlDS3VgdVGoLA0ZrdFSQN_u5FFjiRiWf_CHzUrt-8-fm9w75Bpxq6q57JQPEbEARIEJCCgAwE5FAK2GtVkzFKDz8ZBdvmBYpEQNvtezsclwJqpQmKN7Ct3REU8Fj93dEDVQ3pZQICGrJVuzva7HX7XOnX25fXfyDgR7uzpIvFLS7-9EmS1t8WWVEU27tHEHDf2-EGyoMA1dt3O2OrJ4ICD8J_pe-tsW1X22U-3YeZL0Pmf0TGIGZaoDdyGoWM_szZRYP3uX2ndEOamsnU8sCtIBPvFfIQxl9KW9JLiefjv16cv5rMx4BYr9Rkx0qn_3QV2eQQ5CDm-Cb7IqM_87TJ0p9ZXilmx0on5nVkzAHIGMQcH7MvMvozT2NO_ZnTK8XsWOnEfBMZcwAyBjHHx-yLjP7M05gzf-bsSjE7VjoxbyJjDkDGIOb4mH2R0Z_58vPjE4MHMnvVGTp7hnw-ORmeJ9Q80fiWMarXNf3Uqj7ajJ_3R93xoCFjx1scP7bdeDUs-FGMrDibiPFcLFlxyjunc5wzVpzzzjkrlpJXr1j1mhev50DfsOIN77yZ44yOjrlKNqtlyNcMHT3DWUVDvmnoqBryXXOZ811DR9lwVtuQrxs6-oazCif5wklH4WRY4crDl_8BAAD__93PSSU= # UNION ALL with swapped column orders. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x, y FROM xyz UNION ALL SELECT y, x from xyz] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lLtugzAYhfc-RXVmV8GG3JhYsyRV1K1ioPhXhJRgZBspacS7V4EhTURaqN3Rl4-P88s6Z5RK0jo7kEH8Dg4GAYYQDBEYpkgZKq1yMkbpy5UOWMkj4oChKKvaXrZThlxpQnyGLeyeEOMt-9jTljJJehKAQZLNin2rqXRxyPQpOZ4-wbCpbfyccJYIpA2Dqu31o8ZmO0LMG_Y38fR3sWAJfygWD8VXX10qLUmTvHGlTc-vrdWLqiY8uLvZ7w5v3Hx4aO512iPEM6_TFsPFwmviEeK518ThcHHoNfEI8cJr4mi4OPKaeIR4-W8d0iPekqlUaWhQQwSXjiG5o66QjKp1Tq9a5a2mW25art2QZGx3KrrFqmyP2sl8h7kLLH6EOb-hg3s6dFFHLvDUBZ65wHMXeOECL51eybg3ljZPXwEAAP__0V3EcQ== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lLtugzAYhfc-RXVmV8GG3JhYsyRV1K1ioPhXhJRgZBspacS7V4EhTURaqN3Rl4-P88s6Z5RK0jo7kEH8Dg4GAYYQDBEYpkgZKq1yMkbpy5UOWMkj4oChKKvaXrZThlxpQnyGLeyeEOMt-9jTljJJehKAQZLNin2rqXRxyPQpOZ4-wbCpbfyccJYIpA2Dqu31o8ZmO0LMG_Y38fR3sWAJfygWD8VXX10qLUmTvHGlTc-vrdWLqiY8uLvZ7w5v3Hx4aO512iPEM6_TFsPFwmviEeK518ThcHHoNfEI8cJr4mi4OPKaeIR4-W8d0iPekqlUaWhQQwSXjiG5o66QjKp1Tq9a5a2mW25art2QZGx3KrrFqmyP2sl8h7kLLH6EOb-hg3s6dFFHLvDUBZ65wHMXeOECL51eybg3ljZPXwEAAP__0V3EcQ== # UNION ALL and UNION with different ORDER BY types. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) UNION ALL (SELECT x FROM xyz ORDER BY z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lc1vnDAQxe_9K6q51tXuGNgPTnvNJanS3ioOFI8ipA1GtpGSRvu_V4BQuqtkzIc58vF7b_zmSX6DSiu6z5_JQvobEARIEBCBgBgEJJAJqI0uyFpt2l964E69QLoVUFZ149rXmYBCG4L0DVzpzgQp_Mr_nOmRckVmswUBilxenjub2pTPuXk9vbz-BQEPjUu_nhCyiwDduHdF6_InghQvYp5rssRVTnH9qY0js8Gbc57w26f60Rz9JIT-u6w2igypj0Q_GOJef9f1Rl6f8TP7-Moexy8Nw1VlgusuXFU8rsMqce4qR-rv5urL8anJcLua4LoPtyuP65ClXCnLQX8_Vz8an1oUblcTXA_hduVxHbKMVspy0D_M1Y_HpxaH29UE12O4XXlchyzjlbIc9I8rXcePZGtdWRp1E27bu5TUE_V3r9WNKeiH0UVn0z8-dFz3QpF1_VfZP9xV_ad2wP9hZOGIhyULx1cw3sLREjjmz4z83AlL73l4x8IHHt4vOfRhCXxkYfQkhnzJ0Ncyvmae0XFRz5AvGiae0fmq4c6D813zzc6XzUfzbcOjZ3S-b3LrwfnGeWaXfOFu6ezy5V8AAAD__wH6wcY= +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lc1vnDAQxe_9K6q51tXuGNgPTnvNJanS3ioOFI8ipA1GtpGSRvu_V4BQuqtkzIc58vF7b_zmSX6DSiu6z5_JQvobEARIEBCBgBgEJJAJqI0uyFpt2l964E69QLoVUFZ149rXmYBCG4L0DVzpzgQp_Mr_nOmRckVmswUBilxenjub2pTPuXk9vbz-BQEPjUu_nhCyiwDduHdF6_InghQvYp5rssRVTnH9qY0js8Gbc57w26f60Rz9JIT-u6w2igypj0Q_GOJef9f1Rl6f8TP7-Moexy8Nw1VlgusuXFU8rsMqce4qR-rv5urL8anJcLua4LoPtyuP65ClXCnLQX8_Vz8an1oUblcTXA_hduVxHbKMVspy0D_M1Y_HpxaH29UE12O4XXlchyzjlbIc9I8rXcePZGtdWRp1E27bu5TUE_V3r9WNKeiH0UVn0z8-dFz3QpF1_VfZP9xV_ad2wP9hZOGIhyULx1cw3sLREjjmz4z83AlL73l4x8IHHt4vOfRhCXxkYfQkhnzJ0Ncyvmae0XFRz5AvGiae0fmq4c6D813zzc6XzUfzbcOjZ3S-b3LrwfnGeWaXfOFu6ezy5V8AAAD__wH6wcY= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) UNION (SELECT x FROM xyz ORDER BY z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyslU1r20AQhu_9FWWuXbBnV7JjnXLoJZempL0VHVRpCAJHa3ZXkDT4vxdb4ETGnv3yUZLfeffxPLDvMOiOfjQvZKH6AwgCJAhQIKAAASXUAnZGt2StNoefTIGH7hWqpYB-2I3u8LoW0GpDUL2D692WoILfzd8tPVHTkVksQUBHrum3x5qd6V8a83b_-vYPBDyOrvp6j1DvBejRfUy0rnkmqHAvwlu_99b1Q-sW5bySmS9j5n-mwiwslYSF4VzF1YKPueOgTUeGutnUes8dQS6Dj1DGMP7SxpFZSDwf_-3q_NVsPkas7nZCelpPf9sqUcgYqiwslYSF4VxzIWU4l7zdtjytJ6x14rYiqDALSyVhYTjXfFsqnEvdblue1hPWXeK2IqgwC0slYWE413xbRThXcbtteVpPWJvEbUVQYRaWSsLCcK7rV_OFgieyOz1YOruiL09eHq5u6p5puuetHk1LP41ujzXT4-Mxd3zRkXXTV5weHobp0-GAn8PIhotZGM_Dkg0rvlnlNBdsuOSbSzYsJZ9esek1H17nQN-x4Q3fvMlpRo9jPsmyLENeM_R4hlmiIW8aelRD3jVfOe8aemTDLNuQ1w09vmGWcJIXTnqEk3HC1fsv_wMAAP__BkP9WA== +https://cockroachdb.github.io/distsqlplan/decode.html#eJyslU1r20AQhu_9FWWuXbBnV7JjnXLoJZempL0VHVRpCAJHa3ZXkDT4vxdb4ETGnv3yUZLfeffxPLDvMOiOfjQvZKH6AwgCJAhQIKAAASXUAnZGt2StNoefTIGH7hWqpYB-2I3u8LoW0GpDUL2D692WoILfzd8tPVHTkVksQUBHrum3x5qd6V8a83b_-vYPBDyOrvp6j1DvBejRfUy0rnkmqHAvwlu_99b1Q-sW5bySmS9j5n-mwiwslYSF4VzF1YKPueOgTUeGutnUes8dQS6Dj1DGMP7SxpFZSDwf_-3q_NVsPkas7nZCelpPf9sqUcgYqiwslYSF4VxzIWU4l7zdtjytJ6x14rYiqDALSyVhYTjXfFsqnEvdblue1hPWXeK2IqgwC0slYWE413xbRThXcbtteVpPWJvEbUVQYRaWSsLCcK7rV_OFgieyOz1YOruiL09eHq5u6p5puuetHk1LP41ujzXT4-Mxd3zRkXXTV5weHobp0-GAn8PIhotZGM_Dkg0rvlnlNBdsuOSbSzYsJZ9esek1H17nQN-x4Q3fvMlpRo9jPsmyLENeM_R4hlmiIW8aelRD3jVfOe8aemTDLNuQ1w09vmGWcJIXTnqEk3HC1fsv_wMAAP__BkP9WA== # UNION ALL with conflicting numbers of ORDER BY columns. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) UNION ALL (SELECT x FROM xyz ORDER BY y, z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy0lc1vnDAQxe_9K6q51tXuGNgPTnvNJanS3ioOFI8ipA1GtpGSRvu_V4BQuqtkzIc58vF7b_zmSX6DSiu6z5_JQvobEARIEBCBgBgEJJAJqI0uyFpt2l964E69QLoVUFZ149rXmYBCG4L0DVzpzgQp_Mr_nOmRckVmswUBilxenjub2pTPuXk9vbz-BQEPjUu_nhCyiwDduHdF6_InghQvYp5rssRVTnH9qY0js8Gbc57w26f60Rz9JIT-u6w2igypj0Q_GOJef9f1Rl6f8TP7-Moexy8Nw1VlgusuXFU8rsMqce4qR-rv5urL8anJcLua4LoPtyuP65ClXCnLQX8_Vz8an1oUblcTXA_hduVxHbKMVspy0D_M1Y_HpxaH29UE12O4XXlchyzjlbIc9I8rXcePZGtdWRp1E27bu5TUE_V3r9WNKeiH0UVn0z8-dFz3QpF1_VfZP9xV_ad2wP9hZOGIhyULx1cw3sLREjjmz4z83AlL73l4x8IHHt4vOfRhCXxkYfQkhnzJ0Ncyvmae0XFRz5AvGiae0fmq4c6D813zzc6XzUfzbcOjZ3S-b3LrwfnGeWaXfOFu6ezy5V8AAAD__wH6wcY= +https://cockroachdb.github.io/distsqlplan/decode.html#eJy0lc1vnDAQxe_9K6q51tXuGNgPTnvNJanS3ioOFI8ipA1GtpGSRvu_V4BQuqtkzIc58vF7b_zmSX6DSiu6z5_JQvobEARIEBCBgBgEJJAJqI0uyFpt2l964E69QLoVUFZ149rXmYBCG4L0DVzpzgQp_Mr_nOmRckVmswUBilxenjub2pTPuXk9vbz-BQEPjUu_nhCyiwDduHdF6_InghQvYp5rssRVTnH9qY0js8Gbc57w26f60Rz9JIT-u6w2igypj0Q_GOJef9f1Rl6f8TP7-Moexy8Nw1VlgusuXFU8rsMqce4qR-rv5urL8anJcLua4LoPtyuP65ClXCnLQX8_Vz8an1oUblcTXA_hduVxHbKMVspy0D_M1Y_HpxaH29UE12O4XXlchyzjlbIc9I8rXcePZGtdWRp1E27bu5TUE_V3r9WNKeiH0UVn0z8-dFz3QpF1_VfZP9xV_ad2wP9hZOGIhyULx1cw3sLREjjmz4z83AlL73l4x8IHHt4vOfRhCXxkYfQkhnzJ0Ncyvmae0XFRz5AvGiae0fmq4c6D813zzc6XzUfzbcOjZ3S-b3LrwfnGeWaXfOFu6ezy5V8AAAD__wH6wcY= # Only one distinct processor should be used in the single node UNION case. query T SELECT url FROM [EXPLAIN (DISTSQL) VALUES (1), (2) UNION VALUES (2), (3)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJysjzFLBDEQhXt_xfIqhcBtVqtUIjbXqFjYSIolGc7gmiyZBIQj_10uKc4VT1i8ct7Mm_e9PXyw9DB-EEO9QkILzDEYYg7xILWDrf2E6gWcn3M6yFrAhEhQeySXJoLCyzhl4k0PAUtpdFP9eNPddZdDZ96yf-cr6CIQcjp-4TTuCKovYnWSPHPSMSD7EC1FsosEXX5huXecnDdpMyxpbuVJArmm6zPxHDzTD5JT3bQA2R21OhxyNPQUg6kxbXysvipY4tS2Qxu2vq4q4Hez_I95-NN8vTD3RZeLrwAAAP__-YjY1Q== +https://cockroachdb.github.io/distsqlplan/decode.html#eJysjzFLBDEQhXt_xfIqhcBtVqtUIjbXqFjYSIolGc7gmiyZBIQj_10uKc4VT1i8ct7Mm_e9PXyw9DB-EEO9QkILzDEYYg7xILWDrf2E6gWcn3M6yFrAhEhQeySXJoLCyzhl4k0PAUtpdFP9eNPddZdDZ96yf-cr6CIQcjp-4TTuCKovYnWSPHPSMSD7EC1FsosEXX5huXecnDdpMyxpbuVJArmm6zPxHDzTD5JT3bQA2R21OhxyNPQUg6kxbXysvipY4tS2Qxu2vq4q4Hez_I95-NN8vTD3RZeLrwAAAP__-YjY1Q== subtest Intersect @@ -88,100 +88,100 @@ subtest Intersect query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz) INTERSECT ALL (SELECT y FROM xyz) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lt9r2zAQx9_3V4R72phGLNnOD8MgYxRWKO1o8zb84MZaE0hjIzvQrOR_H0madbbT-1rxpre69ud0On0up2daZam-Th51QdEPkiRIkSCfBAUkKKRYUG6ymS6KzOw-OQCX6RNFnqDFKl-Xu3_HgmaZ0RQ9U7kol5oimib3S32rk1SbvkeCUl0mi-V-mdwsHhOzmTxtfpGgm3UZ9SaK4q2gbF2-RHwNdL_pzZNiXg0xkRRvY0FFmTxoiuRWnJdZ-L8zU29m9hpnvcpMqo1OK5HiHYk-ObG9b0kxv9PlTd6XtbpPN7mOepfX04vbu4uv096XqysStNQ_y_cT-eGzWTzM93_92bqsbf11W75Nwe8yU2rTl2G9Uh_fjB-0KNupirwEPZHEdfYpy_vKq9f45PJhZXnZ3ifp1nSLzAZuTZduTZeOTAcFP5o-ONd01f5AlVvVLDIbulVNuVVNOVINFPyo2vBc1fz2B-q7Vc0is5Fb1Xy3qvmOVAMFP6o2Ole1oP2BBm5Vs8hs7Fa1wK1qgSPVQMGPqo3_xVXxRPxbXeTZqtCtboHermY6fdCHMyiytZnp7yab7Zc5PN7suf3FINVFeXirDg-Xq8OrXYLt4WEXWMpOdNiJHvO0tKiZsoOHXeBazWzpsBM95mlVp72_ab8Ce3XYZ-GAP62AhZXklw679AcPg_7gYdQfgAb9AWjQH4Mu_cHDoD94GPUHoEF_ABr0x5C1dMRLOurSH-MuhvMwMJyHkeGABoYDGk0Am7HZ_CW1mZu2NBwCVpPTGgeay8YUq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uvM01B3gSHeAI90bU7V61_Z43VVjtrC6x9t3vwMAAP__ibc6hw== query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz) INTERSECT (SELECT y FROM xyz) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mE9v4kgQxe_7KVCfdrVeQXc1f6WVWO1EmkhRMkq4jTg4uCcgEYxsI4WJ8t1HwADBjeu53YZb_vC66lXX-8nmXSziyNyHryYVg-9CikAoEQgSgdAiEG0xDsQyiScmTeNk85Gd4DZ6E4NWIGaL5Srb_HkciEmcGDF4F9ksmxsxEKPweW4eTRiZpNkSgYhMFs7m2zLLZPYaJuvh2_qnCMTDKhs0hkqMPwIRr7LjiWkWvhgxkB9B-apfZmk2W0yyZvu05FDmzj9KnteNaZhOz3z-2INy6eGzc-llnSpZl_V614VNHM9ZLeIkMomJTk7anlLYpmqBNo8ttC_VAprUsYWORwtBpS6_hun0yWQPyyblJjVaL82gcXs_unl8uvl_1Pjv7k4EYm5-ZH8O5V__JrOX6fanw4YV2-q6bNhTnGQmaZI1tb8Lz--VGNu5ifw-9EwT9_E_8bKpW_kZny3fPykvHXJbH7FA1cMydi5ILBfnXtapknVZr3dd2IQnLmRFYtXYAppUEbHcWvAmlrwSscCG7YllTa0ssVT54Kj6kAGqHrahe0FkODiXXtapknVZr3dd2IRnXlVFZNTYAppUETLcWvBGhroSMsCG7ZFhTa0sMqh8cKg-ZICqh23oXRAZDs6ll3WqZF3W610XNuGZV6qIjBpbQJMqQoZbC97IoCshA2zYHhnW1MoiQ5cPjq4PGaDqYRv6F0SGg3PpZZ0qWZf1eteFTXjmVVdERo0toEkVIcOtBW9k6CshA2zYHhnW1Kp8lXLm_EeTLuNFakp9S9LazMxEL2Z3B2m8SibmWxJPtmV2vz5sdds_RCbNdv-Vu19uF7t_bRr8LJZ5sfws1idi6SaW5KNW0kvd91FTl1crduLET5zY0m2-Mi-W4L54tVI-amp5qXu8WrMT7_DitoNY5cUdVtzl77rLioH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610XNuGZV6qIjBpbQJMqQoZbC97IoCshA2zYHhnW1MoiQ5cPjq4PGaDqYRv6F0SGg3PpZZ0qWZf1eteFTXjmVVdERo0toEkVIcOtBW9k6CshA2zYHhnW1Kp8lXLm_EeTLuNFakp9S9LazMxEL2Z3B2m8SibmWxJPtmV2vz5sdds_RCbNdv-Vu19uF7t_bRr8LJZ5sfws1idi6SaW5KNW0kvd91FTl1crduLET5zY0m2-Mi-W4L54tVI-amp5qXu8WrMT7_DitoNY5cUdVtzl77rLioHnHivWINh9ngotgAULKk5c4NUQDLwckgHIERp4OWKDtNByOngFBm-xxQUPQI34AOQIEECOCIHkIC7SIszp4NHoeMTk5BYmJA8Z2QHXzmMGWec5I3uguEUap7Dzahh2Xg7DDuQo7Lwchp2nrAKUVTxqwMYCNQo7kKOwAzkKO5KDjVc8ZRVYOsU_weXkVtgVjxqlwbXzqEHWedIoQBplkcYl7ECNwg7kKOxIDsIO5PCpn6esApRVPGpQ2AFl0b0BTKKwA0yisAM52niesgS2hvgX5JzcCjvxqCHwQEc8aoB14klDgDRkkcYl7ECNwg7kKOxIDsIO5CjsxFOWAGWJRw16yweURfcGMIne8wEm0Ys-kKON5ylL6Nr5t-ac3A47jxoNHug0j5q89fHHH78CAAD__555ymg= # INTERSECT ALL and INTERSECT with MergeJoiner. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz ORDER BY y) INTERSECT ALL (SELECT y FROM xyz ORDER BY y)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEltGK2kAUhu_7FHKuWpiyziS6a6BgKQsVFi2udyUXWXOqguuEmRHWLr570ZRao52T6aHTO2Pyzfxz8kH-V9joEsfFM1rIvoIEAQoEJCAgBQE9yAVURs_RWm0Oj9TAqHyBrCtgtam27vB3LmCuDUL2Cm7l1ggZzIqnNU6xKNHcdEFAia5YrY_bVGb1XJjd8GX3HQRMti7rDBXkewF6636ueFroaddZFnZ5vsRQQr7PBVhXLBAyuRd_l6z3r5OpPyY7rbPdaFOiwfJspfxAUo9cOd7nwi4f0U2qG9mY-2xXYdYZjWf308f7T7POx4cHELDGb-7tUL77YFaL5fHXr6PLxtFPx0oYx7qSeazf6-pG9poDuLp3era3bP-yZVwNA5L142oo42ooI2mo2g9cxVUhINltXBVUXBVUJBWS9gNP4qoQkOwurgpJXBWSSCqk7QeexlUhINkgrgppXBXS_9BTriSaoq30xmKrFtI9nAnLBdYzsnpr5vjF6Plxm_pycuSO39sSravvqvpitKlvHQK2h_sceMCBJSu37PlpGTAyFQb3OfCAA0tW7sbILmjVpLu_04l_3okXlucz6zbplCO4HyYE98OE4H6YEpygCcF7HMH9MCG4HyYE98OU4ARNCN7nCH7LUdQPE4r6YUJRP0wpStCEonccRf0woagfJhT1w5SiBE0oOuAoKlk9gaAJSQmasJSgKU0pnOoKvLLAawu8usDsC7zCIFmNQV5UhiBb_TRlq5-mbPXTpK0ETtkaUpYu31lIWwqlKVuD-lIwTtl6UR68tub7Nz8CAAD__yjkNeg= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzEltGK2kAUhu_7FHKuWpiyziS6a6BgKQsVFi2udyUXWXOqguuEmRHWLr570ZRao52T6aHTO2Pyzfxz8kH-V9joEsfFM1rIvoIEAQoEJCAgBQE9yAVURs_RWm0Oj9TAqHyBrCtgtam27vB3LmCuDUL2Cm7l1ggZzIqnNU6xKNHcdEFAia5YrY_bVGb1XJjd8GX3HQRMti7rDBXkewF6636ueFroaddZFnZ5vsRQQr7PBVhXLBAyuRd_l6z3r5OpPyY7rbPdaFOiwfJspfxAUo9cOd7nwi4f0U2qG9mY-2xXYdYZjWf308f7T7POx4cHELDGb-7tUL77YFaL5fHXr6PLxtFPx0oYx7qSeazf6-pG9poDuLp3era3bP-yZVwNA5L142oo42ooI2mo2g9cxVUhINltXBVUXBVUJBWS9gNP4qoQkOwurgpJXBWSSCqk7QeexlUhINkgrgppXBXS_9BTriSaoq30xmKrFtI9nAnLBdYzsnpr5vjF6Plxm_pycuSO39sSravvqvpitKlvHQK2h_sceMCBJSu37PlpGTAyFQb3OfCAA0tW7sbILmjVpLu_04l_3okXlucz6zbplCO4HyYE98OE4H6YEpygCcF7HMH9MCG4HyYE98OU4ARNCN7nCH7LUdQPE4r6YUJRP0wpStCEonccRf0woagfJhT1w5SiBE0oOuAoKlk9gaAJSQmasJSgKU0pnOoKvLLAawu8usDsC7zCIFmNQV5UhiBb_TRlq5-mbPXTpK0ETtkaUpYu31lIWwqlKVuD-lIwTtl6UR68tub7Nz8CAAD__yjkNeg= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz ORDER BY y) INTERSECT (SELECT y FROM xyz ORDER BY y)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEl99r4koUx9_vXyHn6V7IRc9M_AkXvOwWtlDapfVt8SE1s1WwJiQR6pb-74sKWpPmfJ3M2H1r1U_mnJP5fDN5pVUSm9vo2eQ0-kFMASkKSFNAIQXUpWlAaZbMTJ4n2fYne-A6fqFRJ6DFKl0X24-nAc2SzNDolYpFsTQ0okn0uDT3JopN1u5QQLEposVyt0yaLZ6jbDN-2fyigO7Wxag1VjR9CyhZF8cr5kX0ZGjEb8H5q35d5MViNSva3dMlx1y6_hF53LTmUT7_4PfHGpRNDe87Z6fWdaPW2W_vYW0Rx-usV0kWm8zEJ1faXaW2TNUBZR5L6F6qBDSpYwk9hxKCRlV-i_L5gynu0rYuTWqySc2odX07ubp_uPoyaf1_c0MBLc3P4u8x__Nftnia7_467LD6tvp-J3ub_Jukbd0tD-DDtQcna7OFVP7iBKx62Cm9C8aJTedOretGrbPf3sPaIhxd5oZx4rEENKm6OLErwTlO-JPiRJ2_sZU_pcGqh7vVv6DSFp2zU-u6Uevst_ewtghHn1RDpT2WgCZVp7RdCc5Kq09SWp-_sbU_pcGqh7s1uKDSFp2zU-u6Uevst_ewtghHn3RDpT2WgCZVp7RdCc5K609SOjx_Y4f-lAarHu7W8IJKW3TOTq3rRq2z397D2iIcfQobKu2xBDSpOqXtSnB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p2zU-u6Uevst_ewtghHn1RDpT2WgCZVp7RdCc5Kq09SWp-_sbU_pcGqh7s1uKDSFp2zU-u6Uevst_ewtghHn3RDpT2WgCZVp7RdCc5K609SOjx_Y4f-lAarHu7W8IJKW3TOTq3rRq2z397D2iIcfQobKu2xBDSpOqXtSnBWOvwD7_EfVHRv8jRZ5east_TOticTP5n9jPJknc3M9yyZ7ZbZ_3u343YfxCYv9t_y_p_r1f6rbYHvYS7D_B4OT2C2g1k50UMXWvVcaK1lWokT1_LEtbh0V15ZhhnULdOq40T3XWgNdlooThzc7K4FrMpwT4RB0315o_TknTIQ6aEMD13ElmEkNqCB2DKNxJZpJDaDLEVhKscKcBvQSG6AI7sRDnY6wJHfLEcqI7ySLhJecZzleEGty_nCwHKuJIzVI1im4TMY4OghLOPwKSzj0FY5XnkABl_JVytbZRraKuPQVoCjLSvj0NZKyp4MXjE4PskpW8IrtqpK1NjYquSkUeD0puRzDBgcoJGtCAe2AhzZCnB4aJZDVnXB4Cspa2MroJGtAEe2IhxtWRlHtir5CKsGAJdTtoRXbZVPsah1OWl0B7xrVZLGxlZAI1sRDmwFOLIV4MhWLYesVmDwlZS1esuVafiaK-PwPRfg6EVXxpGtWj7KajQ6OWVLeMVWLZ9ly61P3_76HQAA___tOsc7 # INTERSECT ALL and INTERSECT with no overlap. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz WHERE x < 2) INTERSECT ALL (SELECT x FROM xyz WHERE x >= 2) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlk1r20AQhu_9FWZOLd1i7UryhyCQUlJqCE5JfGt9UKxtbHAssZIhbsh_L7ZjUkn2vForCN2iSM_uaOd5PXqmVRzpcfioUwp-kSRBigS5JMgjQT5NBSUmnuk0jc32kT0wip4ocAQtVsk62_57KmgWG03BM2WLbKkpoEl4v9S3Ooy06TokKNJZuFjutknM4jE0m8unzV8S9H2xzLQJOpey83vtOO6so4IgGI0nJOhmnW1v0PRFULzO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ukKwsNm2wSHXRG48nV7d3Vt0nn6_U1CVrqP9nHS_npwiwe5ru_Tr7622u5Nt24i02mTVf6xZP6fHJ9r8KxHTuR10WPFDGOv8RJVznFMz66vZ_bXlaXTbYnIhZV91oUEdlsRGRDEQHdOESkd25EVPVuq_Y4alF1v0WOqmYdVQ05CrpxcLR_rqNu9W677XHUoupBixx1m3XUbchR0I2Do4NzHfWqd9trj6MWVQ9b5KjXrKNeQ46CbhwcHb7H5_CR9W91msSrVFf60nW2Z6ajB73vQRqvzUz_NPFst83-8mbH7b5hIp1m-7tqfzFa7W9tC6wO9-vAUtai_Vr0kKelxZkpO7hfBy6cmS3t16KHPK2KtPM_7eZgpwi7LOzx3fJYWEl-a79OPngY5IOHUT4ADfIBaJCPXp188DDIBw-jfAAa5APQIB991tIBL-mgTj6GdQznYWA4DyPDAQ0MBzSaADZjs_xLajM3bWk4BKwmpzUONJelKZJTVSpedMmPEWC6LM0RG9UBDVwHNJId4cB2hCPdSzPUSneeRrrzNNQd4Eh3gCPdS4M0r3sP6F6aKVa6l2aKle48jXTnaag7wJHuAEe6l-aple48jXTnaag7wJHuAEe6l6Zq_lvb4XVXpdnC6j59-fAvAAD__93yhjY= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz WHERE x < 2) INTERSECT (SELECT x FROM xyz WHERE x >= 2) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mF1v4kYYhe_7K9BctaorPB98WYqUqk1VpIisEu52uXDwbLBEMLKNFDbKf18BCwQPfo-HMb5LMGfm-Mx7Htm8s0US6VH4qjMWfGWceUwwj0nmMcU81mETjy3TZKqzLEk3X9kJhtEbC3yPxYvlKt98PPHYNEk1C95ZHudzzQI2Dp_n-lGHkU7bPvNYpPMwnm-3Wabxa5iub9_WP5jH_ovnuU6D1i1vfVv5vpy2RBAEw9GYeexhlW8usMmHx5JVftwty8MXzQL-4VV39G-c5fFimrc7p3aM9Y-S53VrFmazM98_ehA2Hj6nw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26d5gzvg80N0liVnVbDstNyWHYgR2Wn5bDsNGUFoKygUQMmFqhR2YEclR3IUdmRHEy8oCkrwNAJ-gmuIDfKLmjUCAWOnUYNunWaNAKQRhiksSk7UKOyAzkqO5KDsgM5fOqnKSsAZQWNGlR2QFl0bgCTqOwAk6jsQI4mnqasBFMj6Rfkgtwou6RRI8EDnaRRA25d0qSRgDTSII1N2YEalR3IUdmRHJQdyFHZJU1ZCSgradSgt3xAWXRuAJPoPR9gEr3oAzmaeJqyEh07_dZckJtlp1GjwAOdolFTvPXJx28_AwAA__8jwRYm # INTERSECT ALL and INTERSECT with some overlap. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz WHERE x < 3) INTERSECT ALL (SELECT y FROM xyz WHERE x >= 1) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMll9v2jwUxu_fTxGdq3eaJ2In4U-kSkxTpyFVdGq523KREq8gURI5QSqr-O4TpIwloX5iUkW5KyU_-8Tn93D8Qus4ktPwSabk_yBOjAQxcoiRS4w8ChglKp7LNI3V_pEcmETP5NuMlutkk-3_HTCax0qS_0LZMltJ8mkWPqzknQwjqXo2MYpkFi5Xh20StXwK1Xb8vP1NjL4uV5lUvjXm1s-NbTtzy_F9fzKdEaPbTeZbY0HBjlG8yV53O23ysLUWYbooLj_mFOwCRmkWPkry-Y5dVrVnUrW8svi7li3eLPu0zmYdq0gqGRVWCvYkeuTMu38L08W9zG6THi81bLZNpG9NprPru_vrLzPr880NMVrJX9n_Y_7hSi0fF4e__r46L7366bUck27cxyqTqse98kl9fHN9t8axnTuR10XPFDGNP8VJT9jlMz67vVfYnteXjXcnIgZV9zsUEd5uRHhLEQHdOEakf2lERP1ui-44alD1oEOOinYdFS05CrpxdHRwqaNO_W473XHUoOphhxx12nXUaclR0I2jo8NLHXXrd9vtjqMGVY865KjbrqNuS46CbhwdHb3HdfjM-ncyTeJ1KmvddO39mcnoUeY9SOONmsvvKp4ftsk_3h64wx0mkmmWfyvyD5N1_tW-wPrwoAnMeSPaa0SP9DQ3ODNhBg-awKUzM6W9RvRIT4sybf9LOwXYLsOOFnb13XK1sOD6rb0m-dDDIB96GOUD0CAfgAb56DfJhx4G-dDDKB-ABvkANMjHQGvpUC_psEk-Rk0M18PAcD2MDAc0MBzQaAKYjM3qL6nJ3DSl4RAwmpzGONCcV6ZIQVUu9KJz_RgBpvPKHDFRHdDAdUAj2REObEc40r0yQ41019NIdz0NdQc40h3gSPfKIC3q3ge6V2aKke6VmWKku55GuutpqDvAke4AR7pX5qmR7noa6a6noe4AR7oDHOlemarFu7at111UZotW92D3358AAAD__8GFhkA= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzMll9v2jwUxu_fTxGdq3eaJ2In4U-kSkxTpyFVdGq523KREq8gURI5QSqr-O4TpIwloX5iUkW5KyU_-8Tn93D8Qus4ktPwSabk_yBOjAQxcoiRS4w8ChglKp7LNI3V_pEcmETP5NuMlutkk-3_HTCax0qS_0LZMltJ8mkWPqzknQwjqXo2MYpkFi5Xh20StXwK1Xb8vP1NjL4uV5lUvjXm1s-NbTtzy_F9fzKdEaPbTeZbY0HBjlG8yV53O23ysLUWYbooLj_mFOwCRmkWPkry-Y5dVrVnUrW8svi7li3eLPu0zmYdq0gqGRVWCvYkeuTMu38L08W9zG6THi81bLZNpG9NprPru_vrLzPr880NMVrJX9n_Y_7hSi0fF4e__r46L7366bUck27cxyqTqse98kl9fHN9t8axnTuR10XPFDGNP8VJT9jlMz67vVfYnteXjXcnIgZV9zsUEd5uRHhLEQHdOEakf2lERP1ui-44alD1oEOOinYdFS05CrpxdHRwqaNO_W473XHUoOphhxx12nXUaclR0I2jo8NLHXXrd9vtjqMGVY865KjbrqNuS46CbhwdHb3HdfjM-ncyTeJ1KmvddO39mcnoUeY9SOONmsvvKp4ftsk_3h64wx0mkmmWfyvyD5N1_tW-wPrwoAnMeSPaa0SP9DQ3ODNhBg-awKUzM6W9RvRIT4sybf9LOwXYLsOOFnb13XK1sOD6rb0m-dDDIB96GOUD0CAfgAb56DfJhx4G-dDDKB-ABvkANMjHQGvpUC_psEk-Rk0M18PAcD2MDAc0MBzQaAKYjM3qL6nJ3DSl4RAwmpzGONCcV6ZIQVUu9KJz_RgBpvPKHDFRHdDAdUAj2REObEc40r0yQ41019NIdz0NdQc40h3gSPfKIC3q3ge6V2aKke6VmWKku55GuutpqDvAke4AR7pX5qmR7noa6a6noe4AR7oDHOlemarFu7at111UZotW92D3358AAAD__8GFhkA= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz WHERE x < 3) INTERSECT (SELECT y FROM xyz WHERE x >= 1) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mEtv6kYcxff9FNasWtUVngcvS1eiam9VpCtSJexaFg6eBksEI9tIoVG-ewVcIHjw_3gY4x2vM3N85n9-snlnqzTWk-hV5yz8m3HmM8F8JpnPFPNZl818ts7Suc7zNNv95CAYx28sDHyWrNabYvfxzGfzNNMsfGdFUiw1C9k0el7qRx3FOusEzGexLqJkud9mnSWvUbYdvW3_Yz77I1kWOgu9Eff-2QSBnHsyDMPxZMp89rApQm8k2OzDZ-mmOO-WF9GLZiH_8Os7-j3Ji2Q1LzrdSzsjXlr_LHneeosoX1z5_dmDsPHwORVuFYv-4vHaucibcuHNBqMqTZzX2azSLNaZji9W2q9SaVMEwObZQvdeFlBSZws9Bwv-TS7_jPLFky4e1h1ZSmq6XevQG0-mXx-fvv429X799o35bKn_LX4c8Z--ZMnLYv_qNGHVl9W3mbCnNCt01pFGaj9Xrj-oEdu1RL4vesXEJP0lXXdUUM746vbDi-25RanbQR1wdBrU3h1RZ5OKVSwOqKubC282GFVpwpEz_EbUNWgBJVWFOjsLzqjjLaEOTNgRdUZqdVEn6rdKtMMa4Og0Kf07ssYiFW4ViwNr6ubCmw1GVZpwLLq4kTUNWkBJVbHGzoIza0RLrAETdmSNkVpd1sj6rZLtsAY4Ok3K4I6ssUiFW8XiwJq6ufBmg1GVJhyL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SELECT x, y FROM xyz INTERSECT ALL SELECT y, x from xyz] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEllGL2kwUhu-_XyHn6itM0ZlEdw0ULGWhwqLF9a7kImtOVXCdMImwdvG_F00Xa7TnZHoguYzJM_POmQd832BrU5wkL5hD9B00KDCgIAAFISjoQ6wgc3aBeW7d8ZMSGKevEPUUrLfZrjj-HCtYWIcQvUGxLjYIEcyT5w3OMEnRdXugIMUiWW9O22Ru_ZK4_eh1_xMUTHdF1BlpNTIQHxTYXfF70fNaz_vOKslXl6u8I7GCvEiWCJE-qH_L1-fzGTXS0nzmr_nOS-221qXoML1YLD6S3Cc3Dvk1yVdPWEyzrq7cwXyfYdQZT-YPs6eHL_PO58dHULDBH8X_p-AfPrn1cvX-QF3T-XyB4Hw3wk_sR5t1db86iZt7hxd76_p3r9tw0yPfoA03dbNu6qbdNPXnb9rwwyPfXRt-mGb9ME37EdSff9CGHx757tvwI2jWj6BpP8L68w_b8MMj37ANP8Jm_Qjb7D43os0wz-w2x1rNpnc8HKZLLIeV251b4DdnF6dtysfpiTv9b6eYF-VbUz6Mt-WrY8D68EACDyWwFuXWfZrWHiMzfvBAAg8lsBblrozsijZVuvcnHdDzDkhYX86sV6VDieA0zAhOw4zgNMwJztCM4H2J4DTMCE7DjOA0zAnO0IzgA4ngdxJFaZhRlIYZRWmYU5ShGUXvJYrSMKMoDTOK0jCnKEMzig4limpRT2BoRlKGZixlaE5TDue6gqwsyNqCrC4I-4KsMGhRY9BXlcHLVprmbKVpzlaaZm1lcM5Wn7J0fWc-bcmX5mz16kveOGfrVXkgbY0P__0KAAD__x91S3g= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzEllGL2kwUhu-_XyHn6itM0ZlEdw0ULGWhwqLF9a7kImtOVXCdMImwdvG_F00Xa7TnZHoguYzJM_POmQd832BrU5wkL5hD9B00KDCgIAAFISjoQ6wgc3aBeW7d8ZMSGKevEPUUrLfZrjj-HCtYWIcQvUGxLjYIEcyT5w3OMEnRdXugIMUiWW9O22Ru_ZK4_eh1_xMUTHdF1BlpNTIQHxTYXfF70fNaz_vOKslXl6u8I7GCvEiWCJE-qH_L1-fzGTXS0nzmr_nOS-221qXoML1YLD6S3Cc3Dvk1yVdPWEyzrq7cwXyfYdQZT-YPs6eHL_PO58dHULDBH8X_p-AfPrn1cvX-QF3T-XyB4Hw3wk_sR5t1db86iZt7hxd76_p3r9tw0yPfoA03dbNu6qbdNPXnb9rwwyPfXRt-mGb9ME37EdSff9CGHx757tvwI2jWj6BpP8L68w_b8MMj37ANP8Jm_Qjb7D43os0wz-w2x1rNpnc8HKZLLIeV251b4DdnF6dtysfpiTv9b6eYF-VbUz6Mt-WrY8D68EACDyWwFuXWfZrWHiMzfvBAAg8lsBblrozsijZVuvcnHdDzDkhYX86sV6VDieA0zAhOw4zgNMwJztCM4H2J4DTMCE7DjOA0zAnO0IzgA4ngdxJFaZhRlIYZRWmYU5ShGUXvJYrSMKMoDTOK0jCnKEMzig4limpRT2BoRlKGZixlaE5TDue6gqwsyNqCrC4I-4KsMGhRY9BXlcHLVprmbKVpzlaaZm1lcM5Wn7J0fWc-bcmX5mz16kveOGfrVXkgbY0P__0KAAD__x91S3g= query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x, y FROM xyz INTERSECT SELECT y, x from xyz] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEmF9r4koYxu_Pp5C5OgfmoO9M_AsLLruFLZR2ab1bvEjNbBWsCUmEuqXffVFZrYl5nxkn6V7a9ue8eTK_J5O-ilUcmdvw2WRi9EOQkEIJKbSQIhBSdMVUiiSNZybL4nT7J3vgOnoRo44Ui1Wyzrc_nkoxi1MjRq8iX-RLI0ZiEj4uzb0JI5O2O0KKyOThYrlbJkkXz2G6Gb9sfgkp7tb5qDUmOVZi-iZFvM6PX5rl4ZMRI3qT9gt_XWT5YjXL293TVc8tcaQeN615mM3PI8dJlMsk7yMgiwyUHFNlBvqiDKiJEILKUY5ftV7FaWRSE5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t4yVbNn2WLlz59--d3AAAA__8EA-kj # INTERSECT ALL and INTERSECT with different ORDER BY types. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) INTERSECT ALL (SELECT x FROM xyz ORDER BY z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8ll9r2zwUxu_fTxHO1TumEUu288cw6BiFFUo72tyNXLix1gTSyMgONCv97iNJQ2c7OY8Vb7prGv-k46PfyaMXWplM36RPuqDkB0kSpEhQSIIiEhTTVFBuzUwXhbHbR_bAVfZMSSBoscrX5fbfU0EzYzUlL1QuyqWmhCbpw1Lf6TTTth-QoEyX6WK52ya3i6fUbi6eN79I0O26THoXkqavgsy6fFvxfaGHTW-eFvPqErvnp4KKMn3UlMhXcV5l8b-uTJ2s7H2d9crYTFudVVaabkn0yJHX-5YW83td3uZ9Wev7ZJPrpHd1M7m8u7_8Oul9ub4mQUv9s_z_Qn74bBeP891fJ1_9_bVCl4bfG1tq25dxvVMfT64ftWjbsY68LXqkiBvzyeR9FdR7fHT7uLK9bO-T9Gu6Q2UDv6ZLv6ZLT6aDhh9MH5xrump_oMqvag6VDf2qpvyqpjypBhp-UG14rmph-wMN_armUNnIr2qhX9VCT6qBhh9UG52rWtT-QCO_qjlUNvarWuRXtciTaqDhB9XGf-OqeGT9O13kZlXoVrfAYNsznT3q_RkUZm1n-rs1s902-4-3O253Mch0Ue6_VfsPV6v9V9sC28PDLrCUnei4Ez3maenQM-UGD7vAtZ650nEneszTqk4Hf9JhBQ7qcMjCEX9aEQsryW8dd5kPHgbzwcNoPgAN5gPQYD4GXeaDh8F88DCaD0CD-QA0mI8ha-mIl3TUZT7GXQznYWA4DyPDAQ0MBzRKAJfYbP6SuuSmKw1DwCk5nXGguWykSEVVqXjRJR8jwHTZyBEX1QENXAc0kh3hwHaEI90bGeqkO08j3Xka6g5wpDvAke6NIK3qPgC6NzLFSfdGpjjpztNId56GugMc6Q5wpHsjT51052mkO09D3QGOdAc40r2RqtW7dsDrrhrZwuo-ff3vdwAAAP__rrw6fQ== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8ll9r2zwUxu_fTxHO1TumEUu288cw6BiFFUo72tyNXLix1gTSyMgONCv97iNJQ2c7OY8Vb7prGv-k46PfyaMXWplM36RPuqDkB0kSpEhQSIIiEhTTVFBuzUwXhbHbR_bAVfZMSSBoscrX5fbfU0EzYzUlL1QuyqWmhCbpw1Lf6TTTth-QoEyX6WK52ya3i6fUbi6eN79I0O26THoXkqavgsy6fFvxfaGHTW-eFvPqErvnp4KKMn3UlMhXcV5l8b-uTJ2s7H2d9crYTFudVVaabkn0yJHX-5YW83td3uZ9Wev7ZJPrpHd1M7m8u7_8Oul9ub4mQUv9s_z_Qn74bBeP891fJ1_9_bVCl4bfG1tq25dxvVMfT64ftWjbsY68LXqkiBvzyeR9FdR7fHT7uLK9bO-T9Gu6Q2UDv6ZLv6ZLT6aDhh9MH5xrump_oMqvag6VDf2qpvyqpjypBhp-UG14rmph-wMN_armUNnIr2qhX9VCT6qBhh9UG52rWtT-QCO_qjlUNvarWuRXtciTaqDhB9XGf-OqeGT9O13kZlXoVrfAYNsznT3q_RkUZm1n-rs1s902-4-3O253Mch0Ue6_VfsPV6v9V9sC28PDLrCUnei4Ez3maenQM-UGD7vAtZ650nEneszTqk4Hf9JhBQ7qcMjCEX9aEQsryW8dd5kPHgbzwcNoPgAN5gPQYD4GXeaDh8F88DCaD0CD-QA0mI8ha-mIl3TUZT7GXQznYWA4DyPDAQ0MBzRKAJfYbP6SuuSmKw1DwCk5nXGguWykSEVVqXjRJR8jwHTZyBEX1QENXAc0kh3hwHaEI90bGeqkO08j3Xka6g5wpDvAke6NIK3qPgC6NzLFSfdGpjjpztNId56GugMc6Q5wpHsjT51052mkO09D3QGOdAc40r2RqtW7dsDrrhrZwuo-ff3vdwAAAP__rrw6fQ== query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) INTERSECT (SELECT x FROM xyz ORDER BY z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mF9v2koQxd_vp0D7dK-uK9id5a9UKVUbqZGipEp4q3hw8DYgEYxsI4VG-e4VUCB48Ryv1_CWP5ydObNzfrJ5E_M4Mnfhi0nF4KeQIhBKBIJEILQIRFuMArFI4rFJ0zhZf2QruIlexaAViOl8sczWfx4FYhwnRgzeRDbNZkYMxDB8mpkHE0YmabZEICKThdPZpswimb6EyerqdfVbBOJ-mQ0aV1KM3gMRL7PDiWkWPhsxkO9B-arfpmk2nY-zZvu4pHX-QfK0akzCdHLi84celEsPH51LL-tUybqs17subOJwznIeJ5FJTHR00uaUwjZVC7R5aKF9rhbQpA4tdDxaCCp1-T1MJ48mu180KTep4WphBo2bu-H1w-P112Hjy-2tCMTM_Mr-vZL_fU6mz5PNTyU2rOuyYY9xkpmkSdbU_i88v1dibKcm8vfQE03cxZ_iRVO38jM-Wb5_VF465LY-YoGq-2XsnJFYLs69rFMl67Je77qwCU9cyIrEqrEFNKkiYrm14E0seSFigQ3bEcuaWlliqfLBUfUhA1Tdb0P3jMhwcC69rFMl67Je77qwCc-8qorIqLEFNKkiZLi14I0MdSFkgA3bIcOaWllkUPngUH3IAFX329A7IzIcnEsv61TJuqzXuy5swjOvVBEZNbaAJlWEDLcWvJFBF0IG2LAdMqyplUWGLh8cXR8yQNX9NvTPiAwH59LLOlWyLuv1rgub8MyrroiMGltAkypChlsL3sjQF0IG2LAdMqypVfkq5cT5DyZdxPPUlPqWpLWemYmezfYO0niZjM2PJB5vymx_vd_oNn-ITJpt_yu3v9zMt_9aN_hRLPNi-VGsj8TSTSzJR62kl7rvo6Yur1bsxImfOLGl23xlXizBffFqpXzU1PJS93i1Zife4cVtB7HKizusuMvfdZcVA889VqxBsPs8FVoACxZUnLjAqyEYeDkkA5AjNPByxAZpoeV48AoM3mKLCx6AGvEByBEggBwRAslBXKRFmOPBo9HxiMnJLUxIHjKyA66dxwyyznNG9kBxizROYefVMOy8HIYdyFHYeTkMO09ZBSireNSAjQVqFHYgR2EHchR2JAcbr3jKKrB0in-Cy8mtsCseNUqDa-dRg6zzpFGANMoijUvYgRqFHchR2JEchB3I4VM_T1kFKKt41KCwA8qiewOYRGEHmERhB3K08TxlCWwN8S_IObkVduJRQ-CBjnjUAOvEk4YAacgijUvYgRqFHchR2JEchB3IUdiJpywByhKPGvSWDyiL7g1gEr3nA0yiF30gRxvPU5bQtfNvzTm5HXYeNRo80GkeNXnro_d__gQAAP__Xf3KXg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8mF9v2koQxd_vp0D7dK-uK9id5a9UKVUbqZGipEp4q3hw8DYgEYxsI4VG-e4VUCB48Ryv1_CWP5ydObNzfrJ5E_M4Mnfhi0nF4KeQIhBKBIJEILQIRFuMArFI4rFJ0zhZf2QruIlexaAViOl8sczWfx4FYhwnRgzeRDbNZkYMxDB8mpkHE0YmabZEICKThdPZpswimb6EyerqdfVbBOJ-mQ0aV1KM3gMRL7PDiWkWPhsxkO9B-arfpmk2nY-zZvu4pHX-QfK0akzCdHLi84celEsPH51LL-tUybqs17subOJwznIeJ5FJTHR00uaUwjZVC7R5aKF9rhbQpA4tdDxaCCp1-T1MJ48mu180KTep4WphBo2bu-H1w-P112Hjy-2tCMTM_Mr-vZL_fU6mz5PNTyU2rOuyYY9xkpmkSdbU_i88v1dibKcm8vfQE03cxZ_iRVO38jM-Wb5_VF465LY-YoGq-2XsnJFYLs69rFMl67Je77qwCU9cyIrEqrEFNKkiYrm14E0seSFigQ3bEcuaWlliqfLBUfUhA1Tdb0P3jMhwcC69rFMl67Je77qwCc-8qorIqLEFNKkiZLi14I0MdSFkgA3bIcOaWllkUPngUH3IAFX329A7IzIcnEsv61TJuqzXuy5swjOvVBEZNbaAJlWEDLcWvJFBF0IG2LAdMqyplUWGLh8cXR8yQNX9NvTPiAwH59LLOlWyLuv1rgub8MyrroiMGltAkypChlsL3sjQF0IG2LAdMqypVfkq5cT5DyZdxPPUlPqWpLWemYmezfYO0niZjM2PJB5vymx_vd_oNn-ITJpt_yu3v9zMt_9aN_hRLPNi-VGsj8TSTSzJR62kl7rvo6Yur1bsxImfOLGl23xlXizBffFqpXzU1PJS93i1Zife4cVtB7HKizusuMvfdZcVA889VqxBsPs8FVoACxZUnLjAqyEYeDkkA5AjNPByxAZpoeV48AoM3mKLCx6AGvEByBEggBwRAslBXKRFmOPBo9HxiMnJLUxIHjKyA66dxwyyznNG9kBxizROYefVMOy8HIYdyFHYeTkMO09ZBSireNSAjQVqFHYgR2EHchR2JAcbr3jKKrB0in-Cy8mtsCseNUqDa-dRg6zzpFGANMoijUvYgRqFHchR2JEchB3I4VM_T1kFKKt41KCwA8qiewOYRGEHmERhB3K08TxlCWwN8S_IObkVduJRQ-CBjnjUAOvEk4YAacgijUvYgRqFHchR2JEchB3IUdiJpywByhKPGvSWDyiL7g1gEr3nA0yiF30gRxvPU5bQtfNvzTm5HXYeNRo80GkeNXnro_d__gQAAP__Xf3KXg== # INTERSECT ALL and INTERSECT with different numbers of ORDER BY columns. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) INTERSECT ALL (SELECT x FROM xyz ORDER BY y, z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8ll9r2zwUxu_fTxHO1TumEUu288cw6BiFFUo72tyNXLix1gTSyMgONCv97iNJQ2c7OY8Vb7prGv-k46PfyaMXWplM36RPuqDkB0kSpEhQSIIiEhTTVFBuzUwXhbHbR_bAVfZMSSBoscrX5fbfU0EzYzUlL1QuyqWmhCbpw1Lf6TTTth-QoEyX6WK52ya3i6fUbi6eN79I0O26THoXkqavgsy6fFvxfaGHTW-eFvPqErvnp4KKMn3UlMhXcV5l8b-uTJ2s7H2d9crYTFudVVaabkn0yJHX-5YW83td3uZ9Wev7ZJPrpHd1M7m8u7_8Oul9ub4mQUv9s_z_Qn74bBeP891fJ1_9_bVCl4bfG1tq25dxvVMfT64ftWjbsY68LXqkiBvzyeR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hh9UG52rWtT-QCO_qjlUNvarWuRXtciTaqDhB9XGf-OqeGT9O13kZlXoVrfAYNsznT3q_RkUZm1n-rs1s902-4-3O253Mch0Ue6_VfsPV6v9V9sC28PDLrCUnei4Ez3maenQM-UGD7vAtZ650nEneszTqk4Hf9JhBQ7qcMjCEX9aEQsryW8dd5kPHgbzwcNoPgAN5gPQYD4GXeaDh8F88DCaD0CD-QA0mI8ha-mIl3TUZT7GXQznYWA4DyPDAQ0MBzRKAJfYbP6SuuSmKw1DwCk5nXGguWykSEVVqXjRJR8jwHTZyBEX1QENXAc0kh3hwHaEI90bGeqkO08j3Xka6g5wpDvAke6NIK3qPgC6NzLFSfdGpjjpztNId56GugMc6Q5wpHsjT51052mkO09D3QGOdAc40r2RqtW7dsDrrhrZwuo-ff3vdwAAAP__rrw6fQ== query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) INTERSECT (SELECT x FROM xyz ORDER BY y, z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mF9v2koQxd_vp0D7dK-uK9id5a9UKVUbqZGipEp4q3hw8DYgEYxsI4VG-e4VUCB48Ryv1_CWP5ydObNzfrJ5E_M4Mnfhi0nF4KeQIhBKBIJEILQIRFuMArFI4rFJ0zhZf2QruIlexaAViOl8sczWfx4FYhwnRgzeRDbNZkYMxDB8mpkHE0YmabZEICKThdPZpswimb6EyerqdfVbBOJ-mQ0aV1KM3gMRL7PDiWkWPhsxkO9B-arfpmk2nY-zZvu4pHX-QfK0akzCdHLi84celEsPH51LL-tUybqs17subOJwznIeJ5FJTHR00uaUwjZVC7R5aKF9rhbQpA4tdDxaCCp1-T1MJ48mu180KTep4WphBo2bu-H1w-P112Hjy-2tCMTM_Mr-vZL_fU6mz5PNTyU2rOuyYY9xkpmkSdbU_i88v1dibKcm8vfQE03cxZ_iRVO38jM-Wb5_VF465LY-YoGq-2XsnJFYLs69rFMl67Je77qwCU9cyIrEqrEFNKkiYrm14E0seSFigQ3bEcuaWlliqfLBUfUhA1Tdb0P3jMhwcC69rFMl67Je77qwCc-8qorIqLEFNKkiZLi14I0MdSFkgA3bIcOaWllkUPngUH3IAFX329A7IzIcnEsv61TJuqzXuy5swjOvVBEZNbaAJlWEDLcWvJFBF0IG2LAdMqyplUWGLh8cXR8yQNX9NvTPiAwH59LLOlWyLuv1rgub8MyrroiMGltAkypChlsL3sjQF0IG2LAdMqypVfkq5cT5DyZdxPPUlPqWpLWemYmezfYO0niZjM2PJB5vymx_vd_oNn-ITJpt_yu3v9zMt_9aN_hRLPNi-VGsj8TSTSzJR62kl7rvo6Yur1bsxImfOLGl23xlXizBffFqpXzU1PJS93i1Zife4cVtB7HKizusuMvfdZcVA889VqxBsPs8FVoACxZUnLjAqyEYeDkkA5AjNPByxAZpoeV48AoM3mKLCx6AGvEByBEggBwRAslBXKRFmOPBo9HxiMnJLUxIHjKyA66dxwyyznNG9kBxizROYefVMOy8HIYdyFHYeTkMO09ZBSireNSAjQVqFHYgR2EHchR2JAcbr3jKKrB0in-Cy8mtsCseNUqDa-dRg6zzpFGANMoijUvYgRqFHchR2JEchB3I4VM_T1kFKKt41KCwA8qiewOYRGEHmERhB3K08TxlCWwN8S_IObkVduJRQ-CBjnjUAOvEk4YAacgijUvYgRqFHchR2JEchB3IUdiJpywByhKPGvSWDyiL7g1gEr3nA0yiF30gRxvPU5bQtfNvzTm5HXYeNRo80GkeNXnro_d__gQAAP__Xf3KXg== +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8mF9v2koQxd_vp0D7dK-uK9id5a9UKVUbqZGipEp4q3hw8DYgEYxsI4VG-e4VUCB48Ryv1_CWP5ydObNzfrJ5E_M4Mnfhi0nF4KeQIhBKBIJEILQIRFuMArFI4rFJ0zhZf2QruIlexaAViOl8sczWfx4FYhwnRgzeRDbNZkYMxDB8mpkHE0YmabZEICKThdPZpswimb6EyerqdfVbBOJ-mQ0aV1KM3gMRL7PDiWkWPhsxkO9B-arfpmk2nY-zZvu4pHX-QfK0akzCdHLi84celEsPH51LL-tUybqs17subOJwznIeJ5FJTHR00uaUwjZVC7R5aKF9rhbQpA4tdDxaCCp1-T1MJ48mu180KTep4WphBo2bu-H1w-P112Hjy-2tCMTM_Mr-vZL_fU6mz5PNTyU2rOuyYY9xkpmkSdbU_i88v1dibKcm8vfQE03cxZ_iRVO38jM-Wb5_VF465LY-YoGq-2XsnJFYLs69rFMl67Je77qwCU9cyIrEqrEFNKkiYrm14E0seSFigQ3bEcuaWlliqfLBUfUhA1Tdb0P3jMhwcC69rFMl67Je77qwCc-8qorIqLEFNKkiZLi14I0MdSFkgA3bIcOaWllkUPngUH3IAFX329A7IzIcnEsv61TJuqzXuy5swjOvVBEZNbaAJlWEDLcWvJFBF0IG2LAdMqyplUWGLh8cXR8yQNX9NvTPiAwH59LLOlWyLuv1rgub8MyrroiMGltAkypChlsL3sjQF0IG2LAdMqypVfkq5cT5DyZdxPPUlPqWpLWemYmezfYO0niZjM2PJB5vymx_vd_oNn-ITJpt_yu3v9zMt_9aN_hRLPNi-VGsj8TSTSzJR62kl7rvo6Yur1bsxImfOLGl23xlXizBffFqpXzU1PJS93i1Zife4cVtB7HKizusuMvfdZcVA889VqxBsPs8FVoACxZUnLjAqyEYeDkkA5AjNPByxAZpoeV48AoM3mKLCx6AGvEByBEggBwRAslBXKRFmOPBo9HxiMnJLUxIHjKyA66dxwyyznNG9kBxizROYefVMOy8HIYdyFHYeTkMO09ZBSireNSAjQVqFHYgR2EHchR2JAcbr3jKKrB0in-Cy8mtsCseNUqDa-dRg6zzpFGANMoijUvYgRqFHchR2JEchB3I4VM_T1kFKKt41KCwA8qiewOYRGEHmERhB3K08TxlCWwN8S_IObkVduJRQ-CBjnjUAOvEk4YAacgijUvYgRqFHchR2JEchB3IUdiJpywByhKPGvSWDyiL7g1gEr3nA0yiF30gRxvPU5bQtfNvzTm5HXYeNRo80GkeNXnro_d__gQAAP__Xf3KXg== # INTERSECT ALL and INTERSECT with compatible ORDER BY columns that are not in the final result. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz ORDER BY z) INTERSECT ALL (SELECT y FROM xyz ORDER BY z)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEltGK2kAUhu_7FHKuWpiyziS6a6BgKQsVFi2udyUXWXOqguuEmRHWLr570ZRao52T6aHTO2Pyzfxz8kH-V9joEsfFM1rIvoIEAQoEJCAgBQE9yAVURs_RWm0Oj9TAqHyBrCtgtam27vB3LmCuDUL2Cm7l1ggZzIqnNU6xKNHcdEFAia5YrY_bVGb1XJjd8GX3HQRMti7rDBXkewF6636ueFroaddZFnZ5vsRQQr7PBVhXLBAyuRd_l6z3r5OpPyY7rbPdaFOiwfJspfxAUo9cOd7nwi4f0U2qG9mY-2xXYdYZjWf308f7T7POx4cHELDGb-7tUL77YFaL5fHXr6PLxtFPx0oYx7qSeazf6-pG9poDuLp3era3bP-yZVwNA5L142oo42ooI2mo2g9cxVUhINltXBVUXBVUJBWS9gNP4qoQkOwurgpJXBWSSCqk7QeexlUhINkgrgppXBXS_9BTriSaoq30xmKrFtI9nAnLBdYzsnpr5vjF6Plxm_pycuSO39sSravvqvpitKlvHQK2h_sceMCBJSu37PlpGTAyFQb3OfCAA0tW7sbILmjVpLu_04l_3okXlucz6zbplCO4HyYE98OE4H6YEpygCcF7HMH9MCG4HyYE98OU4ARNCN7nCH7LUdQPE4r6YUJRP0wpStCEonccRf0woagfJhT1w5SiBE0oOuAoKlk9gaAJSQmasJSgKU0pnOoKvLLAawu8usDsC7zCIFmNQV5UhiBb_TRlq5-mbPXTpK0ETtkaUpYu31lIWwqlKVuD-lIwTtl6UR68tub7Nz8CAAD__yjkNeg= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzEltGK2kAUhu_7FHKuWpiyziS6a6BgKQsVFi2udyUXWXOqguuEmRHWLr570ZRao52T6aHTO2Pyzfxz8kH-V9joEsfFM1rIvoIEAQoEJCAgBQE9yAVURs_RWm0Oj9TAqHyBrCtgtam27vB3LmCuDUL2Cm7l1ggZzIqnNU6xKNHcdEFAia5YrY_bVGb1XJjd8GX3HQRMti7rDBXkewF6636ueFroaddZFnZ5vsRQQr7PBVhXLBAyuRd_l6z3r5OpPyY7rbPdaFOiwfJspfxAUo9cOd7nwi4f0U2qG9mY-2xXYdYZjWf308f7T7POx4cHELDGb-7tUL77YFaL5fHXr6PLxtFPx0oYx7qSeazf6-pG9poDuLp3era3bP-yZVwNA5L142oo42ooI2mo2g9cxVUhINltXBVUXBVUJBWS9gNP4qoQkOwurgpJXBWSSCqk7QeexlUhINkgrgppXBXS_9BTriSaoq30xmKrFtI9nAnLBdYzsnpr5vjF6Plxm_pycuSO39sSravvqvpitKlvHQK2h_sceMCBJSu37PlpGTAyFQb3OfCAA0tW7sbILmjVpLu_04l_3okXlucz6zbplCO4HyYE98OE4H6YEpygCcF7HMH9MCG4HyYE98OU4ARNCN7nCH7LUdQPE4r6YUJRP0wpStCEonccRf0woagfJhT1w5SiBE0oOuAoKlk9gaAJSQmasJSgKU0pnOoKvLLAawu8usDsC7zCIFmNQV5UhiBb_TRlq5-mbPXTpK0ETtkaUpYu31lIWwqlKVuD-lIwTtl6UR68tub7Nz8CAAD__yjkNeg= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz ORDER BY z) INTERSECT ALL (SELECT y FROM xyz ORDER BY z)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEltGK2kAUhu_7FHKuWpiyziS6a6BgKQsVFi2udyUXWXOqguuEmRHWLr570ZRao52T6aHTO2Pyzfxz8kH-V9joEsfFM1rIvoIEAQoEJCAgBQE9yAVURs_RWm0Oj9TAqHyBrCtgtam27vB3LmCuDUL2Cm7l1ggZzIqnNU6xKNHcdEFAia5YrY_bVGb1XJjd8GX3HQRMti7rDBXkewF6636ueFroaddZFnZ5vsRQQr7PBVhXLBAyuRd_l6z3r5OpPyY7rbPdaFOiwfJspfxAUo9cOd7nwi4f0U2qG9mY-2xXYdYZjWf308f7T7POx4cHELDGb-7tUL77YFaL5fHXr6PLxtFPx0oYx7qSeazf6-pG9poDuLp3era3bP-yZVwNA5L142oo42ooI2mo2g9cxVUhINltXBVUXBVUJBWS9gNP4qoQkOwurgpJXBWSSCqk7QeexlUhINkgrgppXBXS_9BTriSaoq30xmKrFtI9nAnLBdYzsnpr5vjF6Plxm_pycuSO39sSravvqvpitKlvHQK2h_sceMCBJSu37PlpGTAyFQb3OfCAA0tW7sbILmjVpLu_04l_3okXlucz6zbplCO4HyYE98OE4H6YEpygCcF7HMH9MCG4HyYE98OU4ARNCN7nCH7LUdQPE4r6YUJRP0wpStCEonccRf0woagfJhT1w5SiBE0oOuAoKlk9gaAJSQmasJSgKU0pnOoKvLLAawu8usDsC7zCIFmNQV5UhiBb_TRlq5-mbPXTpK0ETtkaUpYu31lIWwqlKVuD-lIwTtl6UR68tub7Nz8CAAD__yjkNeg= +https://cockroachdb.github.io/distsqlplan/decode.html#eJzEltGK2kAUhu_7FHKuWpiyziS6a6BgKQsVFi2udyUXWXOqguuEmRHWLr570ZRao52T6aHTO2Pyzfxz8kH-V9joEsfFM1rIvoIEAQoEJCAgBQE9yAVURs_RWm0Oj9TAqHyBrCtgtam27vB3LmCuDUL2Cm7l1ggZzIqnNU6xKNHcdEFAia5YrY_bVGb1XJjd8GX3HQRMti7rDBXkewF6636ueFroaddZFnZ5vsRQQr7PBVhXLBAyuRd_l6z3r5OpPyY7rbPdaFOiwfJspfxAUo9cOd7nwi4f0U2qG9mY-2xXYdYZjWf308f7T7POx4cHELDGb-7tUL77YFaL5fHXr6PLxtFPx0oYx7qSeazf6-pG9poDuLp3era3bP-yZVwNA5L142oo42ooI2mo2g9cxVUhINltXBVUXBVUJBWS9gNP4qoQkOwurgpJXBWSSCqk7QeexlUhINkgrgppXBXS_9BTriSaoq30xmKrFtI9nAnLBdYzsnpr5vjF6Plxm_pycuSO39sSravvqvpitKlvHQK2h_sceMCBJSu37PlpGTAyFQb3OfCAA0tW7sbILmjVpLu_04l_3okXlucz6zbplCO4HyYE98OE4H6YEpygCcF7HMH9MCG4HyYE98OU4ARNCN7nCH7LUdQPE4r6YUJRP0wpStCEonccRf0woagfJhT1w5SiBE0oOuAoKlk9gaAJSQmasJSgKU0pnOoKvLLAawu8usDsC7zCIFmNQV5UhiBb_TRlq5-mbPXTpK0ETtkaUpYu31lIWwqlKVuD-lIwTtl6UR68tub7Nz8CAAD__yjkNeg= # INTERSECT ALL and INTERSECT with a projection on the result. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM ((SELECT x, y FROM xyz) INTERSECT ALL (SELECT x, y FROM xyz))] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEllGL2kwUhu-_XyHn6itM0ZlEdw0ULGWhwqLF9a7kImtOVXCdMDPC2sX_XjRdrNHOyfRAchmTZ-adMw_4vsFW5zjJXtBC8h0kCFAgIAIBMQjoQyqgMHqB1mpz_KQExvkrJD0B622xc8efUwELbRCSN3Brt0FIYJ49b3CGWY6m2wMBObpsvTltU5j1S2b2o9f9TxAw3bmkM5JipCA9CNA793vR81rP-84qs6vLVd6RVIB12RIhkQfxb_n6zeRTf813Xmq31SZHg_nFYumRpD65ccivmV09oZsWXVm5g_m-wKQznswfZk8PX-adz4-PIGCDP9z_p-AfPpn1cvX-cB5DZQbnw0WMw91IPtEfddGV_eoYbu4dX-wt61-8bEPMgHyDNsSUzYopGxVT1R--akOOgHx3bcihmpVDNSpHVH_4URtyBOS7b0OOqFk5okbliOsPP25DjoB8wzbkiJuVI26t79zINUNb6K3FWm2mdzwZ5kssJ2X1zizwm9GL0zbl4_TEnf6rc7SufKvKh_G2fHUMWB8ecOAhB5as3LLvp2XAyFQYPODAQw4sWbkrI7uiVZXu_UlH_nlHXlhezqxXpWOO4H6YENwPE4L7YUpwgiYE73ME98OE4H6YENwPU4ITNCH4gCP4HUdRP0wo6ocJRf0wpShBE4recxT1w4SifphQ1A9TihI0oeiQo6hk9QSCJiQlaMJSgqY0pXCqK_DKAq8t8OoCsy_wCoNkNQZ5VRmCbPXTlK1-mrLVT5O2Ejhla0hZur6zkLYUSlO2BvWlYJyy9ao8eG1ND__9CgAA___b20hi +https://cockroachdb.github.io/distsqlplan/decode.html#eJzEllGL2kwUhu-_XyHn6itM0ZlEdw0ULGWhwqLF9a7kImtOVXCdMDPC2sX_XjRdrNHOyfRAchmTZ-adMw_4vsFW5zjJXtBC8h0kCFAgIAIBMQjoQyqgMHqB1mpz_KQExvkrJD0B622xc8efUwELbRCSN3Brt0FIYJ49b3CGWY6m2wMBObpsvTltU5j1S2b2o9f9TxAw3bmkM5JipCA9CNA793vR81rP-84qs6vLVd6RVIB12RIhkQfxb_n6zeRTf813Xmq31SZHg_nFYumRpD65ccivmV09oZsWXVm5g_m-wKQznswfZk8PX-adz4-PIGCDP9z_p-AfPpn1cvX-cB5DZQbnw0WMw91IPtEfddGV_eoYbu4dX-wt61-8bEPMgHyDNsSUzYopGxVT1R--akOOgHx3bcihmpVDNSpHVH_4URtyBOS7b0OOqFk5okbliOsPP25DjoB8wzbkiJuVI26t79zINUNb6K3FWm2mdzwZ5kssJ2X1zizwm9GL0zbl4_TEnf6rc7SufKvKh_G2fHUMWB8ecOAhB5as3LLvp2XAyFQYPODAQw4sWbkrI7uiVZXu_UlH_nlHXlhezqxXpWOO4H6YENwPE4L7YUpwgiYE73ME98OE4H6YENwPU4ITNCH4gCP4HUdRP0wo6ocJRf0wpShBE4recxT1w4SifphQ1A9TihI0oeiQo6hk9QSCJiQlaMJSgqY0pXCqK_DKAq8t8OoCsy_wCoNkNQZ5VRmCbPXTlK1-mrLVT5O2Ejhla0hZur6zkLYUSlO2BvWlYJyy9ao8eG1ND__9CgAA___b20hi query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM ((SELECT x, y FROM xyz) INTERSECT (SELECT x, y FROM xyz))] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEmM1q20AUhfd9CnNXLajYd0b-hUJKG2ggJCXxrnihWNPY4FhGkiFuyLsX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UIPteyVm-5Mg1fc2UcvucCHL3oyjiyVctHWY2ik1s2g-ds1fJZNnvpk9cPfwMAAP__buTmDQ== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzEmM1q20AUhfd9CnNXLajYd0b-hUJKG2ggJCXxrnihWNPY4FhGkiFuyLsX29SOJesejUZKl07yea6O5jsa5YWWUWhugieT0OgXMXmkyCNNHvnkUZcmHq3iaGqSJIq3f7IHrsJnGnU8mi9X63T744lH0yg2NHqhdJ4uDI1oHDwszJ0JQhO3O-RRaNJgvtgts4rnT0G8uXje_CGPbtfpqHXB3oWiyatH0To9fmmSBo-GRvzqlV_4-zxJ58tp2u6ernpuiSP1sGnNgmR2HjlOomwmeRsBu2agK2XATYTgF45y_Kr1MopDE5vw5Mt231I4rOrgYY9TdJuaokRkxyl6DlN4lQb9ESSze5Perto6k9d4szKj1tXN-PLu_vLbuPX1-po8Wpjf6cfdRXz6Es8fZ_8-HLdd4cX16434Jvocrdq6m43h7NqDk7XZwrRaywYsfNg1vcbLxiYC1wx0pQy4iRD8wlEcNefqZVPjFCUiKyobuymcy4bftWxU-d2uahUeLHy4c_3GhbeIgF0z0JUy4CZC8AtHcVRNVRe-xilKRFYkvN0UzsKrdxVel9_tulbhwcKHOzdoXHiLCNg1A10pA24iBL9wFEfVdHXha5yiRGRFwttN4Sy8flfh_fK73a9VeLDw4c4NGxfeIgJ2zUBXyoCbCMEvHMVRNb-68DVOUSKyIuHtpnAW3v9v_z84M9edSVbRMjGl_jvQ2V6ZCR_NPqkkWsdT8zOOprtl9h9vd9zuB6FJ0v1vef_harn_1XbAtzBnYX4L-ycw28GsnOihC616LrTWMq3ExLWcuBaX7soryzCDuWVadZzovgutwU7zxcTBze5awCoL90QYXHRf3ig9eacMRHoow0MXsWUYiQ1oILZMI7FlGonNoEtRmcq1AtwGNJIb4MhuhIOdDnDkN8uVygjPtYuE5xxnuV7Qpcv9wsByzjWM1SNYpuEzGODoISzj8Cks49BWuV55AILP9auVrTINbZVxaCvA0ZaVcWhrrmVPglcMjk9yy2bwnK0qVzU2tiq5aRQ4vSn5HAOCAzSyFeHAVoAjWwEOD81yyaouCD7Xsja2AhrZCnBkK8LRlpVxZKuSj7BqAHC5ZTN43lb5FIsuXW4a3QHvWrmmsbEV0MhWhANbAY5sBTiyVcslqxUIPteyVm-5Mg1fc2UcvucCHL3oyjiyVctHWY2ik1s2g-ds1fJZNnvpk9cPfwMAAP__buTmDQ== subtest Except @@ -189,97 +189,97 @@ subtest Except query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz) EXCEPT ALL (SELECT x AS y FROM xyz) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8ll1r2zAUhu_3K8K52phGLNnOh2GQMQorlLa0vRgMX7ix1gTS2MgONCv57yNJQ2c7Oa8VD901jR_p-Og5efVKyyzV18mzLij6RZIEKRLkk6CABIUUC8pNNtVFkZntI3vgMn2hyBM0X-arcvvvWNA0M5qiVyrn5UJTRA_J40Lf6STVpu-RoFSXyXyx2yY38-fErCcv6z8k6GZVRr2JongjKFuVbyu-L_S47s2SYlZdYiIp3sSCijJ50hTJjTivshBXJjtVpk5W9r7OapmZVBudVlaKtyR65Mjr_UiK2b0ub_K-rPX9YZ3rqHfx8_vF7UPv29UVCVro3-XHifz01cyfZru_Tr73-zv5Nt2-z0ypTV-G9TZ9Prl-0KJnx9rxtuiRIq6zL1neV169wUe3Dyvby_YySbeaW1Q2cKu5dKu5dKE56PZB88G5mqv2p6ncemZR2dCtZ8qtZ8qFZ6DbB8-G53rmtz9N361nFpWN3Hrmu_XMd-EZ6PbBs9G5ngXtTzNw65lFZWO3ngVuPQtceAa6ffBs_D-uh0fWv9NFni0L3erm520bptMnvT-AIluZqb412XS3zf7jzY7b3QdSXZT7b9X-w-Vy_9W2wPbwsAssZSc67ESPeVpa9EzZwcMucK1ntnTYiR7ztKrT3r-0X4G9OuyzcMCfVsDCSvJbh13mg4fBfPAwmg9Ag_kANJiPQZf54GEwHzyM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RoZa6c7TSHeehroDHOkOcKR7I0irug-A7o1MsdK9kSlWuvM00p2noe4AR7oDHOneyFMr3Xka6c7TUHeAI90BjnRvpGr1ru3xuqtGtrC6x5sPfwMAAP__S381-g== query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz) EXCEPT (SELECT x AS y FROM xyz) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mN1rGkEUxd_7V8h9aukWnQ8_oWBpAw2EJCR5KBQfNu40CsaV3RViQ_73olaNO-49M-7qWz48c--5c8-PXV9pGkfmOnw2KfV-k6CAJAWkKCBNATVpENAsiYcmTeNk-ZG14DJ6oV4joPF0Ns-Wfx4ENIwTQ71XysbZxFCPHsLHibkzYWSSeoMCikwWjierMrNk_Bwmi_7L4i8FdDPPerW-pMFbQPE8252YZuGToZ54C9yr_hin2Xg6zOrN_ZJ9kTt_J3lc1EZhOjrw-V0P0qeH986Fg_V8a7uy6ijrolrvurCJ3TnzaZxEJjHR3kmrUwrblA3Q5q6F5qlaQJPatdAq0UJwVJc_w3R0b7KbWV3lJvWwmJle7eLX94vbh9q3qysKaGL-ZB_74tPXZPw0Wv3ksF5tn_W6j5PMJHVljexz4fkdh5kdGsf_Qw80cR1_iWd13cgP-GD57l554RHa6nAFqm43sXVCXPk4d7DuiitX66Ja77qwiZKsEEfiqsIW0KSKcOXXQmlciXPgCqzXBlfWyFxxJd1TI6vjBai6XYX2CXnh4Vw4WHflhat1Ua13XdhEybDKI3lRYQtoUkW88GuhNC_kOXgB1mvDC2tkrrxQ7qlR1fECVN2uQueEvPBwLhysu_LC1bqo1rsubKJkWNWRvKiwBTSpIl74tVCaF-ocvADrteGFNTJXXmj31OjqeAGqblehe0JeeDgXDtZdeeFqXVTrXRc2UTKs-kheVNgCmlQRL_xaKM0LfQ5egPXa8MIa2TFfnxw4_86ks3iaGqdvRhrLgZnoyawvII3nydDcJvFwVWb9681Kt_pDZNJs_V-x_uVyuv7XssH3YpEXi_divScWfmKh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Xnh4Vw4WHflhat1Ua13XdhEybDKI3lRYQtoUkW88GuhNC_kOXgB1mvDC2tkrrxQ7qlR1fECVN2uQueEvPBwLhysu_LC1bqo1rsubKJkWNWRvKiwBTSpIl74tVCaF-ocvADrteGFNTJXXmj31OjqeAGqblehe0JeeDgXDtZdeeFqXVTrXRc2UTKs-kheVNgCmlQRL_xaKM0LfQ5egPXa8MIa2TFfnxw4_86ks3iaGqdvRhrLgZnoyawvII3nydDcJvFwVWb9681Kt_pDZNJs_V-x_uVyuv7XssH3YpEXi_divScWfmKhyqilKKXullGrNq-W7MQVP3HFlm7ylXmxAPfFq6Uso1aNUuoOr9bsxFu8uOkhlnlxixW3-btus2LgucOKNQh2l6dCA2DBgooXF3g1BAMvh2QAcoQGXo7YICy07A9egsFbbPHBA1AjPgA5AgSQI0IgOYiLsAizP3g0Oh4xObmFCcFDRrTAtfOYQdZ5zogOKG6RxivsvBqGnZfDsAM5Cjsvh2HnKSsBZSWPGrCxQI3CDuQo7ECOwo7kYOMlT1kJlk7yT3A5uRV2yaNGanDtPGqQdZ40EpBGWqTxCTtQo7ADOQo7koOwAzl86ucpKwFlJY8aFHZAWXRvAJMo7ACTKOxAjjaep6wCW6P4F-Sc3Aq74lGjwAOd4lEDrCueNAqQRlmk8Qk7UKOwAzkKO5KDsAM5CrviKasAZRWPGvSWDyiL7g1gEr3nA0yiF30gRxvPU1aha-ffmnNyO-w8ajR4oNM8avLWB28f_gUAAP__TrDF2w== # EXCEPT ALL and EXCEPT with MergeJoiner. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz ORDER BY y) EXCEPT ALL (SELECT y FROM xyz ORDER BY y)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8llFrGkEQx9_7KWSeWtiiu3eaeFCwlEADIYbUh0K5h4s3VcG4x-4KscHvXrwrtZ5257ZD9y3G--3-Z-4H_l9ho0u8L57RQvYNJAhQICABASkIGEIuoDJ6jtZqc3ikAW7LF8gGAlabausO_84Fz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3jOhiQbBTXQRnXQRnDQdV92yquBwHJruJ6oOJ6oGJ4kHTfdhLXg4Bk13E9SOJ6kMTwIO2-7TSuBwHJxnE9SON6kMbuJhfiPKKt9MZip-YxOAyE5QKbBVm9NXN8MHpeX9N8nNZc_RtbonXNt6r5cLtpvjoE7A6POPCYA0tWbjn00zJgZSoMHnHgMQeWrNytlZ3Rqk0P_qQT_74TLyxPdzZo0ylHcD9MCO6HCcH9MCU4QROCDzmC-2FCcD9MCO6HKcEJmhB8xBH8iqOoHyYU9cOEon6YUpSgCUWvOYr6YUJRP0wo6ocpRQmaUHTMUVSyegJBE5ISNGEpQVOaUjjVFXhlgdcWeHWB2Rd4hUGyGoM8qwxBtvppylY_Tdnqp0lbCZyyNaQsnb-zkLYUSlO2BvWlYJyy9aw8eG3N929-BgAA___QQDFg query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz ORDER BY y) EXCEPT (SELECT y FROM xyz ORDER BY y)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8l99r4koUx9_vXyHn6V7IRc9M_AkXvOwWtlDa0u3DwuJDamarYE1IItQt_d8XFbQmzfk6mdG3Vv1kzjmZzzeTN1omsbmNXkxOo5_EFJCigDQFFFJAXZoElGbJ1OR5km1-sgOu41cadQKaL9NVsfl4EtA0yQyN3qiYFwtDI3qMnhbmwUSxydodCig2RTRfbJdJs_lLlK3Hr-vfFNDdqhi1xoom7wElq-JwxbyIng2N-D04fdWv87yYL6dFu3u85JhL1z8gT-vWLMpnn_z-UIOyqeFj5-zUum7UOvvtPawt4nCd1TLJYpOZ-OhK26vUlqk6oMxDCd1zlYAmdSih51BC0KjKb1E--26Ku7StS5N6XKdm1Lr68eXq_rH1_80NBbQwv4q_x_zPf9n8ebb9a7-96nvq-x3rbfJvkrZ1t9z9p2sPjtZmC6P8ZQlYdb9NemfMEpvOnVrXjVpnv72HtUU4iswNs8RjCWhSdVliV4JzlvAlskSdvquVP5_Bqvtb1T-jzxads1PrulHr7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68eXq_rH1_80NBbQwv4q_x_zPf9n8ebb9a7-96nvq-x3rbfJvkrZ1t9z9p2sPjtZmC6P8ZQlYdb9NemfMEpvOnVrXjVpnv72HtUU4iswNs8RjCWhSdVliV4JzlvAlskSdvquVP5_Bqvtb1T-jzxads1PrulHr7Lf3sLYIR5lUQ589loAmVeezXQnOPqtL-KxP39Xan89g1f2tGpzRZ4vO2al13ah19tt7WFuEo0y6oc8eS0CTqvPZrgRnn_UlfA5P39WhP5_BqvtbNTyjzxads1PrulHr7Lf3sLYIR5nChj57LAFNqs5nuxKcfQ4v_e7-STkPJk-TZW5OejPvbBoy8bPZDShPVtnU3GfJdLvM7t-7Lbf9IDZ5sfuWd_9cL3dfbQr8CHMZ5o9weASzHczKiR660KrnQmst00qcuJYnrsWlu_LKMsygbplWHSe670JrsNNCceLgZnctYFWGeyIMmu7LG6Un75SBSA9leOgitgwjsQENxJZpJLZMI7EZZCkKUzlWgNuARnIDHNmNcLDTAY78ZjlSGeGVdJHwiuMsxwtqXc4XBpZzJWGsHsEyDZ_BAEcPYRmHT2EZh7bK8coDMPhKvlrZKtPQVhmHtgIcbVkZh7ZWUvZo8IrB8UlO2RJesVVVosbGViUnjQKnNyWfY8DgAI1sRTiwFeDIVoDDQ7McsqoLBl9JWRtbAY1sBTiyFeFoy8o4slXJR1g1ALicsiW8aqt8ikWty0mjO-Bdq5I0NrYCGtmKcGArwJGtAEe2ajlktQKDr6Ss1VuuTMPXXBmH77kARy-6Mo5s1fJRVqPRySlbwiu2avksW2598v7XnwAAAP__kVbCsw== # EXCEPT ALL and EXCEPT with no overlap. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz WHERE x < 2) EXCEPT ALL (SELECT x FROM xyz WHERE x >= 2) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMll1r2zAUhu_3K8K52phGLNnOh6HQMTpWKG1pczHYcuHGWhNIYyMr0Kz0v48kDZ3j9LxWXIzv6tqPdKzzvDl-okW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aoieyMzvXFNEovpvrGx0n2nQ9EpRoG8_mm20yM3uIzer0cfWXBH2fza02UedUdn4vPc-fdFQUReeXIxJ0tbTrGzR-FpQu7ctur5vcrTrTOJ8Wl988PxaU2_heUySfxXFVhy5V65N3Llu9WfbrOstFahJtdFJYabwm0SMH3v1HnE9vtb3KunKvYaNVpqPO2c9vZ9ejzteLCxI013_sx1P56cTM7qebv95879d38l1acZsaq01XhvvH9PnN9YMKZ3boOF4WPVDEZfolzbrK2z_gg9uHhe1lddNke_LhUHWvRfmQzeZDNpEP0IpdPnrH5kNVb7Vqj6AOVfdbJKhqVlDVhKCgFTtB-8cK6ldvtd8eQR2qHrRIUL9ZQf0mBAWt2Ak6OFbQoHqrg_YI6lD1sEWCBs0KGjQhKGjFTtDhe3wCH1j_RudZush1pa9bb31gOrnX2wbk6dJM9LVJJ5tttpdXG27z6ZLo3G7vqu3F-WJ7a11gdbhfB5ayFh3Wooc8LR3OTLnB_Trw3pm50mEtesjTap_2_qf9Auztwz4LB3y3AhZWkt86rJMPHgb54GGUD0CDfAAa5KNXJx88DPLBwygfgAb5ADTIR5-1dMBLOqiTj2Edw3kYGM7DyHBAA8MBjSaAy9gs_5K6zE1XGg4Bp8npjAPNZWmKFFSVihdd8mMEmC5Lc8RFdUAD1wGNZEc4sB3hSPfSDHXSnaeR7jwNdQc40h3gSPfSIC3q3gO6l2aKk-6lmeKkO08j3Xka6g5wpDvAke6leeqkO08j3Xka6g5wpDvAke6lqVr81vZ43VVptrC6j58__AsAAP__XY-Brg== query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz WHERE x < 2) EXCEPT (SELECT x FROM xyz WHERE x >= 2) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mF1v2kgYhe_3V6C52tV6heeDL0uRsmpTNVKURAkXlVouHDwNlghGtpFCo_z3CigQPPg9Hsb4LsGcmeMz73lk88ZmSaRvwxedseA748xjgnlMMo8p5rEOG3lsniZjnWVJuvrKRn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ikE5fk1h16Z1rMwXnRaiFc1NJ3UvdptSIT79LijoVYFMVdUtyjz7pHisE990mxAsUe0FTwARYMqFhxgVZDMNBySAYgR2ig5YgN3EDLYfACBG-wxQYPQI34AOQIEECOCIHkoC7cIMxh8Cg6GjEFuYEJTkOGd8Gx05hBt05zhvfB5gZprMpOq2HZaTksO5CjstNyWHaasgJQVtCoARML1KjsQI7KDuSo7EgOJl7QlBVg6AT9BFeQG2UXNGqEAsdOowbdOk0aAUgjDNLYlB2oUdmBHJUdyUHZgRw-9dOUFYCygkYNKjugLDo3gElUdoBJVHYgRxNPU1aCqZH0C3JBbpRd0qiR4IFO0qgBty5p0khAGmmQxqbsQI3KDuSo7EgOyg7kqOySpqwElJU0atBbPqAsOjeASfSeDzCJXvSBHE08TVmJjp1-ay7IzbLTqFHggU7RqCne-uj9r98BAAD__8OMEZ4= # EXCEPT ALL and EXCEPT with some overlap. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz WHERE x >= 1) EXCEPT ALL (SELECT y FROM xyz WHERE x < 3) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzMll9r2zwUxu_fT2HO1TumEUu288dQyBgdK5S2tLkYbL5wY60JpLGRFWhW8t1Hkmad7VSPFRfju6bxTzrW-T05eqZlmsir-FHmFP4gTowEMfKIkU-MAooYZSqdyjxP1faRPXCRPFHoMpovs5Xe_jtiNE2VpPCZ9FwvJIU0ie8X8lbGiVQ9lxglUsfzxW6bTM0fY7UeP61_E6Ov84WWKnTG3Pm5cl1Pnjk8DMOLqwkxul7p0BkLijaM0pV-2e51l_u1M4vzWXH9MadoEzHKdfwgKeQbdlrZgU3ZU8d716rFm1W_rrNapiqRSiaFlaItiR458urf4nx2J_V11uOlhk3WmQyd8-9fzm8mzufLS2K0kL_0_2P-4UzNH2a7v_6-Ny-99-s7eTaduEuVlqrHg_IxfXxzfb_GmR07jpdFjxRxlX5Ks55wywd8dPugsD2vLxrvUD4syu53Jx-83XzwNv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qNeGoKATB0GHpwrq1--03yFBLcoedUdQv11B_TYEBZ04CDp6jyvwkfVvZZ6ly1zWut262wOTyYPcNyBPV2oqb1Q63W2z_3i943ZXl0Tmev-t2H-4WO6_2hZYHx40gTlvRAeN6JGZ5hZnJuzgQRO4dGa2dNCIHplpUabdf2mvALtl2DPCvrlbvhEW3Lx10CQfZhjkwwyjfAAa5APQIB_9JvkwwyAfZhjlA9AgH4AG-RgYLR2aJR02yceoieFmGBhuhpHhgAaGAxpNAJuxWf0ltZmbtjQcAlaT0xoHmvPKFCmoyoVZdG4eI8B0XpkjNqoDGrgOaCQ7woHtCEe6V2aole5mGulupqHuAEe6AxzpXhmkRd37QPfKTLHSvTJTrHQ300h3Mw11BzjSHeBI98o8tdLdTCPdzTTUHeBId4Aj3StTtXjXds26i8psMeoebf77EwAA___5-4G4 query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz WHERE x >= 1) EXCEPT (SELECT y FROM xyz WHERE x < 3) ORDER BY y] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mFtv4kYcxd_7Kax5alVXeC7cLEWialM1UpRECQ8r7fLg4NlgiWBkGylslO--AhYIHvw_Htv4jduZOT7zPz_ZvLNFHOq74FWnzP_KOHOZYC6TzGWKuazLJi5bJvFUp2mcbH6yE9yEb8z3XBYtlqts8_HEZdM40cx_Z1mUzTXz2Th4nutHHYQ66XjMZaHOgmi-3WaZRK9Bsh69rX8wl_0XzTOd-M6IO99Wnif1lcN937-5GzOX3a8y3xkJNvlwWbzKjtulWfCimc8_3PKW_o3SLFpMs0731M-I59Y_Sp7XzixIZ2d-f_QgbDx8joVb5TJ1ZOlYZKVYeLO5qEITx3VWizgJdaLDk5W2qxTaFB6webTQvZQFlNTRQq-GBbeSy_-DdPaks_tlR-aSGq-X2neuv_xz_TB2_r69ZS6b6-_Z7yP-x1USvcy2rw7jVXxNfZvxeoqTTCcdaUT2Z-H6gxKZnYvj16JnTNzFf8XLjvLyAZ_dfniyPb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tllzRqJLihkzRqwKVLmjQSkEYapLEpO1CjsgM5KjuSg7IDOSq7pCkrAWUljRr0lA8oi84NYBI95wNMogd9IEcTT1NWomOnn5pzcrPsNGoUuKFTNGrylz75-O1nAAAA__-ffBGo # EXCEPT ALL and EXCEPT with swapped column orders. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x, y FROM xyz EXCEPT ALL SELECT y, x from xyz] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEll2L2kAUhu_7K-RctTBFZxLdNVCwlIUuLOuy9aJQcpE1pyq4TpiMsHbxvxdNF-tHz8n0QHIZk2fmnTMP-L7CyuZ4nz1jCckP0KDAgIIIFMSgoA-pgsLZKZaldbtPKuA2f4Gkp2CxKtZ-93OqYGodQvIKfuGXCAlMsqclPmKWo-v2QEGOPlss99sUbvGcuc3oZfMLFIzXPumMtBoZSLcK7Nr_WfSw1tOmM8_K-fEqb0iqoPTZDCHRW_V_-fp8PqNGWprP_DPfYan1yrocHeZHi6U7kvvkwiG_ZuX8G_px0dUndzDZFJh0br5_uXmYdD7f3YGCJf707_epP3xyi9n87YG6o8PhIsHhLiS_tx9t0dX90zFc3Ds-2lvXv3jdhpgB-QZtiKmbFVM3KqapP3zThhwB-a7akMM0K4dpVI6o_vCjNuQIyHfdhhxRs3JEjcoR1x9-3IYcAfmGbcgRNytH3FrfuZDrEcvCrkqs1WZ6u5NhPsNqUqVduyk-ODvdb1M9jvfc_r86x9JXb031cLuqXu0C1ocHEngogbUot-7TtA4YmQmDBxJ4KIG1KPfJyM5oc0r3_qYjet4RCevjmfVO6VgiOA0zgtMwIzgNc4IzNCN4XyI4DTOC0zAjOA1zgjM0I_hAIviVRFEaZhSlYUZRGuYUZWhG0WuJojTMKErDjKI0zCnK0IyiQ4miWtQTGJqRlKEZSxma05TDua4gKwuytiCrC8K-ICsMWtQY9FllCLKVpjlbaZqzlaZZWxmcszWkLJ3fWUhbCqU5W4P6UjDO2XpWHkhb0-273wEAAP__OWBG8A== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzEll2L2kAUhu_7K-RctTBFZxLdNVCwlIUuLOuy9aJQcpE1pyq4TpiMsHbxvxdNF-tHz8n0QHIZk2fmnTMP-L7CyuZ4nz1jCckP0KDAgIIIFMSgoA-pgsLZKZaldbtPKuA2f4Gkp2CxKtZ-93OqYGodQvIKfuGXCAlMsqclPmKWo-v2QEGOPlss99sUbvGcuc3oZfMLFIzXPumMtBoZSLcK7Nr_WfSw1tOmM8_K-fEqb0iqoPTZDCHRW_V_-fp8PqNGWprP_DPfYan1yrocHeZHi6U7kvvkwiG_ZuX8G_px0dUndzDZFJh0br5_uXmYdD7f3YGCJf707_epP3xyi9n87YG6o8PhIsHhLiS_tx9t0dX90zFc3Ds-2lvXv3jdhpgB-QZtiKmbFVM3KqapP3zThhwB-a7akMM0K4dpVI6o_vCjNuQIyHfdhhxRs3JEjcoR1x9-3IYcAfmGbcgRNytH3FrfuZDrEcvCrkqs1WZ6u5NhPsNqUqVduyk-ODvdb1M9jvfc_r86x9JXb031cLuqXu0C1ocHEngogbUot-7TtA4YmQmDBxJ4KIG1KPfJyM5oc0r3_qYjet4RCevjmfVO6VgiOA0zgtMwIzgNc4IzNCN4XyI4DTOC0zAjOA1zgjM0I_hAIviVRFEaZhSlYUZRGuYUZWhG0WuJojTMKErDjKI0zCnK0IyiQ4miWtQTGJqRlKEZSxma05TDua4gKwuytiCrC8K-ICsMWtQY9FllCLKVpjlbaZqzlaZZWxmcszWkLJ3fWUhbCqU5W4P6UjDO2XpWHkhb0-273wEAAP__OWBG8A== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x, y FROM xyz EXCEPT SELECT y, x from xyz] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEmF9r2zwUxu_fTxF09Q40kiM5f2GQsRVWKG3pejEYuXBjrQmksbEdaFb63UcSljR2fB4psrvLtP1Fx4_1eyz3RSzjyFyHTyYTo5-ChBRKSKGFFIGQoismUiRpPDVZFqebP9kBl9GzGHW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8BLtqpS1bjYqvimUeD0pvhzDAgO0MhWhANbAY5sBTg8NPMlq7og-FLLutgKaGQrwJGtCEdblseRrYo_wqoBwPmWLeBlW_lTLLp0vml0B7xrlZrGxVZAI1sRDmwFOLIV4MhWzZesViD4Uss6veXyNHzN5XH4ngtw9KLL48hWzR9lNYqOb9kCXrJV82fZ4qVPXv_7EwAA__8-uOSb # EXCEPT ALL and EXCEPT with different ORDER BY types. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) EXCEPT ALL (SELECT y AS x FROM xyz ORDER BY z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8ll1r2zAUhu_3K8K52phGLNnOh2HQMQorlLa0vRiMXLix1gTSyMgONCv97yNJQ2c7Oa8VD901jR_p-Og5efVCS5Ppq_RJF5T8IkmCFAkKSVBEgmKaCMqtmeqiMHbzyA64yJ4pCQTNl_mq3Px7ImhqrKbkhcp5udCU0H36sNC3Os207QckKNNlOl9st8nt_Cm167Pn9R8SdL0qk96ZpMmrILMq31Z8X-hh3Zulxay6xPb5iaCiTB81JfJVnFZZjCtTnSpTRyt7X2e1NDbTVmeVlSYbEj1y4PV-pMXsTpfXeV_W-n6_znXSO__5_fzmvvft8pIELfTv8uOZ_PTVzh9n27-Onsj7O4Uu3b4zttS2L-N6mz4fXT9q0bND7Xhb9EARV-aLyfsqqDf44PZxZXvZXibpV3OHygZ-NZd-NZc-NAfd3ms-OFVz1f40lV_PHCob-vVM-fVM-fAMdHvv2fBUz8L2pxn69cyhspFfz0K_noU-PAPd3ns2OtWzqP1pRn49c6hs7NezyK9nkQ_PQLf3no3_x_XwwPq3usjNstCtbn7BpmE6e9S7AyjMyk71jTXT7Ta7j9dbbnsfyHRR7r5Vuw8Xy91XmwLbw8MusJSd6LgTPeZp6dAz5QYPu8C1nrnScSd6zNOqTgf_0mEFDupwyMIRf1oRCyvJbx13mQ8eBvPBw2g-AA3mA9BgPgZd5oOHwXzwMJoPQIP5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cBzSSHeHAdoQj3RsZ6qQ7TyPdeRrqDnCkO8CR7o0greo-ALo3MsVJ90amOOnO00h3noa6AxzpDnCkeyNPnXTnaaQ7T0PdAY50BzjSvZGq1bt2wOuuGtnC6j55_fA3AAD__0h9Nfo= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) EXCEPT (SELECT y AS x FROM xyz ORDER BY z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mN1r4loUxd_vXyH76V5uBj0ffsJAh5nCFEpb2j4MDD6k5kwVrJEkQp3S_31QR605Zq9zkuhbP1xn77XPXj8S32gWR-YmfDEpDX6SoIAkBaQoIE0BtWkY0DyJRyZN42T1kY3gKnqlQSugyWy-yFZ_HgY0ihNDgzfKJtnU0IAew6epuTdhZJJmiwKKTBZOpusy82TyEibLi9flbwrodpENGheChu8BxYtsf2Kahc-GBuI9cK_6bZJmk9koa7YPS1rn7yVPy8Y4TMdHPr_vQfr08NG5cLAuC62rUtZFvd51YRP7cxazOIlMYqKDk9anFLYpW6DNfQvtU7WAJrVvoVOhhaBUl9_DdPxgstt5U-Um9bicm0Hj8sfXy7vHxpfrawpoan5l_16I_z4nk-fx-ieHZHV91ushTjKTNJU1sv8Lz-85zOzYOP4eeqSJm_hTPG_qVn7AR8v3D8oLj9DWhytQdbeJnRPiyse5g3VXXLlaF_V614VNVGSFKImrGltAkyrClV8LlXElzoErsF5bXFkjc8WVdE-NrI8XoOpuFbon5IWHc-Fg3ZUXrtZFvd51YRMVwypL8qLGFtCkinjh10JlXshz8AKs15YX1shceaHcU6Pq4wWouluF3gl54eFcOFh35YWrdVGvd13YRMWwqpK8qLEFNKkiXvi1UJkX6hy8AOu15YU1MldeaPfU6Pp4AaruVqF_Ql54OBcO1l154Wpd1OtdFzZRMay6JC9qbAFNqogXfi1U5oU-By_Aem15YY2szNcnR86_N-k8nqXG6ZuR1mpgJno2mwtI40UyMndJPFqX2fx6u9at_xCZNNv8V2x-uZp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5IWHc-Fg3ZUXrtZFvd51YRMVwypL8qLGFtCkinjh10JlXshz8AKs15YX1shceaHcU6Pq4wWouluF3gl54eFcOFh35YWrdVGvd13YRMWwqpK8qLEFNKkiXvi1UJkX6hy8AOu15YU1MldeaPfU6Pp4AaruVqF_Ql54OBcO1l154Wpd1OtdFzZRMay6JC9qbAFNqogXfi1U5oU-By_Aem15YY2szNcnR86_N-k8nqXG6ZuR1mpgJno2mwtI40UyMndJPFqX2fx6u9at_xCZNNv8V2x-uZpt_rVq8KNY5MXio1gfiIWfWKgqaikqqftV1KrLqyU7ccVPXLGl23xlXizAffFqKauoVauSuserNTvxDi9ue4hlXtxhxV3-rrusGHjusWINgt3nqdACWLCg4sUFXg3BwMshGYAcoYGXIzYICy2Hg5dg8BZbfPAA1IgPQI4AAeSIEEgO4iIswhwOHo2OR0xObmFC8JARHXDtPGaQdZ4zogeKW6TxCjuvhmHn5TDsQI7Czsth2HnKSkBZyaMGbCxQo7ADOQo7kKOwIznYeMlTVoKlk_wTXE5uhV3yqJEaXDuPGmSdJ40EpJEWaXzCDtQo7ECOwo7kIOxADp_6ecpKQFnJowaFHVAW3RvAJAo7wCQKO5Cjjecpq8DWKP4FOSe3wq541CjwQKd41ADriieNAqRRFml8wg7UKOxAjsKO5CDsQI7CrnjKKkBZxaMGveUDyqJ7A5hE7_kAk-hFH8jRxvOUVeja-bfmnNwOO48aDR7oNI-avPXh-z9_AgAA__9JycXb # EXCEPT ALL and EXCEPT with different numbers of ORDER BY columns. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) EXCEPT ALL (SELECT x FROM xyz ORDER BY y, z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8ll9r2zwUxu_fTxHO1TumEUu288cw6BiFFUpb2l4MRi7cWGsCaWRkB5qVfveRpKGznZzHijfdNY1_0vHR7-TRCy1Npq_SJ11Q8oMkCVIkKCRBEQmKaSIot2aqi8LYzSM74CJ7piQQNF_m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FaZfG_rkwdrex9ndXS2ExbnVVWmmxI9MiB1_uWFrM7XV7nfVnr-_0610nv_PvX85v73pfLSxK00D_L_8_kh892_jjb_nX0vd_fKXTp9p2xpbZ9Gdfb9PHo-lGLnh1qx9uiB4q4Mp9M3ldBvcEHt48r28v2Mkm_mjtUNvCrufSrufShOej2XvPBqZqr9qep_HrmUNnQr2fKr2fKh2eg23vPhqd6FrY_zdCvZw6Vjfx6Fvr1LPThGej23rPRqZ5F7U8z8uuZQ2Vjv55Ffj2LfHgGur33bPw3rocH1r_VRW6WhW518ws2DdPZo94dQGFWdqpvrJlut9l9vN5y2_tApoty963afbhY7r7aFNgeHnaBpexEx53oMU9Lh54pN3jYBa71zJWOO9FjnlZ1OviTDitwUIdDFo7404pYWEl-67jLfPAwmA8eRvMBaDAfgAbzMegyHzwM5oOH0XwAGswHoMF8DFlLR7ykoy7zMe5iOA8Dw3kYGQ5oYDigUQK4xGbzl9QlN11pGAJOyemMA81lI0UqqkrFiy75GAGmy0aOuKgOaOA6oJHsCAe2Ixzp3shQJ915GunO01B3gCPdAY50bwRpVfcB0L2RKU66NzLFSXeeRrrzNNQd4Eh3gCPdG3nqpDtPI915GuoOcKQ7wJHujVSt3rUDXnfVyBZW98nrf78DAAD__9ymNfU= query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT x FROM xyz ORDER BY y) EXCEPT (SELECT x FROM xyz ORDER BY y, z) ORDER BY x] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8mF9v2koQxd_vp0D7dK-uK9id5a9UKVUbqZGiJEryUKniwcHbgEQwso0UGuW7V0CB4MVzvF7DW_5wdubMzvnJ5k3M4sjchC8mFYOfQopAKBEIEoHQIhBtMQzEPIlHJk3jZPWRjeAqehWDViAms_kiW_15GIhRnBgxeBPZJJsaMRCP4dPU3JswMkmzJQIRmSycTNdl5snkJUyWF6_L3yIQt4ts0LiQYvgeiHiR7U9Ms_DZiIF8D8pX_TZJs8lslDXbhyWt8_eSp2VjHKbj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ioeNWBjgRqFHchR2IEchR3JwcYrnrIKLJ3in-BycivsikeN0uDaedQg6zxpFCCNskjjEnagRmEHchR2JAdhB3L41M9TVgHKKh41KOyAsujeACZR2AEmUdiBHG08T1kCW0P8C3JOboWdeNQQeKAjHjXAOvGkIUAaskjjEnagRmEHchR2JAdhB3IUduIpS4CyxKMGveUDyqJ7A5hE7_kAk-hFH8jRxvOUJXTt_FtzTm6HnUeNBg90mkdN3vrw_Z8_AQAA__-sJMXW # EXCEPT ALL and EXCEPT with compatible ORDER BY columns that are not in the final result. query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz ORDER BY z) EXCEPT ALL (SELECT y FROM xyz ORDER BY z)] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJy8llFrGkEQx9_7KWSeWtiiu3eaeFCwlEADIYbUh0K5h4s3VcG4x-4KscHvXrwrtZ5257ZD9y3G--3-Z-4H_l9ho0u8L57RQvYNJAhQICABASkIGEIuoDJ6jtZqc3ikAW7LF8gGAlabausO_84FzLVByF7BrdwaIYNZ8bTGRyxKNP0BCCjRFat1fU1lVs-F2U1edj9AwHTrst5EQb4XoLfu14nHg552vWVhl6dHTCTk-1yAdcUCIZN78W_Jhv87mfprsuM52402JRosT07KDyT1yIXxPhd2-QXdtOrL1t5nuwqz3s3XTzcPs97HuzsQsMbv7u1EvvtgVotl_dfvuWVr7uNMCWOmC4Hv9Xtd9eWwPf3Fu9OTu2X3Ny3jOhiQbBTXQRnXQRnDQdV92yquBwHJruJ6oOJ6oGJ4kHTfdhLXg4Bk13E9SOJ6kMTwIO2-7TSuBwHJxnE9SON6kMbuJhfiPKKt9MZip-YxOAyE5QKbBVm9NXN8MHpeX9N8nNZc_RtbonXNt6r5cLtpvjoE7A6POPCYA0tWbjn00zJgZSoMHnHgMQeWrNytlZ3Rqk0P_qQT_74TLyxPdzZo0ylHcD9MCO6HCcH9MCU4QROCDzmC-2FCcD9MCO6HKcEJmhB8xBH8iqOoHyYU9cOEon6YUpSgCUWvOYr6YUJRP0wo6ocpRQmaUHTMUVSyegJBE5ISNGEpQVOaUjjVFXhlgdcWeHWB2Rd4hUGyGoM8qwxBtvppylY_Tdnqp0lbCZyyNaQsnb-zkLYUSlO2BvWlYJyy9aw8eG3N929-BgAA___QQDFg +https://cockroachdb.github.io/distsqlplan/decode.html#eJy8llFrGkEQx9_7KWSeWtiiu3eaeFCwlEADIYbUh0K5h4s3VcG4x-4KscHvXrwrtZ5257ZD9y3G--3-Z-4H_l9ho0u8L57RQvYNJAhQICABASkIGEIuoDJ6jtZqc3ikAW7LF8gGAlabausO_84FzLVByF7BrdwaIYNZ8bTGRyxKNP0BCCjRFat1fU1lVs-F2U1edj9AwHTrst5EQb4XoLfu14nHg552vWVhl6dHTCTk-1yAdcUCIZN78W_Jhv87mfprsuM52402JRosT07KDyT1yIXxPhd2-QXdtOrL1t5nuwqz3s3XTzcPs97HuzsQsMbv7u1EvvtgVotl_dfvuWVr7uNMCWOmC4Hv9Xtd9eWwPf3Fu9OTu2X3Ny3jOhiQbBTXQRnXQRnDQdV92yquBwHJruJ6oOJ6oGJ4kHTfdhLXg4Bk13E9SOJ6kMTwIO2-7TSuBwHJxnE9SON6kMbuJhfiPKKt9MZip-YxOAyE5QKbBVm9NXN8MHpeX9N8nNZc_RtbonXNt6r5cLtpvjoE7A6POPCYA0tWbjn00zJgZSoMHnHgMQeWrNytlZ3Rqk0P_qQT_74TLyxPdzZo0ylHcD9MCO6HCcH9MCU4QROCDzmC-2FCcD9MCO6HKcEJmhB8xBH8iqOoHyYU9cOEon6YUpSgCUWvOYr6YUJRP0wo6ocpRQmaUHTMUVSyegJBE5ISNGEpQVOaUjjVFXhlgdcWeHWB2Rd4hUGyGoM8qwxBtvppylY_Tdnqp0lbCZyyNaQsnb-zkLYUSlO2BvWlYJyy9aw8eG3N929-BgAA___QQDFg query T SELECT url FROM [EXPLAIN (DISTSQL) (SELECT y FROM xyz ORDER BY z) EXCEPT (SELECT y FROM xyz ORDER BY z)] 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Y78ZjlSGeGVdJHwiuMsxwtqXc4XBpZzJWGsHsEyDZ_BAEcPYRmHT2EZh7bK8coDMPhKvlrZKtPQVhmHtgIcbVkZh7ZWUvZo8IrB8UlO2RJesVVVosbGViUnjQKnNyWfY8DgAI1sRTiwFeDIVoDDQ7McsqoLBl9JWRtbAY1sBTiyFeFoy8o4slXJR1g1ALicsiW8aqt8ikWty0mjO-Bdq5I0NrYCGtmKcGArwJGtAEe2ajlktQKDr6Ss1VuuTMPXXBmH77kARy-6Mo5s1fJRVqPRySlbwiu2avksW2598v7XnwAAAP__kVbCsw== # EXCEPT ALL and EXCEPT with a projection on the result. query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM ((SELECT x, y FROM xyz) EXCEPT ALL (SELECT x, y FROM xyz))] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzEltFq2zAUhu_3FOFcbaCRSHbSxjDIGIUVSlO6XAyGL9z4LAmkkZEUaFby7iP2ShYn07F2wL507E_6dfRB_lfY6Bzvs2e0kPwACQIUCIhAQAwChpAKKIyeo7XaHD6pgNv8BZKBgNWm2LrDz6mAuTYIySu4lVsjJDDLntb4iFmOpj8AATm6bLUutynM6jkzu8nL7hcImG5d0ptIMVGQ7gXorfuz6HGtp11vmdnl6SpvSCrAumyBkMi9-L98w3byqX_mOy613WiTo8H8ZLH0QFKfXDjk18wuv6GbFn1Zu4PZrsCkd_P9y83DrPf57g4ErPGne1-m_vDJrBbLt4fjDGoDOJ4sYpzsQux7_VEXfTmsz-Di3vHJ3rL5rcsurAzIN-rCStmulbI9K1XzyasuzAjId9WFGapdM1R7ZkTNJx91YUZAvusuzIjaNSNqz4y4-eTjLswIyDfuwoy4XTPibjrOhVCPaAu9sdiowQwOx8J8gdWYrN6aOT4YPS-3qR6nJVf-P-doXfVWVQ-3m-rVIWBzeMSBxxxYsnLLoZ-WASNTYfCIA485sGTlro3sjFZ1evA3HfnnHXlheTqzQZ2OOYL7YUJwP0wI7ocpwQmaEHzIEdwPE4L7YUJwP0wJTtCE4COO4FccRf0woagfJhT1w5SiBE0oes1R1A8TivphQlE_TClK0ISiY46iktUTCJqQlKAJSwma0pTCqa7AKwu8tsCrC8y-wCsMktUY5FllCLLVT1O2-mnKVj9N2krglK0hZen8zkLaUihN2RrUl4Jxytaz8uC1Nd2_-x0AAP__MSFD2g== +https://cockroachdb.github.io/distsqlplan/decode.html#eJzEltFq2zAUhu_3FOFcbaCRSHbSxjDIGIUVSlO6XAyGL9z4LAmkkZEUaFby7iP2ShYn07F2wL507E_6dfRB_lfY6Bzvs2e0kPwACQIUCIhAQAwChpAKKIyeo7XaHD6pgNv8BZKBgNWm2LrDz6mAuTYIySu4lVsjJDDLntb4iFmOpj8AATm6bLUutynM6jkzu8nL7hcImG5d0ptIMVGQ7gXorfuz6HGtp11vmdnl6SpvSCrAumyBkMi9-L98w3byqX_mOy613WiTo8H8ZLH0QFKfXDjk18wuv6GbFn1Zu4PZrsCkd_P9y83DrPf57g4ErPGne1-m_vDJrBbLt4fjDGoDOJ4sYpzsQux7_VEXfTmsz-Di3vHJ3rL5rcsurAzIN-rCStmulbI9K1XzyasuzAjId9WFGapdM1R7ZkTNJx91YUZAvusuzIjaNSNqz4y4-eTjLswIyDfuwoy4XTPibjrOhVCPaAu9sdiowQwOx8J8gdWYrN6aOT4YPS-3qR6nJVf-P-doXfVWVQ-3m-rVIWBzeMSBxxxYsnLLoZ-WASNTYfCIA485sGTlro3sjFZ1evA3HfnnHXlheTqzQZ2OOYL7YUJwP0wI7ocpwQmaEHzIEdwPE4L7YUJwP0wJTtCE4COO4FccRf0woagfJhT1w5SiBE0oes1R1A8TivphQlE_TClK0ISiY46iktUTCJqQlKAJSwma0pTCqa7AKwu8tsCrC8y-wCsMktUY5FllCLLVT1O2-mnKVj9N2krglK0hZen8zkLaUihN2RrUl4Jxytaz8uC1Nd2_-x0AAP__MSFD2g== query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT x FROM ((SELECT x, y FROM xyz) EXCEPT (SEL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9dxJZhJDaggdgyjcSWaSQ2gy5FZSrXCnAb0EhugCO7EQ52OsCR3yxXKiO80C4SXnCc5XpBly73CwPLudAwVo9gmYbPYICjh7CMw6ewjENb5XrlEQi-0K9Wtso0tFXGoa0AR1tWxqGthZY9CV4xOD7JLZvDC7aqQtXY2KrkplHg9KbkcwwIDtDIVoQDWwGObAU4PDTLJav6IPhCy9rYCmhkK8CRrQhHW1bGka1KPsKqEcDlls3hRVvlUyy6dLlpdA-8axWaxsZWQCNbEQ5sBTiyFeDIVi2XrFYg-ELLWr3lyjR8zZVx-J4LcPSiK-PIVi0fZTWKTm7ZHF6wVctn2fylT9_--hUAAP__5OXhhQ== diff --git a/pkg/sql/opt/exec/execbuilder/testdata/lookup_join b/pkg/sql/opt/exec/execbuilder/testdata/lookup_join index 4fd826907ae6..2d888e47b3bd 100644 --- a/pkg/sql/opt/exec/execbuilder/testdata/lookup_join +++ b/pkg/sql/opt/exec/execbuilder/testdata/lookup_join @@ -129,7 +129,7 @@ render · · query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM (SELECT * FROM data WHERE c = 1) AS l NATURAL JOIN data AS r] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJzUlU-L2zAQxe_9FGJOCaisZTt_VrCgQimkFG9Z9lZ8cKNhcZvVGEmGliXfvShuu07YyIaQg49j6em9-Y2wXsCQxqJ6RgfyGwjgkAKHDDjkwGEBJYfG0hadIxu2dIKN_gUy4VCbpvXhc8lhSxZBvoCv_Q5BwmP1fYcPWGm0Nwlw0OirenewaWz9XNnfSle-Ag6f6p1HK5nK2B0TUspN8QjlngO1_vV856snBCn2fHyGz1SbvxEW0QhfiH62DftBtWFkJFOCq5SrjKuA4b5gs9lMCXbH1GLOPhQf2UyloVrO_5Uhu1r9L_NQrudB3Prj8851lp7t7LWh1pDVaFEfdVPu3-i9oPfU3IjkZOfb3tmRtxg_WXGtyQ5k6E12ObHJpuPppteiO5ChR3c1MbrZeLrZtegOZOjRXU-Mbj6ebn4tugMZenRvJ0Z34DV7QNeQcTjqj56ENwH1E3YPiKPWbvGrpe3BpivvD7rDB43Od6uiKzamWwoB-2IRFadHYnEqTuPOA9ZZVJ3HxfkluRdR8TLuvLzEeRUVr-PO60ucb-OzSgauSfySnXqX-3d_AgAA___iTT6a +https://cockroachdb.github.io/distsqlplan/decode.html#eJzUlU-L2zAQxe_9FGJOCaisZTt_VrCgQimkFG9Z9lZ8cKNhcZvVGEmGliXfvShuu07YyIaQg49j6em9-Y2wXsCQxqJ6RgfyGwjgkAKHDDjkwGEBJYfG0hadIxu2dIKN_gUy4VCbpvXhc8lhSxZBvoCv_Q5BwmP1fYcPWGm0Nwlw0OirenewaWz9XNnfSle-Ag6f6p1HK5nK2B0TUspN8QjlngO1_vV856snBCn2fHyGz1SbvxEW0QhfiH62DftBtWFkJFOCq5SrjKuA4b5gs9lMCXbH1GLOPhQf2UyloVrO_5Uhu1r9L_NQrudB3Prj8851lp7t7LWh1pDVaFEfdVPu3-i9oPfU3IjkZOfb3tmRtxg_WXGtyQ5k6E12ObHJpuPppteiO5ChR3c1MbrZeLrZtegOZOjRXU-Mbj6ebn4tugMZenRvJ0Z34DV7QNeQcTjqj56ENwH1E3YPiKPWbvGrpe3BpivvD7rDB43Od6uiKzamWwoB-2IRFadHYnEqTuPOA9ZZVJ3HxfkluRdR8TLuvLzEeRUVr-PO60ucb-OzSgauSfySnXqX-3d_AgAA___iTT6a statement ok CREATE TABLE books (title STRING, edition INT, shelf INT, PRIMARY KEY (title, edition)) @@ -211,7 +211,7 @@ group · · (name) query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT DISTINCT authors.name FROM books AS b1, books2 AS b2, authors WHERE b1.title = b2.title AND authors.book = b1.title AND b1.shelf <> b2.shelf] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyck0GL2zAQhe_9FeqcHFBJJNs5GAIK9NAtwSnL9lBKWLTx1HE3qzGSDC1L_ntRXNg4xErTo0bzzXt-Y72CoQpL_YIOiu8ggEMOGw6tpS06RzaU-6a76hcUMw6NaTsfyhsOW7IIxSv4xu8RCijpA7XTHDhU6HWzP7YdOFDn3yDndY1QzA_8ZLCID37QT3u8R12hnc4G46G1zYu2v9UT0bMDDuvOF0wJrlIYkxa3SH-mxvxVFhFlCRxWRM9dy35SYxiZ4CL4KVmiBFswlU7YsvzIEiXZ-wVT-eTUreQq5Sof9Sz_Ny552bTu_C6sd0wvHdV7k-kM2QotVucLv95ywfQn7XYhbLTTdOh5jz98osRkYZt65xMlLySXcZVzNR_9nuyW_JZ1bbHWnuw0G1pR4edelt8ey_XDY_l1tUrCHsdE84Holcdzj64l4_CfXs8sJIhVjf1GHHV2i18sbY8y_XF95I6FCp3vb-f94c70V8HgKSyisIzDMgpnA1icw-kNsDyHsyicx23nUXh2Bm8O7_4EAAD__zAfsGk= +https://cockroachdb.github.io/distsqlplan/decode.html#eJyck0GL2zAQhe_9FeqcHFBJJNs5GAIK9NAtwSnL9lBKWLTx1HE3qzGSDC1L_ntRXNg4xErTo0bzzXt-Y72CoQpL_YIOiu8ggEMOGw6tpS06RzaU-6a76hcUMw6NaTsfyhsOW7IIxSv4xu8RCijpA7XTHDhU6HWzP7YdOFDn3yDndY1QzA_8ZLCID37QT3u8R12hnc4G46G1zYu2v9UT0bMDDuvOF0wJrlIYkxa3SH-mxvxVFhFlCRxWRM9dy35SYxiZ4CL4KVmiBFswlU7YsvzIEiXZ-wVT-eTUreQq5Sof9Sz_Ny552bTu_C6sd0wvHdV7k-kM2QotVucLv95ywfQn7XYhbLTTdOh5jz98osRkYZt65xMlLySXcZVzNR_9nuyW_JZ1bbHWnuw0G1pR4edelt8ey_XDY_l1tUrCHsdE84Holcdzj64l4_CfXs8sJIhVjf1GHHV2i18sbY8y_XF95I6FCp3vb-f94c70V8HgKSyisIzDMgpnA1icw-kNsDyHsyicx23nUXh2Bm8O7_4EAAD__zAfsGk= query TTTTT colnames EXPLAIN (VERBOSE) SELECT a.name FROM authors AS a JOIN books2 AS b2 ON a.book = b2.title ORDER BY a.name @@ -253,7 +253,7 @@ render · · (title, edition, shelf, title, editi query T SELECT url FROM [EXPLAIN (DISTSQL) SELECT * FROM authors INNER JOIN books2 ON books2.edition = 1 WHERE books2.title = authors.book] ---- -https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkcFLwzAUxu_-FeGdNoisabdLYBDBy0Q6GbtJD1n7mHVdXklSUEb_d0kjuImresz33u99X_hOYKjCXB_RgXwGARwWUHBoLZXoHNkgx6VV9QYy4VCbtvNBLjiUZBHkCXztGwQJOd1SO0uBQ4Ve182w1nOgzn9Bzus9gsx6fnZYjB_e6l2DG9QV2llycR5aWx-1fVe68y8h7zU_8R-_B6rNp5342W5HdHDhp49Eh65lr1QbRkYyFcR1ziYqY0um0im7y-_ZRM3Zkgkp5SrfTsNG5yVTgquUq4yrOVeLq9HTi-i_dLBB15Jx-KcSkr7ggNUeY8-OOlvik6VysInP9cANQoXOx2kWHysTRyHgOSxG4XQcTkfh5Btc9DcfAQAA__9BRuUo +https://cockroachdb.github.io/distsqlplan/decode.html#eJyUkcFLwzAUxu_-FeGdNoisabdLYBDBy0Q6GbtJD1n7mHVdXklSUEb_d0kjuImresz33u99X_hOYKjCXB_RgXwGARwWUHBoLZXoHNkgx6VV9QYy4VCbtvNBLjiUZBHkCXztGwQJOd1SO0uBQ4Ve182w1nOgzn9Bzus9gsx6fnZYjB_e6l2DG9QV2llycR5aWx-1fVe68y8h7zU_8R-_B6rNp5342W5HdHDhp49Eh65lr1QbRkYyFcR1ziYqY0um0im7y-_ZRM3Zkgkp5SrfTsNG5yVTgquUq4yrOVeLq9HTi-i_dLBB15Jx-KcSkr7ggNUeY8-OOlvik6VysInP9cANQoXOx2kWHysTRyHgOSxG4XQcTkfh5Btc9DcfAQAA__9BRuUo # TODO(radu): rework these tests once lookup join using non-covering index is # supported. @@ -293,7 +293,7 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkcFLwzAUxu_-FeGdNoisab #query T #SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.a, t2.c FROM multiples t1 JOIN multiples@bc t2 ON t1.a = t2.b] #---- -#https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lM1qg0AUhfd9inDXU-Ko-XOVbUpJSuiuuDDOJdiauTIzQkvw3YtaGg3JKERczs-Z73DOcM8gSeA2OqGG4AM4MHCBgQcMfGAwg5BBpihGrUmVV2rBRnxD4DBIZJabcjtkEJNCCM5gEpMiBPAeHVLcYyRQTR1gINBESVphMpWcIvWzPuWpSbIUNTDY5SaYrDmEBQPKzeVdbaIjQsAL1p_9Qon8Q8_a6EPcor4SfeXZ5JMSOSFZGfi3wtb-XTfuXTcXE7kkJVChaDkIixt-t_RM2ZQ7Vzdvs70Wm_dvgQ_dQge70cJ8hBbc_km4QyfRwW4ksRghCa9_Et7QSXSwG0ksR0jC75-EP3QSHexGEquRZ9QNN3vUGUmNvSaQU84wFEesB56mXMX4piiuMPVyV-mqDYHa1Ke8XmxkfVQabIq5Vey2xPxa7NrJHWjPqvbtYv8R3zOreG4nzx8hL6zipZ28fIS8snfldHwT-ye7ZofF028AAAD__2gv7bk= +#https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lM1qg0AUhfd9inDXU-Ko-XOVbUpJSuiuuDDOJdiauTIzQkvw3YtaGg3JKERczs-Z73DOcM8gSeA2OqGG4AM4MHCBgQcMfGAwg5BBpihGrUmVV2rBRnxD4DBIZJabcjtkEJNCCM5gEpMiBPAeHVLcYyRQTR1gINBESVphMpWcIvWzPuWpSbIUNTDY5SaYrDmEBQPKzeVdbaIjQsAL1p_9Qon8Q8_a6EPcor4SfeXZ5JMSOSFZGfi3wtb-XTfuXTcXE7kkJVChaDkIixt-t_RM2ZQ7Vzdvs70Wm_dvgQ_dQge70cJ8hBbc_km4QyfRwW4ksRghCa9_Et7QSXSwG0ksR0jC75-EP3QSHexGEquRZ9QNN3vUGUmNvSaQU84wFEesB56mXMX4piiuMPVyV-mqDYHa1Ke8XmxkfVQabIq5Vey2xPxa7NrJHWjPqvbtYv8R3zOreG4nzx8hL6zipZ28fIS8snfldHwT-ye7ZofF028AAAD__2gv7bk= # ## Lookup join on non-covering secondary index ## The index join should be subsumed by joinreader, which takes care of the @@ -320,7 +320,7 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkcFLwzAUxu_-FeGdNoisab #query T #SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.a, t2.d FROM multiples t1 JOIN multiples@bc t2 ON t1.a = t2.b] #---- -#https://cockroachdb.github.io/distsqlplan/decode.html?eJy8lM2LqzAUxffvryh3nUeNH_1w1W0fj3YosxtcWHMpzthcSSLMUPzfB3WYammjUHGZj5Pf4ZxwLyBJ4C4-o4bwDTgwcIGBBwx8YBBAxCBXlKDWpKorjWArPiF0GKQyL0y1HTFISCGEFzCpyRBCeI2PGR4wFqjmDjAQaOI0qzG5Ss-x-tqci8ykeYYaGOwLE842HKKSARXm-q428Qkh5CUbzv5HqfxBB130MelQ_xN9FPnsnVI5I1kb-LXCNsFDN-5DN1cThSQlUKHoOIjKO3539JfyOXdubt5nex02H94CH7uFHnarhcUELbjDk3DHTqKH3UpiOUES3vAkvLGT6GG3klhNkIQ_PAl_7CR62K0k1hPPqDtuDqhzkhoHTSCnmmEoTtgMPE2FSvBFUVJjmuW-1tUbArVpTnmz2MrmqDLYFnOr2O2I-a3YtZN70J5V7dvF_jO-A6t4YScvniEvreKVnbx6hry2d-X0fBP7J7tlR-Wf7wAAAP__gsjtvg== +#https://cockroachdb.github.io/distsqlplan/decode.html#eJy8lM2LqzAUxffvryh3nUeNH_1w1W0fj3YosxtcWHMpzthcSSLMUPzfB3WYammjUHGZj5Pf4ZxwLyBJ4C4-o4bwDTgwcIGBBwx8YBBAxCBXlKDWpKorjWArPiF0GKQyL0y1HTFISCGEFzCpyRBCeI2PGR4wFqjmDjAQaOI0qzG5Ss-x-tqci8ykeYYaGOwLE842HKKSARXm-q428Qkh5CUbzv5HqfxBB130MelQ_xN9FPnsnVI5I1kb-LXCNsFDN-5DN1cThSQlUKHoOIjKO3539JfyOXdubt5nex02H94CH7uFHnarhcUELbjDk3DHTqKH3UpiOUES3vAkvLGT6GG3klhNkIQ_PAl_7CR62K0k1hPPqDtuDqhzkhoHTSCnmmEoTtgMPE2FSvBFUVJjmuW-1tUbArVpTnmz2MrmqDLYFnOr2O2I-a3YtZN70J5V7dvF_jO-A6t4YScvniEvreKVnbx6hry2d-X0fBP7J7tlR-Wf7wAAAP__gsjtvg== # TODO(radu): enable these tests. ############################# @@ -330,34 +330,34 @@ https://cockroachdb.github.io/distsqlplan/decode.html?eJyUkcFLwzAUxu_-FeGdNoisab #query T #SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.b, t2.a FROM multiples t1 LEFT JOIN multiples t2 ON t1.b = t2.a] #---- -#https://cockroachdb.github.io/distsqlplan/decode.html?eJzElF-Lm0AUxd_7KeQ-T1lHTTY7T3nZQpYlKSF9Kj5Y57LYmrnDzAhdFr97UUujIR2FCD7On-PveM5wP0CRxH12RgviO3BgEAGDGBgkwGAFKQNtKEdryTRXOsFO_gYRMiiUrlyznTLIySCID3CFKxEEnLIfJR4xk2geQmAg0WVF2WK0Kc6Zed-eq9IVukQLDA6VE8E2grRmQJW7fNe67A1B8JpNZ79Qof6iV0P06V2jCF6fv5yCw7fT8zF4Oez2wG5aeiX6VengJxUqICWCLf_nkzOP1ei_Vi8OK0VGokE5sJfWN35mT59JP_Dw6uZtdjxg8-kV8bkrGmH3KlovXVE0PaZo7phG2L2YHpeOKZ4eUzx3TCPsXkybpWNKpseUzB3TCLsX09PSMY2M8CNaTcripKkXNnMT5Rt2Q9ZSZXL8aihvMd3y0OraDYnWdae8W-xUd9QY7Iu5VxwNxPxaHPnJI-jYq0784uQe3yuveO0nr-8hP3rFGz95cw_5yd9VOPJM_I_smp3Wn_4EAAD__6ZdGew= +#https://cockroachdb.github.io/distsqlplan/decode.html#eJzElF-Lm0AUxd_7KeQ-T1lHTTY7T3nZQpYlKSF9Kj5Y57LYmrnDzAhdFr97UUujIR2FCD7On-PveM5wP0CRxH12RgviO3BgEAGDGBgkwGAFKQNtKEdryTRXOsFO_gYRMiiUrlyznTLIySCID3CFKxEEnLIfJR4xk2geQmAg0WVF2WK0Kc6Zed-eq9IVukQLDA6VE8E2grRmQJW7fNe67A1B8JpNZ79Qof6iV0P06V2jCF6fv5yCw7fT8zF4Oez2wG5aeiX6VengJxUqICWCLf_nkzOP1ei_Vi8OK0VGokE5sJfWN35mT59JP_Dw6uZtdjxg8-kV8bkrGmH3KlovXVE0PaZo7phG2L2YHpeOKZ4eUzx3TCPsXkybpWNKpseUzB3TCLsX09PSMY2M8CNaTcripKkXNnMT5Rt2Q9ZSZXL8aihvMd3y0OraDYnWdae8W-xUd9QY7Iu5VxwNxPxaHPnJI-jYq0784uQe3yuveO0nr-8hP3rFGz95cw_5yd9VOPJM_I_smp3Wn_4EAAD__6ZdGew= # ## Left join against covering secondary index #query T #SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.c, t2.c FROM multiples t1 LEFT JOIN multiples@bc t2 ON t1.c = t2.b] #---- -#https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlF9r2zAUxd_3Kcx91qhlO2mqp7x0kFKSEbKn4QfXuhRvjq6QZFgp_u7D9ljtkMiGGNJH_Tn-HZ8j7jsokrjNjmhB_AQODCJgEAODBBgsIGWgDeVoLZnmSifYyD8gQgaF0pVrtlMGORkE8Q6ucCWCgEP2UuIeM4nmLgQGEl1WlC1Gm-KYmbf1sSpdoUu0wGBXORGsY0hrBlS5j-9al70iCF6z6ewnKtQ_9GKIPrxpFMHz47dDsPtxeNwHT7vNFhi85AM3z0S_Kx38okIFpESw5v8tcrZOLrqMLrr8MFcpMhINyoGztD7zH1v6SvqOhyc3z7PjAZtPb4fP3c4Iu9fO8obtRNMTiuZOaITdS-j-hgnF0xOK505ohN1LaHXDhJLpCSVzJzTC7iX08Elm4BmXe7SalMVJEy5sZiTKV-wGqqXK5PjdUN5iuuWu1bUbEq3rTnm32KjuqDHYF3OvOBqI-ak48pNH0LFXnfjFyTW-F17x0k9eXkO-94pXfvLqGvKDv6tw5Jn4H9kpO62__A0AAP__DxgOwA== +#https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlF9r2zAUxd_3Kcx91qhlO2mqp7x0kFKSEbKn4QfXuhRvjq6QZFgp_u7D9ljtkMiGGNJH_Tn-HZ8j7jsokrjNjmhB_AQODCJgEAODBBgsIGWgDeVoLZnmSifYyD8gQgaF0pVrtlMGORkE8Q6ucCWCgEP2UuIeM4nmLgQGEl1WlC1Gm-KYmbf1sSpdoUu0wGBXORGsY0hrBlS5j-9al70iCF6z6ewnKtQ_9GKIPrxpFMHz47dDsPtxeNwHT7vNFhi85AM3z0S_Kx38okIFpESw5v8tcrZOLrqMLrr8MFcpMhINyoGztD7zH1v6SvqOhyc3z7PjAZtPb4fP3c4Iu9fO8obtRNMTiuZOaITdS-j-hgnF0xOK505ohN1LaHXDhJLpCSVzJzTC7iX08Elm4BmXe7SalMVJEy5sZiTKV-wGqqXK5PjdUN5iuuWu1bUbEq3rTnm32KjuqDHYF3OvOBqI-ak48pNH0LFXnfjFyTW-F17x0k9eXkO-94pXfvLqGvKDv6tw5Jn4H9kpO62__A0AAP__DxgOwA== # ## Left join against non-covering secondary index #query T #SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.c, t2.d FROM multiples t1 LEFT JOIN multiples@bc t2 ON t1.c = t2.b] #---- -#https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlF9r2zAUxd_3Kcx91qhlO2mqp7x0kFKSEbKn4QfXuhRvjq6QZFgp_u7D9ljtkMiGGNJH_Tn-HZ8j7jsokrjNjmhB_AQODCJgEAODBBgsIGWgDeVoLZnmSifYyD8gQgaF0pVrtlMGORkE8Q6ucCWCgEP2UuIeM4nmLgQGEl1WlC1Gm-KYmbf1sSpdoUu0wGBXORGsY0hrBlS5j-9al70iCF6z6ewnKtQ_9GKIPrxpFMHz47dDsPtxeNwHT7vNFhi85AM3z0S_Kx38okIFpESw5v8tcrZeXHQZXXT5Ya5SZCQalANnaX3mP7b0lfQdD09unmfHAzaf3g6fu50Rdq-d5Q3biaYnFM2d0Ai7l9D9DROKpycUz53QCLuX0OqGCSXTE0rmTmiE3Uvo4ZPMwDMu92g1KYuTJlzYzEiUr9gNVEuVyfG7obzFdMtdq2s3JFrXnfJusVHdUWOwL-ZecTQQ81Nx5CePoGOvOvGLk2t8L7zipZ-8vIZ87xWv_OTVNeQHf1fhyDPxP7JTdlp_-RsAAP__KqEOxQ== +#https://cockroachdb.github.io/distsqlplan/decode.html#eJzMlF9r2zAUxd_3Kcx91qhlO2mqp7x0kFKSEbKn4QfXuhRvjq6QZFgp_u7D9ljtkMiGGNJH_Tn-HZ8j7jsokrjNjmhB_AQODCJgEAODBBgsIGWgDeVoLZnmSifYyD8gQgaF0pVrtlMGORkE8Q6ucCWCgEP2UuIeM4nmLgQGEl1WlC1Gm-KYmbf1sSpdoUu0wGBXORGsY0hrBlS5j-9al70iCF6z6ewnKtQ_9GKIPrxpFMHz47dDsPtxeNwHT7vNFhi85AM3z0S_Kx38okIFpESw5v8tcrZeXHQZXXT5Ya5SZCQalANnaX3mP7b0lfQdD09unmfHAzaf3g6fu50Rdq-d5Q3biaYnFM2d0Ai7l9D9DROKpycUz53QCLuX0OqGCSXTE0rmTmiE3Uvo4ZPMwDMu92g1KYuTJlzYzEiUr9gNVEuVyfG7obzFdMtdq2s3JFrXnfJusVHdUWOwL-ZecTQQ81Nx5CePoGOvOvGLk2t8L7zipZ-8vIZ87xWv_OTVNeQHf1fhyDPxP7JTdlp_-RsAAP__KqEOxQ== # ## Left join with ON filter on covering index #query T #SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.c, t2.c FROM multiples t1 LEFT JOIN multiples@bc t2 ON t1.c = t2.b AND t2.c < 20] #---- -#https://cockroachdb.github.io/distsqlplan/decode.html?eJzUlc9r2zAUx-_7K8Q7baBR_0qa6pRLCy4lGcE7bT641iPT5ugZSYa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QX2w6E3HA3C4Wk48pNH0LE3nfjDyTl1z7zhuZ88P4d86w0v_OTFOeQ7_6yCkW3i32Sn7Pzw6W8AAAD__16RXd8= # ## Left join with ON filter on non-covering index #query T #SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.c, t2.d FROM multiples t1 LEFT JOIN multiples@bc t2 ON t1.c = t2.b AND t2.d < 30] #---- -#https://cockroachdb.github.io/distsqlplan/decode.html?eJzUlUFvmzAUx-_7FNY7bZKnYiBp6hOXVqKqkilip40DxU-ZN2Ij20iNqnz3iTCtELUGKblwxPafn9_vWfYrKC1wXezRAv8BDCiEQCECCjFQWEBOoTa6RGu1aZd0gVS8AA8oSFU3rh3OKZTaIPBXcNJVCByy4rnCLRYCzU0AFAS6QlYnTG3kvjCHZN9UTtYVWqCwaRwnSQT5kYJu3Nt_rSt2CJwd6XT2o5bqH3oxRGeHGjl5un_IyOZ7dr8lj5t0DRSey8FunrT-09Tkt5aKaMVJ0ppJlcCXB1k5NJwkMfnZBEFUkijgnKfrjHw2cvfLESsFEq2qw5f_ZTGaLD6sLPywsreCGqWNQINiUE1-fKf2tf6q6xsWnK18nx0N2Gx6R9m1OzrC7nV0ObOOhtOthte2OsLuWb2dmdVoutXo2lZH2D2rq5lZjadbja9tdYTds3o3M6sjr9UWba2VxUk3dtDe-Sh22D0QVjemxG9GlydM97k55U4DAq3rZln3kapuqt1gP8y84XAQZufh0E8eQUfedOwPx5fse-ENL_3k5SXkW2945SevLiHf-XsVjBwT_yE7Z-fHT38DAAD__7jtXe4= +#https://cockroachdb.github.io/distsqlplan/decode.html#eJzUlUFvmzAUx-_7FNY7bZKnYiBp6hOXVqKqkilip40DxU-ZN2Ij20iNqnz3iTCtELUGKblwxPafn9_vWfYrKC1wXezRAv8BDCiEQCECCjFQWEBOoTa6RGu1aZd0gVS8AA8oSFU3rh3OKZTaIPBXcNJVCByy4rnCLRYCzU0AFAS6QlYnTG3kvjCHZN9UTtYVWqCwaRwnSQT5kYJu3Nt_rSt2CJwd6XT2o5bqH3oxRGeHGjl5un_IyOZ7dr8lj5t0DRSey8FunrT-09Tkt5aKaMVJ0ppJlcCXB1k5NJwkMfnZBEFUkijgnKfrjHw2cvfLESsFEq2qw5f_ZTGaLD6sLPywsreCGqWNQINiUE1-fKf2tf6q6xsWnK18nx0N2Gx6R9m1OzrC7nV0ObOOhtOthte2OsLuWb2dmdVoutXo2lZH2D2rq5lZjadbja9tdYTds3o3M6sjr9UWba2VxUk3dtDe-Sh22D0QVjemxG9GlydM97k55U4DAq3rZln3kapuqt1gP8y84XAQZufh0E8eQUfedOwPx5fse-ENL_3k5SXkW2945SevLiHf-XsVjBwT_yE7Z-fHT38DAAD__7jtXe4= # ## Left join with ON filter and WHERE clause #query T #SELECT url FROM [EXPLAIN (DISTSQL) SELECT t1.c, t2.d FROM multiples t1 LEFT JOIN multiples@bc t2 ON t1.c = t2.b WHERE t2.d < 30] #---- -#https://cockroachdb.github.io/distsqlplan/decode.html?eJzMlUtr20AQx-_9FMuct0Srh-PsSZcEHIJdjHpqdVCkIaiVNcs-oCH4uxdZpZFMshLYBx338ddv9jfL6g1aqnBbHNCA_AECOITAIQIOMXBIIOegNJVoDOluSx_YVH9ABhzqVjnbTeccStII8g1sbRsECVnx3OAeiwr1TQAcKrRF3ZwwSteHQr-mB9fYWjVogMPOWcnSCPIjB3L2_bvGFi8IUhz5fPYj1e0_dDJGZ68KJXu6f8jY7nt2v2ePu80WODyXo2qeiH47xX5R3TJqJUs7Mw91Y1FLlibspwuCqGRRIKXcbLP_9QueJp8eIfz0CO-Vu5Z0hRqrUdn58YNDbukrqRsRnO38mB2N2GJ-68S1WzfBHrRutdTWhfP1hdfWN8Ee6Ltdqr5ovr7o2vom2AN966Xqi-fri6-tb4I90He3VH0Tv449GkWtwVmvatC9y1i9YP-IG3K6xG-ayhOmH-5OudNEhcb2q6IfbNp-qStwGBbecDgKi_Nw6CdPoCNvOvaH40vqTrzhlZ-8uoR86w2v_eT1JeQ7f6-CiWviv2Tn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