Skip to content

Commit

Permalink
Merge branch 'main' into 2024/04/11/refcounting-and-gap-completion
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrx committed May 30, 2024
2 parents 7a486aa + e022bc3 commit ab3b4b1
Show file tree
Hide file tree
Showing 237 changed files with 2,740 additions and 1,909 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ x-pack/plugin/esql/src/main/antlr/*.tokens linguist-generated=true
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/*.interp linguist-generated=true
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseLexer*.java linguist-generated=true
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser*.java linguist-generated=true
x-pack/plugin/esql/src/main/generated/** linguist-generated=true

# ESQL functions docs are autogenerated. More information at `docs/reference/esql/functions/README.md`
docs/reference/esql/functions/*/** linguist-generated=true

Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import org.elasticsearch.xpack.esql.expression.predicate.operator.arithmetic.Add;
import org.elasticsearch.xpack.esql.expression.predicate.operator.comparison.Equals;
import org.elasticsearch.xpack.esql.planner.Layout;
import org.elasticsearch.xpack.esql.type.EsqlDataTypes;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Fork;
Expand Down Expand Up @@ -113,7 +112,7 @@ private static EvalOperator.ExpressionEvaluator evaluator(String operation) {
new EsField("timestamp", DataTypes.DATETIME, Map.of(), true)
);
yield EvalMapper.toEvaluator(
new DateTrunc(Source.EMPTY, new Literal(Source.EMPTY, Duration.ofHours(24), EsqlDataTypes.TIME_DURATION), timestamp),
new DateTrunc(Source.EMPTY, new Literal(Source.EMPTY, Duration.ofHours(24), DataTypes.TIME_DURATION), timestamp),
layout(timestamp)
).get(driverContext);
}
Expand Down
16 changes: 13 additions & 3 deletions build-tools-internal/src/main/resources/changelog-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"EQL",
"ES|QL",
"Engine",
"Experiences",
"Extract&Transform",
"FIPS",
"Features",
"Geo",
Expand All @@ -48,6 +50,7 @@
"ILM+SLM",
"IdentityProvider",
"Indices APIs",
"Inference",
"Infra/CLI",
"Infra/Circuit Breakers",
"Infra/Core",
Expand Down Expand Up @@ -76,6 +79,7 @@
"Ranking",
"Recovery",
"Reindex",
"Relevance",
"Rollup",
"SQL",
"Search",
Expand Down Expand Up @@ -174,7 +178,9 @@
}
},
"then": {
"required": ["breaking"]
"required": [
"breaking"
]
}
},
{
Expand All @@ -186,7 +192,9 @@
}
},
"then": {
"required": ["breaking"]
"required": [
"breaking"
]
}
}
],
Expand All @@ -198,7 +206,9 @@
}
},
"then": {
"required": ["deprecation"]
"required": [
"deprecation"
]
},
"additionalProperties": false
},
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog/109048.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 109048
summary: Guard against a null scorer in painless execute
area: Infra/Scripting
type: bug
issues:
- 43541
6 changes: 6 additions & 0 deletions docs/changelog/109070.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 109070
summary: "ESQL: Add `ip_prefix` function"
area: ES|QL
type: feature
issues:
- 99064
6 changes: 6 additions & 0 deletions docs/changelog/109097.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 109097
summary: "[Connector API] Fix bug with with wrong target index for access control\
\ sync"
area: Application
type: bug
issues: []
6 changes: 6 additions & 0 deletions docs/changelog/109104.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 109104
summary: Offload request to generic threadpool
area: Machine Learning
type: bug
issues:
- 109100
5 changes: 5 additions & 0 deletions docs/changelog/109126.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 109126
summary: Correctly handle duplicate model ids for the `_cat` trained models api and usage statistics
area: Machine Learning
type: bug
issues: [ ]
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ beta::[]

Cancels a connector sync job.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[cancel-connector-sync-job-api-request]]
==== {api-request-title}
`PUT _connector/_sync_job/<connector_sync_job_id>/_cancel`
Expand Down
2 changes: 2 additions & 0 deletions docs/reference/connector/apis/check-in-connector-api.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ preview::[]

Updates the `last_seen` field of a connector with current timestamp.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[check-in-connector-api-request]]
==== {api-request-title}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ preview::[]

Checks in a connector sync job (updates `last_seen` to the current time).

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[check-in-connector-sync-job-api-request]]
==== {api-request-title}
`PUT _connector/_sync_job/<connector_sync_job_id>/_check_in/`
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/connector/apis/connector-apis.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

beta::[]

The connector and sync jobs APIs provide a convenient way to create and manage Elastic {enterprise-search-ref}/connectors.html[connectors^] and sync jobs in an internal index.
The connector and sync jobs APIs provide a convenient way to create and manage Elastic {enterprise-search-ref}/connectors.html[connectors^] and sync jobs in an internal index. To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

