Comments (2)
We don't support doing unions of types with computed properties. Eventually we'll fix this, but it's tricky for a few reasons.
Try putting the shape on the outside of the union?
from edgedb.
In this case, my refactor was to remove the computed property and change the final select to total := sum((select patrons { fee := .event.fee }).fee)
. The tricky part here of course being that patrons.event.fee
won't work because the events ends up as an intermediate set that is implicitly distinct
. Which I believe was what I was trying to dodge back when I originally wrote this.
Thanks for the help. I could see supporting this being mildly useful but not nearly important enough if there's tricky stuff under the hood.
from edgedb.
Related Issues (20)
- Link properties require explicit type when being set to empty set HOT 1
- Specific ExclusivityViolationError
- Weird bug with properties used both in `with` and `if` HOT 6
- Cant find materialized set for a simple var in a `group` query HOT 1
- Error casting to regclass during schema discovery in PostgreSQL via EdgeDB connection HOT 3
- Enums that use numbers for variants are not normalized
- AssertionError when creating a scalar type with the same name as an existing object type in esdl HOT 1
- AuthenticationError: authentication failed
- ISE CycleError
- InvalidReferenceError: X does not resolve to any known path
- Include some variant of "Tests of patching old EdgeDB Versions" in the pre-release tests
- _propagate_if_expr_refs can be quadratic in a nasty way
- Generate webauthn authentication options without an email address
- Constraint: insert one object type or the other, but not both. HOT 2
- Schema change propagation between containers HOT 1
- unions missing attributes when type checking
- In insert rewrites, a single link is computed twice HOT 2
- Property or link with union type of type and a derived type produces error
- `distinct` does not retain order, while `assert_distinct` does
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 edgedb.