Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/changelog/129278.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 129278
summary: Fix constant keyword optimization
area: ES|QL
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ public CaseInsensitiveTermQuery(Term term) {

@Override
public String toString(String field) {
return this.getClass().getSimpleName() + "{" + field + ":" + term.text() + "}";
StringBuilder buffer = new StringBuilder();
buffer.append(getClass().getSimpleName());
buffer.append('{');
if (term.field().equals(field) == false) {
buffer.append(term.field());
buffer.append(':');
}
buffer.append(term.text());
buffer.append('}');
return buffer.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ public Page getOutput() {
}

@Override
public void close() {
public void close() {}

@Override
public String toString() {
return "LocalSourceOperator";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the signature rendering for the test.

}
}
Loading
Loading