Skip to content

Commit aa7c89b

Browse files
committed
clean up logging some more
1 parent 3f40c8c commit aa7c89b

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ public enum Cap {
551551
*/
552552
DATE_NANOS_DATE_DIFF(),
553553
/**
554-
* Indicates that https://github.com/elastic/elasticsearch/issues/125439 is fixed
554+
* Indicates that https://github.com/elastic/elasticsearch/issues/125439 (incorrect lucene push down for date nanos) is fixed
555555
*/
556556
FIX_DATE_NANOS_LUCENE_PUSHDOWN_BUG(),
557557
/**

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/predicate/Range.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,10 @@ private RangeQuery translate(TranslatorHandler handler) {
218218

219219
DataType dataType = value.dataType();
220220
logger.trace(
221-
"Translating Range into lucene query. dataType is [" + dataType + "] upper is [" + upper + "] lower is [" + lower + "]"
221+
"Translating Range into lucene query. dataType is [{}] upper is [{}] lower is [{}]",
222+
dataType,
223+
lower,
224+
upper
222225
);
223226
if (dataType == DataType.DATETIME && lower.dataType() == DATETIME && upper.dataType() == DATETIME) {
224227
l = dateTimeToString((Long) l);

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/predicate/operator/comparison/EsqlBinaryComparison.java

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -383,19 +383,13 @@ private Query translate(TranslatorHandler handler) {
383383
boolean isDateLiteralComparison = false;
384384

385385
logger.trace(
386-
"Translating binary comparison with right: ["
387-
+ right()
388-
+ "<"
389-
+ right().dataType()
390-
+ ">] left: ["
391-
+ left()
392-
+ "<"
393-
+ left().dataType()
394-
+ ">] attribute: ["
395-
+ attribute
396-
+ "<"
397-
+ attribute.dataType()
398-
+ ">]"
386+
"Translating binary comparison with right: [{}<{}>], left: [{}<{}>], attribute: [{}<{}>]",
387+
right(),
388+
right().dataType(),
389+
left(),
390+
left().dataType(),
391+
attribute,
392+
attribute.dataType()
399393
);
400394

401395
// TODO: This type coersion layer is copied directly from the QL counterpart code. It's probably not necessary or desireable

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/planner/EsPhysicalOperationProviders.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public Function<org.elasticsearch.compute.lucene.ShardContext, Query> querySuppl
184184
@Override
185185
public final PhysicalOperation sourcePhysicalOperation(EsQueryExec esQueryExec, LocalExecutionPlannerContext context) {
186186
final LuceneOperator.Factory luceneFactory;
187-
logger.trace("Query Exec is " + esQueryExec);
187+
logger.trace("Query Exec is {}", esQueryExec);
188188

189189
List<Sort> sorts = esQueryExec.sorts();
190190
assert esQueryExec.estimatedRowSize() != null : "estimated row size not initialized";

0 commit comments

Comments
 (0)