Description
While testing meta().cas and meta().expiration, I found this issue:
Indexes created:
CREATE PRIMARY INDEX `#primary` ON `default` |
CREATE INDEX `idx2` ON `default`((meta().`expiration`)) |
CREATE INDEX `idx3` ON `default`((meta().`id`),(meta().`cas`),(meta().`expiration`)) |
CREATE INDEX `idx4` ON `default`((meta().`id`)) |
|
Query issed:
explain SELECT meta().id , meta().cas, meta().expiry FROM default where meta().id > "";
Result terms in plan:
"result_terms": [ |
{
|
"expr": "(meta(`default`).`id`)" |
},
|
{
|
"expr": "(meta(`default`).`cas`)" |
},
|
{
|
"expr": "(meta(`default`).`expiry`)" |
}
|
]
|
It should have been "expr": "(meta(`default`).`expiration`)"
It does return correct result when I replace meta().expiry with meta().expiration. Should expiry still be allowed with meta()?