Hi, Petr,
The behavior of FastBit in this case is not graceful, however, the
query is not well formed. Let me explain.
Your query can be rewritten as
Select sum(e0id1) as bytes, count(*) from testdata where bytes = 40
The basic problem is that bytes is the result of the query, but it is
also used as part of the where clause. There is no way to evaluate
the where clause because it depends on the result of the query. Oh,
well, hope it makes sense.
Will see what I can make the error message more obvious..
John
On 10/5/12 1:10 AM, Petr Velan wrote:
> Hi John,
>
> I decided to take advantage of named columns in select clause. I tried to use
>
> table->select("sum(e0id1) as bytes, count(*) as fl", "bytes = 40");
>
> but the result is segmentation fault. Is it possible to use named
> columns in the where clause?
> Please find the test data and short program attached.
>
> Best regards,
> Petr
>
>
>
> _______________________________________________
> FastBit-users mailing list
> [email protected]
> https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
>
_______________________________________________
FastBit-users mailing list
[email protected]
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users