Connectors are {es} integrations that bring content from third-party data sources, which can be deployed on {ecloud} or hosted on your own infrastructure:

Expand Down
2 changes: 2 additions & 0 deletions docs/reference/connector/apis/create-connector-api.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Connectors are {es} integrations that bring content from third-party data source

Find a list of all supported service types in the {enterprise-search-ref}/connectors.html[connectors documentation^].

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[source,console]
--------------------------------------------------
PUT _connector/my-connector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ beta::[]

Creates a connector sync job.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[source, console]
--------------------------------------------------
POST _connector/_sync_job
Expand Down
2 changes: 2 additions & 0 deletions docs/reference/connector/apis/delete-connector-api.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ This is a destructive action that is not recoverable.

Note: this action doesn't delete any API key, ingest pipeline or data index associated with the connector. These need to be removed manually.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[delete-connector-api-request]]
==== {api-request-title}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ beta::[]
Removes a connector sync job and its associated data.
This is a destructive action that is not recoverable.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[delete-connector-sync-job-api-request]]
==== {api-request-title}

Expand Down
2 changes: 2 additions & 0 deletions docs/reference/connector/apis/get-connector-api.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ beta::[]

Retrieves the details about a connector.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[get-connector-api-request]]
==== {api-request-title}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ beta::[]

Retrieves the details about a connector sync job.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[get-connector-sync-job-api-request]]
==== {api-request-title}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ beta::[]

Returns information about all stored connector sync jobs ordered by their creation date in ascending order.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[list-connector-sync-jobs-api-request]]
==== {api-request-title}
Expand Down
2 changes: 2 additions & 0 deletions docs/reference/connector/apis/list-connectors-api.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ beta::[]

Returns information about all created connectors.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].


[[list-connector-api-request]]
==== {api-request-title}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ preview::[]

Sets a connector sync job error.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[set-connector-sync-job-error-api-request]]
==== {api-request-title}
`PUT _connector/_sync_job/<connector_sync_job_id>/_error`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ preview::[]

Sets connector sync job stats.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[set-connector-sync-job-stats-api-request]]
==== {api-request-title}
`PUT _connector/_sync_job/<connector_sync_job_id>/_stats`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ The Connector Secret ID is only required for native connectors.
Connector clients do not use this field.
See the documentation for {enterprise-search-ref}/native-connectors.html#native-connectors-manage-API-keys-programmatically[managing native connector API keys programmatically^] for more details.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[update-connector-api-key-id-api-request]]
==== {api-request-title}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ beta::[]

Updates a connector's `configuration`, allowing for config value updates within a registered configuration schema.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[update-connector-configuration-api-request]]
==== {api-request-title}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ preview::[]

Updates the `error` field of a connector.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[update-connector-error-api-request]]
==== {api-request-title}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Updates the draft `filtering` configuration of a connector and marks the draft v

The filtering property is used to configure sync rules (both basic and advanced) for a connector. Learn more in the {enterprise-search-ref}/sync-rules.html[sync rules documentation].

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[update-connector-filtering-api-request]]
==== {api-request-title}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ beta::[]

Updates the `index_name` field of a connector, specifying the index where the data ingested by the connector is stored.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[update-connector-index-name-api-request]]
==== {api-request-title}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Updates the fields related to the last sync of a connector.

This action is used for analytics and monitoring.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[update-connector-last-sync-api-request]]
==== {api-request-title}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ beta::[]

Updates the `name` and `description` fields of a connector.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[update-connector-name-description-api-request]]
==== {api-request-title}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Updates the `pipeline` configuration of a connector.

When you create a new connector, the configuration of an <<ingest-pipeline-search-details-generic-reference, ingest pipeline>> is populated with default settings.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[update-connector-pipeline-api-request]]
==== {api-request-title}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ beta::[]

Updates the `scheduling` configuration of a connector.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[update-connector-scheduling-api-request]]
==== {api-request-title}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ beta::[]

Updates the `service_type` of a connector.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[update-connector-service-type-api-request]]
==== {api-request-title}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ preview::[]

Updates the `status` of a connector.

To get started with Connector APIs, check out the {enterprise-search-ref}/connectors-tutorial-api.html[tutorial^].

[[update-connector-status-api-request]]
==== {api-request-title}

Expand Down
5 changes: 5 additions & 0 deletions docs/reference/esql/functions/description/ip_prefix.asciidoc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions docs/reference/esql/functions/examples/ip_prefix.asciidoc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions docs/reference/esql/functions/kibana/definition/ip_prefix.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ab3b4b1

Please sign in to comment.