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

Operand data type bit is invalid for max operator #472

Open
mariojsnunes opened this issue Jan 24, 2023 · 5 comments
Open

Operand data type bit is invalid for max operator #472

mariojsnunes opened this issue Jan 24, 2023 · 5 comments

Comments

@mariojsnunes
Copy link

Getting "Operand data type bit is invalid for max operator" error when using this on a query:
x.With<BooleanFieldIndex>(field => field.ContentField == nameof(BaseContentPart.Property)).OrderByDescending(x => x.Boolean)
Started working again after I commented it.

Is there any change in the past 2-3 months could cause this? I updated OC to the latest preview today.

@sebastienros
Copy link
Owner

Yes, we are using GROUP BY now to eliminate duplicate documents. I will add a similar unit test.

@mariojsnunes
Copy link
Author

Hi there. Is there any plans to support ordering boolean fields again?

@sebastienros
Copy link
Owner

Can you give it a try and attempt to fix it?

@mariojsnunes
Copy link
Author

@sebastienros Sure. I've made a PR #503 to try to replicate the issue. Can you allow for tests to run?

@jtkech
Copy link
Collaborator

jtkech commented Oct 16, 2023

Done

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

No branches or pull requests

3 participants