From fe147f33fa6ffbe132e0fe1ecf5783e2bda9b9ed Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Thu, 14 Nov 2024 15:37:24 +0100 Subject: [PATCH] Fix Railroad diagram labels --- docs/reference/esql/functions/signature/match_operator.svg | 1 + .../xpack/esql/expression/function/RailRoadDiagram.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 docs/reference/esql/functions/signature/match_operator.svg diff --git a/docs/reference/esql/functions/signature/match_operator.svg b/docs/reference/esql/functions/signature/match_operator.svg new file mode 100644 index 0000000000000..3ba814bf439a8 --- /dev/null +++ b/docs/reference/esql/functions/signature/match_operator.svg @@ -0,0 +1 @@ +field:value \ No newline at end of file diff --git a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/RailRoadDiagram.java b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/RailRoadDiagram.java index f4bb4f4a12dbb..43e2ededeff0e 100644 --- a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/RailRoadDiagram.java +++ b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/RailRoadDiagram.java @@ -97,7 +97,7 @@ static String searchOperator(String operator) throws IOException { List expressions = new ArrayList<>(); expressions.add(new Literal("field")); expressions.add(new Syntax(operator)); - expressions.add(new Literal("value")); + expressions.add(new Literal("query")); return toSvg(new Sequence(expressions.toArray(Expression[]::new))); }