vitess.io/vitess@v0.16.2/go/vt/vtgate/planbuilder/testdata/other_read_cases.json (about) 1 [ 2 { 3 "comment": "Explain statement", 4 "query": "explain select * from user", 5 "plan": { 6 "QueryType": "EXPLAIN", 7 "Original": "explain select * from user", 8 "Instructions": { 9 "OperatorType": "Send", 10 "Keyspace": { 11 "Name": "main", 12 "Sharded": false 13 }, 14 "TargetDestination": "AnyShard()", 15 "Query": "explain select * from `user`", 16 "SingleShardOnly": true 17 } 18 } 19 }, 20 { 21 "comment": "Explain Vitess statement", 22 "query": "explain format=vitess select * from user", 23 "plan": { 24 "QueryType": "EXPLAIN", 25 "Original": "explain format=vitess select * from user", 26 "Instructions": { 27 "OperatorType": "Rows", 28 "Fields": { 29 "JSON": "VARCHAR" 30 }, 31 "RowCount": 1 32 } 33 } 34 }, 35 { 36 "comment": "Analyze statement", 37 "query": "analyze table t1", 38 "plan": { 39 "QueryType": "OTHER", 40 "Original": "analyze table t1", 41 "Instructions": { 42 "OperatorType": "Send", 43 "Keyspace": { 44 "Name": "main", 45 "Sharded": false 46 }, 47 "TargetDestination": "AnyShard()", 48 "Query": "analyze table t1", 49 "SingleShardOnly": true 50 } 51 } 52 }, 53 { 54 "comment": "Describe statement", 55 "query": "describe select * from t", 56 "plan": { 57 "QueryType": "EXPLAIN", 58 "Original": "describe select * from t", 59 "Instructions": { 60 "OperatorType": "Send", 61 "Keyspace": { 62 "Name": "main", 63 "Sharded": false 64 }, 65 "TargetDestination": "AnyShard()", 66 "Query": "explain select * from t", 67 "SingleShardOnly": true 68 } 69 } 70 }, 71 { 72 "comment": "Desc statement", 73 "query": "desc select * from t", 74 "plan": { 75 "QueryType": "EXPLAIN", 76 "Original": "desc select * from t", 77 "Instructions": { 78 "OperatorType": "Send", 79 "Keyspace": { 80 "Name": "main", 81 "Sharded": false 82 }, 83 "TargetDestination": "AnyShard()", 84 "Query": "explain select * from t", 85 "SingleShardOnly": true 86 } 87 } 88 } 89 ]