Skip to content

Commit

Permalink
Remove head 10 for PPL default query to unblock cypress test failur…
Browse files Browse the repository at this point in the history
…es (#8827) (#8831)

* remove head 10 for PPL to unblock cypress test failures



* Changeset file for PR #8827 created/updated

---------



(cherry picked from commit aa60870)

Signed-off-by: abbyhu2000 <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 8, 2024
1 parent 302a04a commit b9ea335
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/8827.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
test:
- Remove head 10 for PPL default query to unblock cypress test failures ([#8827](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8827))
2 changes: 1 addition & 1 deletion src/plugins/query_enhancements/public/datasets/s3_type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export const s3TypeConfig: DatasetTypeConfig = {
title: i18n.translate('queryEnhancements.s3Type.sampleQuery.basicPPLQuery', {
defaultMessage: 'Sample query for PPL',
}),
query: `source = ${dataset.title} | head 10`,
query: `source = ${dataset.title}`,
},
];
case 'SQL':
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/query_enhancements/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class QueryEnhancementsPlugin
startServices: core.getStartServices(),
usageCollector: data.search.usageCollector,
}),
getQueryString: (currentQuery: Query) => `source = ${currentQuery.dataset?.title} | head 10`,
getQueryString: (currentQuery: Query) => `source = ${currentQuery.dataset?.title}`,
fields: { filterable: false, visualizable: false },
docLink: {
title: i18n.translate('queryEnhancements.pplLanguage.docLink', {
Expand Down

0 comments on commit b9ea335

Please sign in to comment.