Open RAbraham opened 3 years ago
Apparently this is because integer division in SQLite results in an integer number. To make example work we need to do it as follows:
%%logica Even
@Engine("sqlite");
Z(x) :- x in Range(20);
Even(x) :- Z(x), Z(x / 2.0);
We should either change the original (because this form works in BQ as well), or create a standalone SQLite tutorial.
changing the original works 👍 . fyi, this happens in postgres too. I'll leave this open if you like to use it as a bookmark but please feel free to close it.
Hi, If I run this, I don't get even numbers.
This is the generated SQL: