Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update the no aggregation PPL error message #512

Merged
merged 3 commits into from
Mar 17, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
update the no aggregation PPL error message
Signed-off-by: yyfamazon <yyf@amazon.com>
yyfamazon committed Mar 17, 2025
commit 9e674bbe45bf231f4fee417905b0f1af7a0fe3e4
2 changes: 1 addition & 1 deletion public/utils/pipeline/text_to_ppl_task.ts
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ export class Text2PPLTask extends Task<Input, Input & { ppl: string }> {
const hasStats = statsRegex.test(ppl);
if (!hasStats) {
throw new Error(
`The generated PPL query: ${ppl} doesn't seem to contain an aggregation. Ensure your question contains data aggregation (e.g., average, sum, or count) for meaningful visualization.`
`The generated PPL query doesn't seem to contain an aggregation. Ensure your question contains an aggregation (e.g., average, sum, or count) to create a meaningful visualization. Generated PPL: ${ppl}`
);
}
}