diff --git a/x-pack/plugins/lens/common/expressions/index.ts b/x-pack/plugins/lens/common/expressions/index.ts index 526bee92ec7e5..456540d7a7e06 100644 --- a/x-pack/plugins/lens/common/expressions/index.ts +++ b/x-pack/plugins/lens/common/expressions/index.ts @@ -14,3 +14,4 @@ export * from './datatable'; export * from './xy_chart'; export * from './expression_types'; +export { logDataTable } from './expressions_utils'; diff --git a/x-pack/plugins/lens/common/index.ts b/x-pack/plugins/lens/common/index.ts index e0600bd18afc1..3da7cd105398e 100644 --- a/x-pack/plugins/lens/common/index.ts +++ b/x-pack/plugins/lens/common/index.ts @@ -11,6 +11,7 @@ export * from './api'; export * from './constants'; export * from './types'; +export { logDataTable } from './expressions'; // Note: do not import the expression folder here or the page bundle will be bloated with all // the package diff --git a/x-pack/plugins/maps/public/lens/choropleth_chart/expression_function.ts b/x-pack/plugins/maps/public/lens/choropleth_chart/expression_function.ts index 9b2f06d888b07..bab4d4540acb7 100644 --- a/x-pack/plugins/maps/public/lens/choropleth_chart/expression_function.ts +++ b/x-pack/plugins/maps/public/lens/choropleth_chart/expression_function.ts @@ -7,6 +7,7 @@ import type { ExpressionFunctionDefinition } from 'src/plugins/expressions/common'; import type { LensMultiTable } from '../../../../lens/common'; +import { logDataTable } from '../../../../lens/common'; import type { ChoroplethChartConfig, ChoroplethChartProps } from './types'; import { RENDERER_ID } from './expression_renderer'; @@ -56,7 +57,10 @@ export const getExpressionFunction = (): ExpressionFunctionDefinition< }, }, inputTypes: ['lens_multitable'], - fn(data, args) { + fn(data, args, handlers) { + if (handlers?.inspectorAdapters?.tables) { + logDataTable(handlers.inspectorAdapters.tables, data.tables); + } return { type: 'render', as: RENDERER_ID,