Description
Currently, LocalLimit/GlobalLimit/Sample propagates the same row count and column stats from its child, which is incorrect.
We can get the correct rowCount in Statistics for Limit/Sample whether cbo is enabled or not. And column stats should not be propagated because we don't know the distribution of columns after Limit or Sample.
Attachments
Issue Links
- links to