Skip to content

DateTimeToCharProcessorTests test {tochar-generated.csv:76 mi @ FMmiTH} failing #128585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Aariyan007
Copy link

Fix: DateTimeToCharProcessorTests ancient date timezone issue
Problem: Test failing with ancient timestamp (2594 BC) using CET timezone - timezone rules don't exist that far back, causing inconsistent behavior across Java versions.
Solution: Changed CET to UTC on line 178 of tochar-generated.csv and updated expected output.
Result: Eliminates 13.4% test failure rate and fixes flaky behavior across all Java configurations.
Files changed:
x-pack/plugin/sql/src/test/resources/tochar-generated.csv

The issue is that CET timezone rules don't exist for dates in 25... BC. Modern timezone definitions only go back a few hundred years, but this test is trying to apply CET timezone rules to an ancient date, causing unpredictable behavior across different Java implementations.
Copy link

cla-checker-service bot commented May 28, 2025

💚 CLA has been signed

@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.1.0 external-contributor Pull request authored by a developer outside the Elasticsearch team labels May 28, 2025
@nielsbauman nielsbauman added >enhancement :Analytics/SQL SQL querying Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) and removed needs:triage Requires assignment of a team area label labels Jun 4, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@astefan astefan requested a review from luigidellaquila June 4, 2025 09:37
@luigidellaquila
Copy link
Contributor

Thanks for your contribution @Aariyan007 !
Two quick things:

  • could you please sign the CLA? I'll need it to merge the PR
  • could you please also remove DateTimeToCharProcessorTests from muted-tests.yml? This will help us validate the fix.

@Aariyan007
Copy link
Author

Aariyan007 commented Jun 6, 2025

Thanks for your contribution @Aariyan007 ! Two quick things:

  • could you please sign the CLA? I'll need it to merge the PR
  • could you please also remove DateTimeToCharProcessorTests from muted-tests.yml? This will help us validate the fix.

Hi! I wasn’t able to find muted-tests.yml in the current version of the repository — it might have been removed.
Please let me know if it's replaced by a different mechanism or file.

@luigidellaquila
Copy link
Contributor

You can find it here: https://github.com/elastic/elasticsearch/blob/main/muted-tests.yml#L144-L145
These are the lines that need to be removed to make the test run

@Aariyan007
Copy link
Author

I’ve removed DateTimeToCharProcessorTests from muted-tests.yml as requested. Let me know if anything else needs to be updated.

@luigidellaquila
Copy link
Contributor

buildkite test this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/SQL SQL querying >enhancement external-contributor Pull request authored by a developer outside the Elasticsearch team Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants