Skip to content

Enrichment functions Singly-bounded Date range search #21881

@nzxwang

Description

@nzxwang

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain: enrichment_tablesAnything related to the Vector's enrichment tablestype: featureA value-adding code addition that introduce new functionality.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions