Skip to content

Commit

Permalink
[ES|QL] Add support for byte_length scalar function
Browse files Browse the repository at this point in the history
  • Loading branch information
GalLalouche authored and Gal (Windows) committed Nov 11, 2024
1 parent 877b537 commit 33b50ab
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
import static org.elasticsearch.xpack.esql.core.expression.TypeResolutions.isString;

public class ByteLength extends UnaryScalarFunction {
public static final NamedWriteableRegistry.Entry ENTRY = new NamedWriteableRegistry.Entry(Expression.class, "ByteLength", ByteLength::new);
public static final NamedWriteableRegistry.Entry ENTRY = new NamedWriteableRegistry.Entry(
Expression.class,
"ByteLength",
ByteLength::new
);

@FunctionInfo(
returnType = "integer",
Expand Down

0 comments on commit 33b50ab

Please sign in to comment.