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)

* remove head 10 for PPL to unblock cypress test failures

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>

* Changeset file for PR #8827 created/updated

---------

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit aa60870)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 9092308 commit 0b91933
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 0b91933

Please sign in to comment.