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)
- Performance falls apart when `or`ing two otherwise cheap filters
- HTTP endpoint fails to respond under unknown? conditions HOT 3
- Document `NaN` handling
- Proper function DML support HOT 3
- `pyo3_runtime.PanicException` breaks test suite reporting HOT 2
- Weirdly limited `analyze` `\expand`
- Link index not hit with `.link.id` filter
- Coalescing comparison operators
- Startup can hang when using `adjacent-to` and introspection races with database drops
- Configuration via connection options over SQL adapter
- Index not used for sort HOT 1
- could not serialize access due to read/write dependencies among transactions HOT 2
- Typo/awkward wording in migration documentation guide HOT 1
- Extension upgrades
- Query performance observability
- Implement `net` and `net::http` module per RFC 1026
- Flaky test `test_edgeql_ddl_migration_sdl_01`
- Support making SQL queries over edgedb protocol HOT 1
- Extension packaging HOT 2
- Move standard libraries into std module
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.