> On Mon, 12 Nov 2018 at 13:55, Dmitry Dolgov <9erthali...@gmail.com> wrote: > > > On Mon, 12 Nov 2018 at 13:29, Sergei Kornilov <s...@zsrv.org> wrote: > > > > I found reproducible crash due assert failure: FailedAssertion("!(numCols > > > 0)", File: "pathnode.c", Line: 2795) > > > create table tablename (i int primary key); > > > select distinct i from tablename where i = 1; > > Query is obviously strange, but this is bug. > > Wow, thanks a lot! I can reproduce it too, will fix it.
Yep, we had to check number of distinct columns too, here is the fixed patch (with a bit more verbose commit message).
0001-Index-skip-scan-with-fallback-v3.patch
Description: Binary data