Skip to content

RDBC-1041 Add DocumentQuery date-component filter methods#281

Draft
redknightlois wants to merge 19 commits intoravendb:v7.1from
redknightlois:RDBC-1041
Draft

RDBC-1041 Add DocumentQuery date-component filter methods#281
redknightlois wants to merge 19 commits intoravendb:v7.1from
redknightlois:RDBC-1041

Conversation

@redknightlois
Copy link
Member

Issue link

https://issues.hibernatingrhinos.com/issue/RDBC-1041

Additional description

RDBC-1041 – Adds date-component filter methods to DocumentQuery: where_year, where_month, where_day_of_month, where_hour, where_minute, where_second, and where_ticks. Each method supports equality and all six comparison variants (greater than, less than, between, etc.). The methods use RQL dot-notation (e.g. date.Year = $p0) matching the C# LINQ provider output. where_ticks accepts a raw .NET tick count for high-precision time filtering.

Type of change

  • Bug fix
  • Regression bug fix
  • Optimization
  • New feature

How risky is the change?

  • Low
  • Moderate
  • High
  • Not relevant

Backward compatibility

  • Non breaking change
  • Ensured. Please explain how has it been implemented?
  • Breaking change
  • Not relevant

Is it platform specific issue?

  • Yes. Please list the affected platforms.
  • No

Documentation update

  • This change requires a documentation update. Please mark the issue on YouTrack using Documentation Required tag.
  • No documentation update is needed

Testing by Contributor

  • Tests have been added that prove the fix is effective or that the feature works
  • Internal classes added to the test class (e.g. entity or index definition classes) have the lowest possible access modifier (preferable private)
  • It has been verified by manual testing
  • Existing tests verify the correct behavior

Testing by RavenDB QA team

  • This change requires a special QA testing due to possible performance or resources usage implications (CPU, memory, IO). Please mark the issue on YouTrack using QA Required tag.
  • No special testing by RavenDB QA team is needed

Is there any existing behavior change of other features due to this change?

  • Yes. Please list the affected features/subsystems and provide appropriate explanation
  • No

UI work

  • It requires further work in the Studio. Please mark the issue on YouTrack using Studio Required tag.
  • No UI work is needed

@redknightlois redknightlois force-pushed the RDBC-1041 branch 5 times, most recently from ee9a45d to a9ec852 Compare March 2, 2026 22:33
@redknightlois redknightlois marked this pull request as draft March 2, 2026 23:11
poissoncorp and others added 12 commits March 4, 2026 11:44
RDBC-1017 Remote attachments, JSON Schema Validation & 7.2 Changes
Adds where_year, where_month, where_day_of_month, where_hour, where_minute,
where_second, and where_ticks to DocumentQuery, each with equality and six
comparison variants (greater_than, greater_than_or_equal, less_than,
less_than_or_equal, between).

Methods use RQL dot-notation (e.g. date.Year = \$p0) matching the property-access
form generated by the C# LINQ provider.  where_ticks accepts a raw .NET tick count
(100-nanosecond intervals since 0001-01-01).

WhereToken.add_alias correctly prefixes compound paths so aliased queries produce
e.g. e.date.Year rather than date.Year.

C# reference: FastTests.Client.QueryDateTime.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants