Skip to content

Commit 2506a55

Browse files
committed
reorder
1 parent e03a7b3 commit 2506a55

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/EsqlFunctionRegistry.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
import org.elasticsearch.xpack.esql.expression.function.scalar.date.DateParse;
6969
import org.elasticsearch.xpack.esql.expression.function.scalar.date.DateTrunc;
7070
import org.elasticsearch.xpack.esql.expression.function.scalar.date.Now;
71-
import org.elasticsearch.xpack.esql.expression.function.scalar.hash.Hash;
7271
import org.elasticsearch.xpack.esql.expression.function.scalar.ip.CIDRMatch;
7372
import org.elasticsearch.xpack.esql.expression.function.scalar.ip.IpPrefix;
7473
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Abs;
@@ -130,6 +129,7 @@
130129
import org.elasticsearch.xpack.esql.expression.function.scalar.string.ByteLength;
131130
import org.elasticsearch.xpack.esql.expression.function.scalar.string.Concat;
132131
import org.elasticsearch.xpack.esql.expression.function.scalar.string.EndsWith;
132+
import org.elasticsearch.xpack.esql.expression.function.scalar.string.Hash;
133133
import org.elasticsearch.xpack.esql.expression.function.scalar.string.LTrim;
134134
import org.elasticsearch.xpack.esql.expression.function.scalar.string.Left;
135135
import org.elasticsearch.xpack.esql.expression.function.scalar.string.Length;
@@ -327,6 +327,7 @@ private static FunctionDefinition[][] functions() {
327327
def(ByteLength.class, ByteLength::new, "byte_length"),
328328
def(Concat.class, Concat::new, "concat"),
329329
def(EndsWith.class, EndsWith::new, "ends_with"),
330+
def(Hash.class, Hash::new, "hash"),
330331
def(LTrim.class, LTrim::new, "ltrim"),
331332
def(Left.class, Left::new, "left"),
332333
def(Length.class, Length::new, "length"),
@@ -341,8 +342,7 @@ private static FunctionDefinition[][] functions() {
341342
def(Substring.class, Substring::new, "substring"),
342343
def(ToLower.class, ToLower::new, "to_lower"),
343344
def(ToUpper.class, ToUpper::new, "to_upper"),
344-
def(Trim.class, Trim::new, "trim"),
345-
def(Hash.class, Hash::new, "hash") },
345+
def(Trim.class, Trim::new, "trim") },
346346
// date
347347
new FunctionDefinition[] {
348348
def(DateDiff.class, DateDiff::new, "date_diff"),

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/ScalarFunctionWritables.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.elasticsearch.xpack.esql.expression.function.scalar.date.DateParse;
2121
import org.elasticsearch.xpack.esql.expression.function.scalar.date.DateTrunc;
2222
import org.elasticsearch.xpack.esql.expression.function.scalar.date.Now;
23-
import org.elasticsearch.xpack.esql.expression.function.scalar.hash.Hash;
2423
import org.elasticsearch.xpack.esql.expression.function.scalar.ip.CIDRMatch;
2524
import org.elasticsearch.xpack.esql.expression.function.scalar.ip.IpPrefix;
2625
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Atan2;
@@ -35,6 +34,7 @@
3534
import org.elasticsearch.xpack.esql.expression.function.scalar.string.BitLength;
3635
import org.elasticsearch.xpack.esql.expression.function.scalar.string.Concat;
3736
import org.elasticsearch.xpack.esql.expression.function.scalar.string.EndsWith;
37+
import org.elasticsearch.xpack.esql.expression.function.scalar.string.Hash;
3838
import org.elasticsearch.xpack.esql.expression.function.scalar.string.Left;
3939
import org.elasticsearch.xpack.esql.expression.function.scalar.string.Locate;
4040
import org.elasticsearch.xpack.esql.expression.function.scalar.string.Repeat;
@@ -64,6 +64,7 @@ public static List<NamedWriteableRegistry.Entry> getNamedWriteables() {
6464
entries.add(Concat.ENTRY);
6565
entries.add(E.ENTRY);
6666
entries.add(EndsWith.ENTRY);
67+
entries.add(Hash.ENTRY);
6768
entries.add(Greatest.ENTRY);
6869
entries.add(Hypot.ENTRY);
6970
entries.add(In.ENTRY);
@@ -93,7 +94,6 @@ public static List<NamedWriteableRegistry.Entry> getNamedWriteables() {
9394
entries.add(Tau.ENTRY);
9495
entries.add(ToLower.ENTRY);
9596
entries.add(ToUpper.ENTRY);
96-
entries.add(Hash.ENTRY);
9797

9898
entries.addAll(GroupingWritables.getNamedWriteables());
9999
return entries;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* 2.0.
66
*/
77

8-
package org.elasticsearch.xpack.esql.expression.function.scalar.hash;
8+
package org.elasticsearch.xpack.esql.expression.function.scalar.string;
99

1010
import org.apache.lucene.util.BytesRef;
1111
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* 2.0.
66
*/
77

8-
package org.elasticsearch.xpack.esql.expression.function.scalar.hash;
8+
package org.elasticsearch.xpack.esql.expression.function.scalar.string;
99

1010
import com.carrotsearch.randomizedtesting.annotations.Name;
1111
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;

0 commit comments

Comments
 (0)