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

BoundFilter with strings #21

Open
monodop opened this issue Jun 2, 2020 · 0 comments · Fixed by #39
Open

BoundFilter with strings #21

monodop opened this issue Jun 2, 2020 · 0 comments · Fixed by #39

Comments

@monodop
Copy link

monodop commented Jun 2, 2020

I'm trying to create a new BoundFilter to compare strings. Because there's a struct constraint, it's not letting me pass the string type:

new BoundFilter<string>("srcip", lower: "127", lowerStrict: false, ordering: SortingOrder.alphanumeric)
// Error: CS0453 The type 'string' must be a non-nullable value type in order to use it as parameter 'T' in the generic type or method 'BoundFilter<T>'

Am I doing something wrong? According to the docs, it should be able to work: https://druid.apache.org/docs/latest/querying/filters.html#bound-filter

{
    "type": "bound",
    "dimension": "name",
    "lower": "foo",
    "upper": "hoo"
}
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 a pull request may close this issue.

1 participant