This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package vitessutil | |
import ( | |
"fmt" | |
"encoding/json" | |
"time" | |
"github.com/pkg/errors" | |
jww "github.com/spf13/jwalterweatherman" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func validateSubquerySamePlan(node sqlparser.SQLNode, outer *engine.Route, vschema VSchema) bool { | |
samePlan := true | |
inSubQuery := false | |
_ = sqlparser.Walk(func(node sqlparser.SQLNode) (kontinue bool, err error) { | |
if _, ok := node.(*sqlparser.Subquery); ok { | |
inSubQuery = true | |
return true, nil | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From bc5de4ffd41b7dbb88a51ad255af6b617e9282f8 Mon Sep 17 00:00:00 2001 | |
From: Bryan Beaudreault <[email protected]> | |
Date: Thu, 6 May 2021 10:39:05 -0400 | |
Subject: [PATCH] Cache costs so we don't waste so much time recomputing things | |
that havent changed | |
--- | |
.../master/balancer/BaseLoadBalancer.java | 22 +++++++ | |
.../balancer/StochasticLoadBalancer.java | 65 ++++++++++++------- | |
.../balancer/TestStochasticLoadBalancer.java | 2 +- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void testMergeEmptyWithMetaCache() throws Throwable { | |
TableName tableName = TableName.valueOf("MergeEmpty"); | |
byte[] family = Bytes.toBytes("CF"); | |
TableDescriptor td = TableDescriptorBuilder.newBuilder(tableName) | |
.setColumnFamily(ColumnFamilyDescriptorBuilder.of(family)).build(); | |
TEST_UTIL.getAdmin().createTable(td, new byte[][] { Bytes.toBytes(2), Bytes.toBytes(5) }); | |
TEST_UTIL.waitTableAvailable(tableName); | |
TEST_UTIL.waitUntilNoRegionsInTransition(); | |
RegionInfo regionA = null; |
OlderNewer