From 7c77232a9162178571b9d9728c8ddde907afdfc2 Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Tue, 4 Mar 2025 11:58:27 +0100 Subject: [PATCH] [ES|QL] Correct the lens_map_to_columns function call arguments (#213038) ## Summary The else is being called atm only in Discover ES|QL mode, when the user is typing stats or keep. The `isTextBased` flag is missing which means that we don't call the `mapToOriginalColumnsTextBased` but the one for the dsl mode which might cause bugs. I don't think that Peter had any reason to do so, it seems more as it slipped. (cherry picked from commit e24c1c3ee5f69c1c67d39e072ffd36c84bb230e7) --- .../shared/lens/public/datasources/text_based/to_expression.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/platform/plugins/shared/lens/public/datasources/text_based/to_expression.ts b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/to_expression.ts index 114be587bac0e..d9a12add77409 100644 --- a/x-pack/platform/plugins/shared/lens/public/datasources/text_based/to_expression.ts +++ b/x-pack/platform/plugins/shared/lens/public/datasources/text_based/to_expression.ts @@ -122,6 +122,7 @@ function getExpressionForLayer( function: 'lens_map_to_columns', arguments: { idMap: [JSON.stringify(idMapper)], + isTextBased: [true], }, }, ...formatterOverrides,