After discussions with dev, this is the understanding: The STATISTICSINTERVAL time does not apply to query statistics, it is the interval used for query aggregation to be published in METRIC_QUERY_AGGR_TABLE. For query stats, only STATISTICSLIMIT time should be used, if the query runs longer than the limit time, stats should get published in metric_query_table.
So, from the bug it looks like STATISTICSINTERVAL time is being used for query stats instead of STATISTICSLIMIT time.
After discussions with dev, this is the understanding: The STATISTICSINTERVAL time does not apply to query statistics, it is the interval used for query aggregation to be published in METRIC_ QUERY_AGGR_ TABLE. For query stats, only STATISTICSLIMIT time should be used, if the query runs longer than the limit time, stats should get published in metric_query_table.
So, from the bug it looks like STATISTICSINTERVAL time is being used for query stats instead of STATISTICSLIMIT time.