Comments (1)
Hi Jinshui,
I rewrite your query as below:
schema s1(id:int, year_born:int);
schema s2(id:int);
table person(s1);
table writer(s2);
query q1
`select count(*) from person p where exists (select * from writer w where w.id = p.id and p.year_born = 1935)`;
query q2 `select count(*) from (select distinct p.id from person p, writer w where p.id=w.id and p.year_born=1935) a`;
verify q1 q2;
It returns a counterexample. Currently, we are forcing that user put an alias for each table.
from cosette.
Related Issues (20)
- Broken FrontendDockerfile HOT 1
- Cosette freezes (different from #63) HOT 1
- Feature request: Avoid useless repetition in counter examples
- Feature request: result of counter examples
- Equivalent queries with conditions on a date column generate invalid Coq code
- Equivalence check for DISTINCT UNION ALL of disjoint sets yields invalid Coq code
- Invalid Cosette program yields invalid Coq code
- Basic `select distinct` program - Coq and Rosette executions don't agree
- Simple WHERE test not possible HOT 1
- Can not successfully run Cosette tests HOT 3
- Test on demo website runs into out of time HOT 2
- Strings with dots result in "Invalid generated Coq file"
- COUNT usage leads to error: Invalid generated Coq code HOT 1
- EXISTS with subquery runs into out of time HOT 1
- Multiple INNER JOIN clauses: runs into out of time
- count(*) should be different from count(column)
- Update docs to include how to set up Cosette locally HOT 1
- What's the status of the project? HOT 2
- Integrity Constraint Support HOT 1
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 cosette.