From fbe15fe7886102c1203c18ff87f3a0ea72e4b581 Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Wed, 16 Oct 2024 11:39:00 +0200 Subject: [PATCH] [ES|QL] Retrieves ccs information for inspector on demand (#196105) ## Summary Retrieves the cluster details info on demand. Follow up of https://github.com/elastic/elasticsearch/pull/114437 This will display the cluster details info only when needed: - Discover inspector - Lens ES|QL charts inspector --- packages/kbn-es-types/src/search.ts | 1 + src/plugins/data/common/search/expressions/esql.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/kbn-es-types/src/search.ts b/packages/kbn-es-types/src/search.ts index 3e67208bc2793..4c780fb2a2986 100644 --- a/packages/kbn-es-types/src/search.ts +++ b/packages/kbn-es-types/src/search.ts @@ -692,6 +692,7 @@ export interface ESQLSearchParams { query: string; filter?: unknown; locale?: string; + include_ccs_metadata?: boolean; dropNullColumns?: boolean; params?: Array>; } diff --git a/src/plugins/data/common/search/expressions/esql.ts b/src/plugins/data/common/search/expressions/esql.ts index 966500710fd45..a93996f163962 100644 --- a/src/plugins/data/common/search/expressions/esql.ts +++ b/src/plugins/data/common/search/expressions/esql.ts @@ -164,6 +164,7 @@ export const getEsqlFn = ({ getStartDependencies }: EsqlFnArguments) => { query, // time_zone: timezone, locale, + include_ccs_metadata: true, }; if (input) { const esQueryConfigs = getEsQueryConfig(