Skip to content

Commit

Permalink
Remove index pattern requirement when doing a nested query in KQL (#5…
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote authored Dec 5, 2019
1 parent 9ea910c commit d85f100
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/plugins/data/common/es_query/kuery/functions/nested.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ export function buildNodeParams(path, child) {
}

export function toElasticsearchQuery(node, indexPattern, config, context = {}) {
if (!indexPattern) {
throw new Error('Cannot use nested queries without an index pattern');
}

const [path, child] = node.arguments;
const stringPath = ast.toElasticsearchQuery(path);
const fullPath = context.nested && context.nested.path ? `${context.nested.path}.${stringPath}` : stringPath;
Expand Down

0 comments on commit d85f100

Please sign in to comment.