Bug in the returnSize parameter for the system.historian.queryRawPoints

Hi All,

It seems the return Size parameter does not limit the returned dataset size, see below, I tried to limit it to 2 records but get the same result as the un-filtered call?

results = system.historian.queryRawPoints(['histprov:OPCData:/drv:default:default:/tag:default/Overview/CaseCount'], system.date.addHours(system.date.now(), -1),system.date.now())
len(results)
results2 =system.historian.queryRawPoints(['histprov:OPCData:/drv:default:default:/tag:default/Overview/CaseCount'], system.date.addHours(system.date.now(), -1),system.date.now(), returnSize=2)
len(results2)
results3 =system.historian.queryRawPoints(['histprov:OPCData:/drv:default:default:/tag:default/Overview/CaseCount'], system.date.addHours(system.date.now(), -1),system.date.now(),['test'],'',2)
len(results2)

Thanks,

I think the documentation and implementation are not right.

The docs repeatedly say "aggregated points" but the function name itself says "raw", and there's no argument available for aggregation mode.

Which means return size cannot possibly mean anything. You get the raw points for the timespan. Full stop.

(It should never allow wide return format, as that forces weird value duplication into other timestamps.)