Skip to content

ESQL fix TO_IP leading_zeros=octal parsing#141776

Merged
cimequinox merged 6 commits intoelastic:mainfrom
cimequinox:esql_to_ip_leading_zeros_octal_141627
Feb 4, 2026
Merged

ESQL fix TO_IP leading_zeros=octal parsing#141776
cimequinox merged 6 commits intoelastic:mainfrom
cimequinox:esql_to_ip_leading_zeros_octal_141627

Conversation

@cimequinox
Copy link
Contributor

@cimequinox cimequinox commented Feb 3, 2026

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Feb 3, 2026
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine
Copy link
Collaborator

Hi @cimequinox, I've created a changelog YAML for you.

@cimequinox cimequinox added auto-backport Automatically create backport pull requests when merged v8.19.12 labels Feb 3, 2026
@cimequinox cimequinox merged commit 994c46b into elastic:main Feb 4, 2026
35 checks passed
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
9.3 Commit could not be cherrypicked due to conflicts
8.19 Commit could not be cherrypicked due to conflicts
9.2 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 141776

cimequinox added a commit to cimequinox/elasticsearch that referenced this pull request Feb 4, 2026
* Adds the check proposed by @strawgate so that TO_IP(input, {"leading_zeros":"octal"}) returns a proper error when the input is invalid.
* Adds a test to ip.csv-spec to verify the fix.
* Adds a capability fix_to_ip_leading_zeros_octal to control the test.
* Resolves elastic#141627

(cherry picked from commit 994c46b)

# Conflicts:
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
cimequinox added a commit to cimequinox/elasticsearch that referenced this pull request Feb 4, 2026
* Adds the check proposed by @strawgate so that TO_IP(input, {"leading_zeros":"octal"}) returns a proper error when the input is invalid.
* Adds a test to ip.csv-spec to verify the fix.
* Adds a capability fix_to_ip_leading_zeros_octal to control the test.
* Resolves elastic#141627

(cherry picked from commit 994c46b)

# Conflicts:
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
@cimequinox
Copy link
Contributor Author

💔 Some backports could not be created

Status Branch Result
9.3
9.2
8.19 An unhandled error occurred. Please see the logs for details

Manual backport

To create the backport manually run:

backport --pr 141776

Questions ?

Please refer to the Backport tool documentation

cimequinox added a commit that referenced this pull request Feb 5, 2026
Backports #141776 to 9.3:

* Adds the check proposed by @strawgate so that TO_IP(input, {"leading_zeros":"octal"}) returns a proper error when the input is invalid.
* Adds a test to ip.csv-spec to verify the fix.
* Adds a capability fix_to_ip_leading_zeros_octal to control the test.
* Resolves #141627

(cherry picked from commit 994c46b)
@cimequinox
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.19

Questions ?

Please refer to the Backport tool documentation

mamazzol pushed a commit to mamazzol/elasticsearch that referenced this pull request Feb 5, 2026
* Adds the check proposed by @strawgate so that TO_IP(input, {"leading_zeros":"octal"}) returns a proper error when the input is invalid.
* Adds a test to ip.csv-spec to verify the fix.
* Adds a capability fix_to_ip_leading_zeros_octal to control the test.
* Resolves elastic#141627
elasticsearchmachine pushed a commit that referenced this pull request Feb 5, 2026
* Adds the check proposed by @strawgate so that TO_IP(input, {"leading_zeros":"octal"}) returns a proper error when the input is invalid.
* Adds a test to ip.csv-spec to verify the fix.
* Adds a capability fix_to_ip_leading_zeros_octal to control the test.
* Resolves #141627

(cherry picked from commit 994c46b)

# Conflicts:
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
@cimequinox cimequinox self-assigned this Feb 5, 2026
elasticsearchmachine pushed a commit that referenced this pull request Feb 5, 2026
* Adds the check proposed by @strawgate so that TO_IP(input, {"leading_zeros":"octal"}) returns a proper error when the input is invalid.
* Adds a test to ip.csv-spec to verify the fix.
* Adds a capability fix_to_ip_leading_zeros_octal to control the test.
* Resolves #141627

(cherry picked from commit 994c46b)

# Conflicts:
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL auto-backport Automatically create backport pull requests when merged >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.19.12 v9.2.6 v9.3.1 v9.4.0

3 participants