If I do queries.upload() with samplePercentage=10, I would expect to see the samplePercentage field when I .get() that query to be set to 10. However, it is actually set to 100. @ctafoyabwatch did some investigation, and it looks like the userRequestedSampling field needs to be passed in as True for a user to manually set the sample rate (as opposed to BCR deciding the sample rate).
A simple fix might be to use to see if a user has passed in samplePercentage when uploading a query, and if so, set userRequestedSampling to True. We'll need to make sure this overrides the default value of 100.
If I do
queries.upload()
withsamplePercentage=10
, I would expect to see thesamplePercentage
field when I .get()
that query to be set to 10. However, it is actually set to 100. @ctafoyabwatch did some investigation, and it looks like theuserRequestedSampling
field needs to be passed in asTrue
for a user to manually set the sample rate (as opposed to BCR deciding the sample rate).A simple fix might be to use to see if a user has passed in
samplePercentage
when uploading a query, and if so, setuserRequestedSampling
toTrue
. We'll need to make sure this overrides the default value of 100.