I have 2 gateways (local site pc and remote centralized server) and are connected to each other via the Gateway Network. I created a Remote Tag Provider and Remote History Provider on the central server. Both are query-only and the remote history provider is using the gateway network to query the results (not database).
The issue is that when you have missing data (or data marked as bad quality) and you run system.tag.queryTagHistory(.....,noInterpolation=True) on the local pc, the result is as expected. There is a jump in time and data. But the same query on the remote gateway returns all data in between at the indicated interval. It is behaving as if queries passing through the gateway network have noInterpolation hardcoded to False or are not receiving this parameter. Setting IgnoreBadQuality and validateSCExec to True or False had no effect in the result.
On Central server, this query returns all data between date ranges (incorrect behavior)
system.tag.queryTagHistory(paths=['[remotegateway/remoteprovider:default]Tags/sometag/val'],columnNames=['Datetime','val'],intervalSeconds=10,startDate=startDate,endDate=endDate,aggregationModes=['LastValue'],noInterpolation=True)
On the Local PC, this query skips the time frames where no data exists (correct behavior)
system.tag.queryTagHistory(paths=['[default]Tags/sometag/val'],columnNames=['Datetime','val'],intervalSeconds=10,startDate=startDate,endDate=endDate,aggregationModes=['LastValue'],noInterpolation=True)
Ignition Versions:
local site pc is 8.1.18
central server is 8.1.23