sebastienros / yessql

A .NET document database working on any RDBMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Operand data type bit is invalid for max operator

mariojsnunes opened this issue · comments

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.

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

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

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

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