The manual says returnSize parameter for system.historian.queryRawPoints() is “The maximum number of results to return”. When I set returnSize to anything greater than 0, the function returns an empty dataset.
Also, the columnNames parameter doesn’t work for queryRawPoints() or queryAggregatedPoints().