Bug report #7687
Query Builder Sample Restricted on Layer With Existing Query
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||duplicate|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||16603|
If I make a definition query on a layer using the Query Builder, accept the changes, and then go back to the query builder to modify my existing query, the Sample function only shows a sample based on the existing query.
For example, if I query my existing countries layer for "Continent = 'Europe'" and then decide I want to also include "Continent = 'North America'", I can't get 'North America' to show up in the field sample; it only shows 'Europe'. I assume this is because the field sample reads off of the dataset using the active query. Ideally, the sample should include all values from the original dataset.