From 5c6d9038d87801a9d0fb4cb375cb19967ea6638c Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 16 Oct 2024 22:26:09 +1100 Subject: [PATCH] [8.x] [ES|QL] Retrieves ccs information for inspector on demand (#196105) (#196511) # Backport This will backport the following commits from `main` to `8.x`: - [[ES|QL] Retrieves ccs information for inspector on demand (#196105)](https://github.com/elastic/kibana/pull/196105) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Stratoula Kalafateli --- 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(