Skip to content

[Visibility][Elasticsearch] Change datetime format to always include nanos component in pagination filter (#11564) - #11619

Merged
stpierre merged 1 commit into
cloud/v1.32.0-161from
rodrigozhou/cp-11564
Aug 19, 2026
Merged

stpierre merged 1 commit into
cloud/v1.32.0-161from
rodrigozhou/cp-11564

Conversation

@rodrigozhou

Copy link
Copy Markdown
Contributor

What changed?

Cherry pick #11564 to cloud/v1.32.0-161 branch.

Why?

^

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

…nanos component (#11564)

## What changed?
Change datetime format to always include nanos component in
Elasticsearch Visibility.
Also added Visibility integration tests with Elasticsearch.

## Why?
With Elasticsearch, comparing dates without explicitly specifying all
components can lead to unexpected results.
Eg: `StartTime = '2023-04-05T06:07:08Z'` would match a workflow with
`StartTime = '2023-04-05T06:07:08.100000000Z'`.
This behavior is unexpected and can mess up with pagination.
This PR fixes it so missing nanos components is always specified (in the
example, it would be filled with 0s).

## How did you test it?
- [x] built
- [x] run locally and tested manually
- [ ] covered by existing tests
- [x] added new unit test(s)
- [x] added new functional test(s)

## Potential risks
@rodrigozhou
rodrigozhou requested review from a team August 18, 2026 19:58
@rodrigozhou
rodrigozhou requested review from a team as code owners August 18, 2026 19:58
@rodrigozhou rodrigozhou added the reliability-2026 Reliability related changes label Aug 18, 2026
@stpierre
stpierre enabled auto-merge (squash) August 19, 2026 12:23
@stpierre
stpierre merged commit 679a194 into cloud/v1.32.0-161 Aug 19, 2026
170 of 175 checks passed
@stpierre
stpierre deleted the rodrigozhou/cp-11564 branch August 19, 2026 12:23
@rodrigozhou rodrigozhou changed the title [Visibility][Elasticsearch] Change datetime format to always include nanos component (#11564) [Visibility][Elasticsearch] Change datetime format to always include nanos component in pagination filter (#11564) Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reliability-2026 Reliability related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants