Skip to content

Instantly share code, notes, and snippets.

diff --git a/modules/parent-join/src/yamlRestTest/resources/rest-api-spec/test/50_order_by.yml b/modules/parent-join/src/yamlRestTest/resources/rest-api-spec/test/50_order_by.yml
new file mode 100644
index 0000000000000..f730d3f9e1261
--- /dev/null
+++ b/modules/parent-join/src/yamlRestTest/resources/rest-api-spec/test/50_order_by.yml
@@ -0,0 +1,229 @@
+---
+"order by sub agg containing join":
+ - do:
+ indices.create:
diff --git a/plugins/repository-azure/build.gradle b/plugins/repository-azure/build.gradle
index a810d982ea0..de61f3a3119 100644
--- a/plugins/repository-azure/build.gradle
+++ b/plugins/repository-azure/build.gradle
@@ -260,16 +260,51 @@ tasks.named("thirdPartyAudit").configure {
'org.slf4j.impl.StaticLoggerBinder',
'org.slf4j.impl.StaticMDCBinder',
'org.slf4j.impl.StaticMarkerBinder',
-
- 'java.lang.StackWalker',
$ JAVA_HOME=~/Bin/jdk-15.0.1+9/ ./gradlew -p benchmarks/ run --args 'AggConstructionContentionBenchmark.sixSums'
=======================================
Elasticsearch Build Hamster says Hello!
Gradle Version : 6.6.1
OS Info : Linux 4.19.0-12-cloud-amd64 (amd64)
JDK Version : 15 (AdoptOpenJDK)
JAVA_HOME : /home/nik/Bin/jdk-15.0.1+9
Random Testing Seed : 4D35AC456017C335
In FIPS 140 mode : false
=======================================
Introduction
Who is Nik
What is elasticsearch
My plan - 20 minutes of prepared material and then whatever folks would like
Who are you people?
Name, experience with Elasticsearch, what you are interested in doing
Fork the repo
Download latest JDK
Demo part 2
curl -uelastic:password -HContent-Type:application/json -XPOST 'localhost:9200/test/_bulk?refresh&pretty' -d'
{ "index": { "_id": "nginx" } }
{ "timestamp": "2020-10-19T14:00:00Z", "track": "Networking/Elasticsearch", "title": "A Reference Architecture for Running Modern APIs with NGINX Unit and NGINX Web Server" }
{ "index": { "_id": "nebula" } }
{ "timestamp": "2020-10-19T16:00:00Z", "track": "Networking/Elasticsearch", "title": "Creating a Fast, Secure, Location Agnostic Mesh Network with Nebula." }
{ "index": { "_id": "mysql" } }
{ "timestamp": "2020-10-19T14:00:00Z", "track": "Databases", "title": "MySQL Indexes, Histograms, Locking Options, and Other Ways to Speed Up Your Queries" }
{ "index": { "_id": "spark3" } }
Demo part 1
curl -uelastic:password -HContent-Type:application/json -XDELETE localhost:9200/test
curl -uelastic:password -HContent-Type:application/json -XPOST 'localhost:9200/test/_doc/es?refresh&pretty' -d'{
"timestamp": "2020-10-19T21:00:00Z",
"track": "Networking/Elasticsearch",
"title": "Contributing to Elasticsearch"
}'
Before:
| Min Throughput | date_histogram_calendar_interval | 0.1 | ops/s |
| Median Throughput | date_histogram_calendar_interval | 0.1 | ops/s |
| Max Throughput | date_histogram_calendar_interval | 0.1 | ops/s |
| 50th percentile latency | date_histogram_calendar_interval | 9128.95 | ms |
| 90th percentile latency | date_histogram_calendar_interval | 9266.95 | ms |
| 100th percentile latency | date_histogram_calendar_interval | 9425.58 | ms |
| 50th percentile service time | date_histogram_calendar_interval | 9128.08 | ms |
| 90th percentile service time |
$ curl -HContent-Type:application/json -uelastic:password localhost:9200/_search?pretty -d'{
> "size": 0,
> "query": {
> "range": {
> "TMAX": {
> "gt": -90,
> "lt": 50
> }
> }
> },
$ curl -HContent-Type:application/json -uelastic:password localhost:9200/_search?pretty -d'{
> "size": 0,
> "query": {
> "range": {
> "TMAX": {
> "gt": -90,
> "lt": 50
> }
> }
> },
diff --git a/modules/lang-painless/src/main/java/org/elasticsearch/painless/PainlessScriptEngine.java b/modules/lang-painless/src/main/java/org/elasticsearch/painless/PainlessScriptEngine.java
index 13dfec9e7dd..743597b3853 100644
--- a/modules/lang-painless/src/main/java/org/elasticsearch/painless/PainlessScriptEngine.java
+++ b/modules/lang-painless/src/main/java/org/elasticsearch/painless/PainlessScriptEngine.java
@@ -341,6 +341,24 @@ public final class PainlessScriptEngine implements ScriptEngine {
deterAdapter.returnValue();
deterAdapter.endMethod();
+ org.objectweb.asm.commons.Method docFields = new org.objectweb.asm.commons.Method(methodName,
+ MethodType.methodType(List.class).toMethodDescriptorString());