Details
-
Bug
-
Resolution: Incomplete
-
Major
-
None
-
3.0.5
-
None
-
1
Description
If you do a query, and ask for metrics, you can do something like this:
result = cluster.query("SELECT * FROM `beer-sample` where type = 'brewery' and name = 'Kona Brewing'", QueryOptions(metrics=True)) |
t = result.metadata().metrics().execution_time() |
and t is a timedelta.
However, analytics queries don't represent the metadata as an object, so there is no corresponding metrics() call. Nor is there a corresponding metrics object to use, etc...
This is the issue in CBSC-8974.
At one time I think this returned the QueryMetaData and QueryMetrics which is ok. But maybe something changed? This is not RFC-compliant, and doesn't match the docs. Of course, the docs are wrong too - note CamelCase. There is a separate ticket coming for that.