From 5fd44674f79556467ce254f493c4f95c08973ce4 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 2 Jan 2025 21:27:03 +1100 Subject: [PATCH] [8.x] [ES|QL] capitalize `FROM` in recommended queries (#205122) (#205352) # Backport This will backport the following commits from `main` to `8.x`: - [[ES|QL] capitalize `FROM` in recommended queries (#205122)](https://github.com/elastic/kibana/pull/205122) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) --------- Co-authored-by: Drew Tate --- NOTICE.txt | 2 +- .../public/query_string_input/esql_menu_popover.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NOTICE.txt b/NOTICE.txt index 9cd38e6773d88..312326d7e41a9 100644 --- a/NOTICE.txt +++ b/NOTICE.txt @@ -1,5 +1,5 @@ Kibana source code with Kibana X-Pack source code -Copyright 2012-2024 Elasticsearch B.V. +Copyright 2012-2025 Elasticsearch B.V. --- Adapted from remote-web-worker, which was available under a "MIT" license. diff --git a/src/plugins/unified_search/public/query_string_input/esql_menu_popover.tsx b/src/plugins/unified_search/public/query_string_input/esql_menu_popover.tsx index ba978debb73de..1b8226bb03cbf 100644 --- a/src/plugins/unified_search/public/query_string_input/esql_menu_popover.tsx +++ b/src/plugins/unified_search/public/query_string_input/esql_menu_popover.tsx @@ -56,7 +56,7 @@ export const ESQLMenuPopover: React.FC = ({ const esqlContextMenuPanels = useMemo(() => { const recommendedQueries = []; if (adHocDataview && typeof adHocDataview !== 'string') { - const queryString = `from ${adHocDataview.name}`; + const queryString = `FROM ${adHocDataview.name}`; const timeFieldName = adHocDataview.timeFieldName ?? adHocDataview.fields?.getByType('date')?.[0]?.name;