Skip to content

Conversation

smalyshev
Copy link
Contributor

@smalyshev smalyshev commented Aug 22, 2025

Until #132893 is fixed this sounds like the best way to handle it.

Note: this does reduce some of the test functionality, but since we have the test above that tests it directly, we don't need to fail other tests for it. We can extend the range back once the test above is fixed.

Closes #132948
Closes #132956
Closes #132964
Closes #133394
Closes #133426

Until elastic#132893 is fixed this sounds like
the best way to handle it.
@smalyshev smalyshev requested review from cbuescher and nik9000 August 22, 2025 23:25
@smalyshev smalyshev added :Search Foundations/Mapping Index mappings, including merging and defining field types >test Issues or PRs that are addressing/adding tests labels Aug 22, 2025
@smalyshev smalyshev marked this pull request as ready for review August 22, 2025 23:28
@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Aug 22, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@smalyshev smalyshev added auto-backport Automatically create backport pull requests when merged v9.1.4 v9.0.7 v8.19.3 labels Aug 22, 2025
Copy link
Member

@cbuescher cbuescher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restricting the value range LGTM but I would like to wait for a comment by @nik9000 (also on the hard-coded test in #132893) of what the current expectation for long to double conversions are (especially also in the esql context). Just curious if we need more follow ups here or if it should be clear to everybody that conversions outside this range are not exact by nature.

@smalyshev smalyshev enabled auto-merge (squash) August 26, 2025 14:54
@smalyshev
Copy link
Contributor Author

Just curious if we need more follow ups here or if it should be clear to everybody that conversions outside this range are not exact by nature.

Not sure, the test in #132893 seems to be very specific to test "bad" value, so I presume it was expected to work somehow?

@smalyshev smalyshev merged commit 8f42478 into elastic:main Aug 26, 2025
33 checks passed
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
9.1 Commit could not be cherrypicked due to conflicts
9.0 Commit could not be cherrypicked due to conflicts
8.19 Commit could not be cherrypicked due to conflicts

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

smalyshev added a commit to smalyshev/elasticsearch that referenced this pull request Aug 26, 2025
Until elastic#132893 is fixed this sounds like
the best way to handle it.

(cherry picked from commit 8f42478)

# Conflicts:
#	muted-tests.yml
#	server/src/test/java/org/elasticsearch/index/mapper/LongFieldMapperTests.java
smalyshev added a commit to smalyshev/elasticsearch that referenced this pull request Aug 26, 2025
Until elastic#132893 is fixed this sounds like
the best way to handle it.

(cherry picked from commit 8f42478)

# Conflicts:
#	muted-tests.yml
#	server/src/test/java/org/elasticsearch/index/mapper/LongFieldMapperTests.java
smalyshev added a commit to smalyshev/elasticsearch that referenced this pull request Aug 26, 2025
Until elastic#132893 is fixed this sounds like
the best way to handle it.

(cherry picked from commit 8f42478)

# Conflicts:
#	muted-tests.yml
#	server/src/test/java/org/elasticsearch/index/mapper/LongFieldMapperTests.java
@smalyshev
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
9.1
9.0
8.19
8.18

Questions ?

Please refer to the Backport tool documentation

smalyshev added a commit to smalyshev/elasticsearch that referenced this pull request Aug 26, 2025
Until elastic#132893 is fixed this sounds like
the best way to handle it.

(cherry picked from commit 8f42478)

# Conflicts:
#	muted-tests.yml
#	server/src/test/java/org/elasticsearch/index/mapper/LongFieldMapperTests.java
@smalyshev smalyshev deleted the fix-long-mapper-test branch August 26, 2025 19:25
elasticsearchmachine pushed a commit that referenced this pull request Aug 26, 2025
* Use safe double range to test long mapper (#133423)

Until #132893 is fixed this sounds like
the best way to handle it.

(cherry picked from commit 8f42478)

# Conflicts:
#	muted-tests.yml
#	server/src/test/java/org/elasticsearch/index/mapper/LongFieldMapperTests.java

* fix muted
elasticsearchmachine pushed a commit that referenced this pull request Aug 26, 2025
Until #132893 is fixed this sounds like
the best way to handle it.

(cherry picked from commit 8f42478)

# Conflicts:
#	muted-tests.yml
#	server/src/test/java/org/elasticsearch/index/mapper/LongFieldMapperTests.java
elasticsearchmachine pushed a commit that referenced this pull request Aug 26, 2025
Until #132893 is fixed this sounds like
the best way to handle it.

(cherry picked from commit 8f42478)

# Conflicts:
#	muted-tests.yml
#	server/src/test/java/org/elasticsearch/index/mapper/LongFieldMapperTests.java
elasticsearchmachine pushed a commit that referenced this pull request Aug 26, 2025
Until #132893 is fixed this sounds like
the best way to handle it.

(cherry picked from commit 8f42478)

# Conflicts:
#	muted-tests.yml
#	server/src/test/java/org/elasticsearch/index/mapper/LongFieldMapperTests.java
sarog pushed a commit to portsbuild/elasticsearch that referenced this pull request Sep 11, 2025
…33585)

Until elastic#132893 is fixed this sounds like
the best way to handle it.

(cherry picked from commit 8f42478)

# Conflicts:
#	muted-tests.yml
#	server/src/test/java/org/elasticsearch/index/mapper/LongFieldMapperTests.java
sarog pushed a commit to portsbuild/elasticsearch that referenced this pull request Sep 19, 2025
…33585)

Until elastic#132893 is fixed this sounds like
the best way to handle it.

(cherry picked from commit 8f42478)

# Conflicts:
#	muted-tests.yml
#	server/src/test/java/org/elasticsearch/index/mapper/LongFieldMapperTests.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch >test Issues or PRs that are addressing/adding tests v8.19.4 v9.0.7 v9.1.4 v9.2.0

Projects

None yet

3 participants