Comments (2)
SELECT DISTINCT * FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col0, cor0.col2
InferenceFailure { expected_types: [Integer, Integer, Integer], inferred_types: [Int64, Int64, Int64, Int64] }
Similarly, this query repeated cor0.col0
twice in the output because it is used twice in the GROUP BY, but *
should only pick things from before group by / aggregate.
from materialize.
These rules are ridiculous:
postgres=# select * from foo;
a | b
---+---
1 | 7
(1 row)
postgres=# select * from foo group by a;
ERROR: column "foo.b" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: select * from foo group by a;
^
postgres=# select * from foo group by a,b;
a | b
---+---
1 | 7
(1 row)
postgres=# select * from foo group by a,a,b;
a | b
---+---
1 | 7
(1 row)
postgres=# select * from foo group by a,a+1,b;
a | b
---+---
1 | 7
(1 row)
postgres=# select a+1 from foo group by a,a+1;
?column?
----------
2
(1 row)
postgres=# select a+2 from foo group by a,a+1;
?column?
----------
3
(1 row)
postgres=# select a+2 from foo group by a+1;
ERROR: column "foo.a" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: select a+2 from foo group by a+1;
^
postgres=# select (a+1)+1 from foo group by a+1;
?column?
----------
3
(1 row)
from materialize.
Related Issues (20)
- pg-cdc source claims to be in starting, but all subsources actually make progress HOT 1
- Freshness plans: catalog updates
- [persist] Bound the resources that we'll use in maintenance
- Cannot select more than one batch using pg-query-stream HOT 3
- ci flake: kafka-exactly-once-sink.td:304:1: error: record 0 did not match HOT 5
- Allow superusers to modify privileges on system objects HOT 1
- Configure replica sizes through flags HOT 2
- CaseWhen limit overflows stack (again) HOT 2
- Postgres sources stuck in status STARTING even though they are running. HOT 1
- catalog: Add serde stability tests
- balancerd: Handle canceling connections HOT 12
- catalog: Update debug docs to use correct catalog store
- Logging and panics can interleave on same line in output HOT 8
- sentry: panic: data shard registered before forget HOT 3
- rename `statement_kind` column in `mz_internal.mz_activity_log` to `statement_type` HOT 3
- storage: track individual dataflow executions from the controller HOT 1
- [Epic] Fivetran destination, v1
- mz_internal.mz_aws_connections is missing a row after a Backup+Restore or upgrade HOT 6
- [PS] Unify the handling of default env variables between mzcompose and cloudtest
- [PS] Replace `with c.override` with `c.override`
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 materialize.