Skip to content

Conversation

@rdblue
Copy link
Contributor

@rdblue rdblue commented Aug 5, 2025

This adds factory methods to Expressions that create timestamp literals. This enables creating predicates with the right timestamp precision:

Expressions.equals("ts", nanos(1754434662952357612L));
Expressions.in("ts", nanos(1754434662952357612L), micros(1754434662952357L));

This addresses the concerns from #11775.

@github-actions github-actions bot added the API label Aug 5, 2025
}

@Test
public void testMixedTimestampLiterals() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This tests the IN case mentioned in the original thread.

Copy link
Contributor

@singhpk234 singhpk234 left a comment

Choose a reason for hiding this comment

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

LGTM too !

@rdblue rdblue merged commit 9ac8b2b into apache:main Aug 6, 2025
43 checks passed
@rdblue rdblue deleted the timestamp-add-expression-helpers branch August 6, 2025 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants