Skip to content

fix: dataset stats api response - #1872

Merged
nikhilsinhaparseable merged 2 commits into
parseablehq:mainfrom
nikhilsinhaparseable:fix/pstats-standalone
Nov 25, 2026
Merged

nikhilsinhaparseable merged 2 commits into
parseablehq:mainfrom
nikhilsinhaparseable:fix/pstats-standalone

Conversation

@nikhilsinhaparseable

@nikhilsinhaparseable nikhilsinhaparseable commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

for below cases dataset stats api currently returns error
Datafusion Error: Error during planning: table 'datafusion.public.pstats' not found

  1. standalone mode and 1st parquet is not created yet
  2. when P_COLLECT_DATASET_STATS is set to false and UI still calls it

fix is to return 200 {} instead of error

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; both previous findings are addressed.

Summary

Returns 200 {} when dataset statistics are disabled or unavailable.

  • Dataset stats requests return {} when collection is off or stats are unavailable.

Reviews (2) · Last reviewed commit: "fix review comments" · Reviewed by Greptile

for below caes dataset stats api currently returns error
`Datafusion Error: Error during planning: table 'datafusion.public.pstats' not found`

1. standalone mode and 1st parquet is not created yet
2. when `P_COLLECT_DATASET_STATS` is set to false and UI still calls it

fix is to return `200 {}` instead of error
Comment thread src/storage/field_stats.rs Resolved
Comment thread src/storage/field_stats.rs Resolved
@nikhilsinhaparseable
nikhilsinhaparseable merged commit 3a2e121 into parseablehq:main Nov 25, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants