returns the following Plan:
{
“plan”: {
“#operator”: “Sequence”,
“~children”: [
{
“#operator”: “Sequence”,
“~children”: [
{
“#operator”: “PrimaryScan”,
“index”: “def_primary”,
“keyspace”: “travel-sample”,
“limit”: “1”,
“namespace”: “default”,
“using”: “gsi”
},
{
“#operator”: “Fetch”,
“keyspace”: “travel-sample”,
“namespace”: “default”
},
{
“#operator”: “Parallel”,
“~child”: {
“#operator”: “Sequence”,
“~children”: [
{
“#operator”: “InitialProject”,
“result_terms”: [
{
“expr”: “self”,
“star”: true
}
]
},
{
“#operator”: “FinalProject”
}
]
}
}
]
},
{
“#operator”: “Limit”,
“expr”: “1”
}
]
},
“text”: “SELECT * FROM travel-sample
limit 1;”
}
The query you provided worked and returned back 3 records.
Here’s the plan for that query:
{
“plan”: {
“#operator”: “Sequence”,
“~children”: [
{
“#operator”: “KeyScan”,
“keys”: “["airline_10", "airline_10123", "airline_10226"]”
},
{
“#operator”: “Fetch”,
“as”: “t”,
“keyspace”: “travel-sample”,
“namespace”: “default”
},
{
“#operator”: “Parallel”,
“~child”: {
“#operator”: “Sequence”,
“~children”: [
{
“#operator”: “InitialProject”,
“result_terms”: [
{
“expr”: “t
”,
“star”: true
}
]
},
{
“#operator”: “FinalProject”
}
]
}
}
]
},
“text”: “SELECT t.* \r\nFROM travel-sample
AS t USE KEYS [ "airline_10", "airline_10123","airline_10226"];”
}