From 0425a5a63e3d39bf14abd163c0568732d6c79192 Mon Sep 17 00:00:00 2001
From: ppisljar <peter.pisljar@gmail.com>
Date: Wed, 17 Mar 2021 14:42:07 +0100
Subject: [PATCH] kql to kuery

---
 src/plugins/data/common/search/expressions/kql.test.ts | 2 +-
 src/plugins/data/common/search/expressions/kql.ts      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/data/common/search/expressions/kql.test.ts b/src/plugins/data/common/search/expressions/kql.test.ts
index 5764c40e08c19..dcf3906e6c2f5 100644
--- a/src/plugins/data/common/search/expressions/kql.test.ts
+++ b/src/plugins/data/common/search/expressions/kql.test.ts
@@ -33,7 +33,7 @@ describe('interpreter/functions#kql', () => {
     expect(actual).toMatchInlineSnapshot(
       `
       Object {
-        "language": "kql",
+        "language": "kuery",
         "query": "test",
         "type": "kibana_query",
       }
diff --git a/src/plugins/data/common/search/expressions/kql.ts b/src/plugins/data/common/search/expressions/kql.ts
index 80a74c4f4eaaf..5dd830f92f834 100644
--- a/src/plugins/data/common/search/expressions/kql.ts
+++ b/src/plugins/data/common/search/expressions/kql.ts
@@ -42,7 +42,7 @@ export const kqlFunction: ExpressionFunctionKql = {
   fn(input, args) {
     return {
       type: 'kibana_query',
-      language: 'kql',
+      language: 'kuery',
       query: args.q,
     };
   },