|
@@ -10,6 +10,7 @@ package org.elasticsearch.xpack.esql.expression.function;
|
|
|
import org.apache.lucene.document.InetAddressPoint;
|
|
|
import org.apache.lucene.sandbox.document.HalfFloatPoint;
|
|
|
import org.apache.lucene.util.BytesRef;
|
|
|
+import org.elasticsearch.common.Strings;
|
|
|
import org.elasticsearch.common.breaker.CircuitBreaker;
|
|
|
import org.elasticsearch.common.breaker.CircuitBreakingException;
|
|
|
import org.elasticsearch.common.bytes.BytesReference;
|
|
@@ -1161,7 +1162,7 @@ public abstract class AbstractFunctionTestCase extends ESTestCase {
|
|
|
*Description*
|
|
|
|
|
|
""" + description + "\n";
|
|
|
- if (note != null) {
|
|
|
+ if (Strings.isNullOrEmpty(note) == false) {
|
|
|
rendered += "\nNOTE: " + note + "\n";
|
|
|
}
|
|
|
LogManager.getLogger(getTestClass()).info("Writing description for [{}]:\n{}", functionName(), rendered);
|