Comments (2)
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.
from logica.
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.
from logica.
Related Issues (20)
- how to express array_agg(x order by t)? HOT 2
- How to do window queries in Logica? HOT 2
- Aggregating an Ordered Set in BigQuery βΒ ARRAY_AGG(DISTINCT ... ORDER BY ...) is not support! π HOT 2
- PyCharm syntax highlighting HOT 1
- Python eDSL HOT 1
- Add type inference
- Add checks of predicate arguments
- Check precedence of && and ||
- Engineers example broken under sqlite HOT 1
- CamelCase weirdness HOT 6
- Databricks SQL support HOT 10
- Occasional race condition during compilation HOT 9
- Too many references to "advised": max 65535 HOT 3
- Graph did not work HOT 1
- Re-digest predicates from DB HOT 4
- Factor Out the Duplicate Lines
- Any documentation on the parity between sqlite and psql HOT 1
- Function to just export the SQL HOT 1
- Any known Java ORM for Logica HOT 1
- psql test cases HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logica.