Skip to content
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

Enrichment functions Singly-bounded Date range search #21881

Open
nzxwang opened this issue Nov 25, 2024 · 0 comments
Open

Enrichment functions Singly-bounded Date range search #21881

nzxwang opened this issue Nov 25, 2024 · 0 comments
Labels
type: feature A value-adding code addition that introduce new functionality.

Comments

@nzxwang
Copy link

nzxwang commented Nov 25, 2024

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Use Cases

Returns the rows that greater than or equal to the from date if the to date is not provided; or less than or equal to the to date if the from date is not provided.

Attempted Solutions

find_enrichment_table_records!("test",
  {
	"surname": "Smith",
	"date_of_birth": {
	  "from": t'1985-01-01T00:00:00Z'
	}
  })

Proposal

I'm currently wrapping it with:

If the from date is not provided, default it to the earliest timestamp. If the to date is not provided, default it to the latest timestamp.

If that is not rust-idiomatic, any other solution works.

References

No response

Version

vector 0.42.0 (x86_64-apple-darwin 3d16e34 2024-10-21 14:10:14.375255220)

@nzxwang nzxwang added the type: feature A value-adding code addition that introduce new functionality. label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

No branches or pull requests

1 participant