github.com/whtcorpsinc/milevadb-prod@v0.0.0-20211104133533-f57f4be3b597/causetstore/milevadb-server/statistics/testdata/stats_suite_out.json (about) 1 [ 2 { 3 "Name": "TestUniqCompEqualEst", 4 "Cases": [ 5 [ 6 "Point_Get_5 1.00 root causet:t, clustered index:PRIMARY(a, b) " 7 ] 8 ] 9 }, 10 { 11 "Name": "TestDeferredCausetIndexNullEstimation", 12 "Cases": [ 13 [ 14 "IndexReader_6 4.00 root index:IndexRangeScan_5", 15 "└─IndexRangeScan_5 4.00 cop[einsteindb] causet:t, index:idx_b(b) range:[NULL,NULL], keep order:false" 16 ], 17 [ 18 "IndexReader_6 1.00 root index:IndexFullScan_5", 19 "└─IndexFullScan_5 1.00 cop[einsteindb] causet:t, index:idx_b(b) keep order:false" 20 ], 21 [ 22 "IndexReader_6 4.00 root index:IndexRangeScan_5", 23 "└─IndexRangeScan_5 4.00 cop[einsteindb] causet:t, index:idx_b(b) range:[NULL,NULL], (3,+inf], keep order:false" 24 ], 25 [ 26 "IndexReader_5 5.00 root index:IndexFullScan_4", 27 "└─IndexFullScan_4 5.00 cop[einsteindb] causet:t, index:idx_b(b) keep order:false" 28 ], 29 [ 30 "IndexReader_6 1.00 root index:IndexRangeScan_5", 31 "└─IndexRangeScan_5 1.00 cop[einsteindb] causet:t, index:idx_b(b) range:[-inf,4), keep order:false" 32 ], 33 [ 34 "TableReader_7 1.00 root data:Selection_6", 35 "└─Selection_6 1.00 cop[einsteindb] isnull(test.t.a)", 36 " └─TableFullScan_5 5.00 cop[einsteindb] causet:t keep order:false" 37 ], 38 [ 39 "TableReader_7 4.00 root data:Selection_6", 40 "└─Selection_6 4.00 cop[einsteindb] not(isnull(test.t.a))", 41 " └─TableFullScan_5 5.00 cop[einsteindb] causet:t keep order:false" 42 ], 43 [ 44 "TableReader_7 2.00 root data:Selection_6", 45 "└─Selection_6 2.00 cop[einsteindb] or(isnull(test.t.a), gt(test.t.a, 3))", 46 " └─TableFullScan_5 5.00 cop[einsteindb] causet:t keep order:false" 47 ], 48 [ 49 "TableReader_5 5.00 root data:TableFullScan_4", 50 "└─TableFullScan_4 5.00 cop[einsteindb] causet:t keep order:false" 51 ], 52 [ 53 "TableReader_7 3.00 root data:Selection_6", 54 "└─Selection_6 3.00 cop[einsteindb] lt(test.t.a, 4)", 55 " └─TableFullScan_5 5.00 cop[einsteindb] causet:t keep order:false" 56 ] 57 ] 58 }, 59 { 60 "Name": "TestDiscreteDistribution", 61 "Cases": [ 62 [ 63 "IndexReader_6 0.00 root index:IndexRangeScan_5", 64 "└─IndexRangeScan_5 0.00 cop[einsteindb] causet:t, index:idx(a, b) range:[\"tw\" -inf,\"tw\" 0), keep order:false" 65 ] 66 ] 67 }, 68 { 69 "Name": "TestPrimaryKeySelectivity", 70 "Cases": [ 71 [ 72 "TableReader_7 3333.33 root data:Selection_6", 73 "└─Selection_6 3333.33 cop[einsteindb] gt(test.t.a, \"t\")", 74 " └─TableFullScan_5 10000.00 cop[einsteindb] causet:t keep order:false, stats:pseudo" 75 ], 76 [ 77 "TableReader_6 3333.33 root data:TableRangeScan_5", 78 "└─TableRangeScan_5 3333.33 cop[einsteindb] causet:t range:(1,+inf], keep order:false, stats:pseudo" 79 ] 80 ] 81 }, 82 { 83 "Name": "TestSelectCombinedLowBound", 84 "Cases": [ 85 [ 86 "IndexReader_6 7.00 root index:IndexRangeScan_5", 87 "└─IndexRangeScan_5 7.00 cop[einsteindb] causet:t, index:kid(kid, pid) range:[1,1], keep order:false" 88 ] 89 ] 90 }, 91 { 92 "Name": "TestDefCauslationDeferredCausetEstimate", 93 "Cases": [ 94 [ 95 "test t a 0 0 2 2 \u0000A\u0000A\u0000A \u0000A\u0000A\u0000A", 96 "test t a 0 1 4 2 \u0000B\u0000B\u0000B \u0000B\u0000B\u0000B" 97 ], 98 [ 99 "TableReader_7 2.00 root data:Selection_6", 100 "└─Selection_6 2.00 cop[einsteindb] eq(test.t.a, \"aÄa\")", 101 " └─TableFullScan_5 4.00 cop[einsteindb] causet:t keep order:false" 102 ], 103 [ 104 "TableReader_7 2.00 root data:Selection_6", 105 "└─Selection_6 2.00 cop[einsteindb] gt(test.t.a, \"aÄa\")", 106 " └─TableFullScan_5 4.00 cop[einsteindb] causet:t keep order:false" 107 ] 108 ] 109 }, 110 { 111 "Name": "TestDNFCondSelectivity", 112 "Cases": [ 113 { 114 "ALLEGROALLEGROSQL": "select * from t where b > 7 or c < 4", 115 "Selectivity": 0.34375 116 }, 117 { 118 "ALLEGROALLEGROSQL": "select * from t where d < 5 or b > 6", 119 "Selectivity": 0.625 120 }, 121 { 122 "ALLEGROALLEGROSQL": "select * from t where a > 8 or d < 4 or c > 7 or b < 5", 123 "Selectivity": 0.82421875 124 }, 125 { 126 "ALLEGROALLEGROSQL": "select * from t where a < 8 and (b > 10 or c < 3 or b > 4) and a > 2", 127 "Selectivity": 0.3125 128 } 129 ] 130 } 131 ]