Skip to content

Commit

Permalink
Last one?
Browse files Browse the repository at this point in the history
  • Loading branch information
nik9000 committed Aug 22, 2023
1 parent 8ae145c commit 6b72f3e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
4 changes: 4 additions & 0 deletions x-pack/plugin/esql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ tasks.named("compileJava").configure {
options.compilerArgs.addAll(["-s", "${projectDir}/src/main/java/generated"])
}

tasks.named("javadoc").configure {
include("${projectDir}/src/main/java/generated")
}

sourceSets.main.java {
exclude 'generated/**'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,23 +275,6 @@ emp_no:integer | name:keyword
10010 | Duangkaew Piveteau
;

concatSingle
from employees | sort emp_no | limit 10 | eval name = concat(first_name) | keep emp_no, name;

emp_no:integer | name:keyword
10001 | Georgi
10002 | Bezalel
10003 | Parto
10004 | Chirstian
10005 | Kyoichi
10006 | Anneke
10007 | Tzvetan
10008 | Saniya
10009 | Sumant
10010 | Duangkaew
;


concatComplex
from employees | sort emp_no | limit 10 | eval foo = " - ", x = concat(gender, foo) | eval name = concat(x, first_name, " ", last_name, ", ", concat(first_name, last_name)) | keep emp_no, name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ protected void assertSimpleWithNulls(List<Object> data, Block value, int nullBlo
if (v == null) {
continue;
}
if (v instanceof List<?> l && l.size() == 1) {
v = l.get(0);
}
assertThat(toJavaObject(value, 0), equalTo(v));
return;
}
Expand Down

0 comments on commit 6b72f3e

Please sign in to comment.