github.com/whtcorpsinc/MilevaDB-Prod@v0.0.0-20211104133533-f57f4be3b597/causetstore/milevadb-server/statistics/testdata/stats_suite_in.json (about)

     1  [
     2    {
     3      "name": "TestUniqCompEqualEst",
     4      "cases": [
     5        "explain select * from t where a = 1 and b = 5 and 1 = 1"
     6      ]
     7    },
     8    {
     9      "name": "TestDeferredCausetIndexNullEstimation",
    10      "cases": [
    11        "explain select b from t where b is null",
    12        "explain select b from t where b is not null",
    13        "explain select b from t where b is null or b > 3",
    14        "explain select b from t use index(idx_b)",
    15        "explain select b from t where b < 4",
    16        "explain select * from t where a is null",
    17        "explain select * from t where a is not null",
    18        "explain select * from t where a is null or a > 3",
    19        "explain select * from t",
    20        "explain select * from t where a < 4"
    21      ]
    22    },
    23    {
    24      "name": "TestDiscreteDistribution",
    25      "cases": [
    26        "explain select * from t where a = 'tw' and b < 0"
    27      ]
    28    },
    29    {
    30      "name": "TestPrimaryKeySelectivity",
    31      "cases": [
    32        [
    33          "explain select * from t where a > \"t\""
    34        ],
    35        [
    36          "drop causet t",
    37          "create causet t(a int primary key, b int)",
    38          "explain select * from t where a > 1"
    39        ]
    40      ]
    41    },
    42    {
    43      "name": "TestSelectCombinedLowBound",
    44      "cases": [
    45        "explain select * from t where kid = 1"
    46      ]
    47    },
    48    {
    49      "name": "TestDefCauslationDeferredCausetEstimate",
    50      "cases": [
    51        "show stats_buckets",
    52        "explain select * from t where a='aÄa'",
    53        "explain select * from t where a > 'aÄa'"
    54      ]
    55    },
    56    {
    57      "name": "TestDNFCondSelectivity",
    58      "cases": [
    59        "select * from t where b > 7 or c < 4",
    60        "select * from t where d < 5 or b > 6",
    61        "select * from t where a > 8 or d < 4 or c > 7 or b < 5",
    62        "select * from t where a < 8 and (b > 10 or c < 3 or b > 4) and a > 2"
    63      ]
    64    }
    65  ]