From e8478f9adc3917c0f8927689e6eec5a68f657a0e Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Tue, 3 Nov 2020 15:20:16 +0100 Subject: [PATCH] fix import --- .../plugins/lens/public/indexpattern_datasource/time_scale.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/lens/public/indexpattern_datasource/time_scale.ts b/x-pack/plugins/lens/public/indexpattern_datasource/time_scale.ts index 06a6c6393478e..0937f40eeb6d3 100644 --- a/x-pack/plugins/lens/public/indexpattern_datasource/time_scale.ts +++ b/x-pack/plugins/lens/public/indexpattern_datasource/time_scale.ts @@ -8,7 +8,7 @@ import moment from 'moment-timezone'; import { i18n } from '@kbn/i18n'; import { ExpressionFunctionDefinition, Datatable } from 'src/plugins/expressions/public'; import { DataPublicPluginStart } from 'src/plugins/data/public'; -import { parseInterval } from 'src/plugins/data/common'; +import { search } from '../../../../../src/plugins/data/public'; type TimeScaleUnit = 's' | 'm' | 'h' | 'd'; @@ -115,7 +115,7 @@ export function getTimeScaleFunction(data: DataPublicPluginStart) { const targetUnitInMs = unitInMs[targetUnit]; const timeInfo = await data.search.aggs.getDateMetaByDatatableColumn(dateColumnDefinition); - const intervalDuration = timeInfo && parseInterval(timeInfo.interval); + const intervalDuration = timeInfo && search.aggs.parseInterval(timeInfo.interval); if (!timeInfo || !intervalDuration) { throw new Error(