diff --git a/changelogs/fragments/8827.yml b/changelogs/fragments/8827.yml new file mode 100644 index 000000000000..d63bc8e25c63 --- /dev/null +++ b/changelogs/fragments/8827.yml @@ -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)) \ No newline at end of file diff --git a/src/plugins/query_enhancements/public/datasets/s3_type.ts b/src/plugins/query_enhancements/public/datasets/s3_type.ts index 09aeef434e24..c13b5e898670 100644 --- a/src/plugins/query_enhancements/public/datasets/s3_type.ts +++ b/src/plugins/query_enhancements/public/datasets/s3_type.ts @@ -131,7 +131,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': diff --git a/src/plugins/query_enhancements/public/plugin.tsx b/src/plugins/query_enhancements/public/plugin.tsx index 4058b5a595db..715ba53f0153 100644 --- a/src/plugins/query_enhancements/public/plugin.tsx +++ b/src/plugins/query_enhancements/public/plugin.tsx @@ -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', {