Comments (2)
This is an optimizer bug. The optimizer is removing all aggregates from the aggregation operator. The optimizer should realize that there are no aggregates and remove the aggregation operator, and everything below replacing it with a single dummy row.
> explain select 1 from (select 1 x) join (select 1 x, count(*)) using (x);
Query Plan
-----------------------------------------------------------------------------------------
- Output[_col0]
_col0 := expr_4
- Project => [expr_4:bigint]
expr_4 := 1
- InnerJoin[("expr_8" = "expr_9")] => [expr_8:bigint, expr_9:bigint]
- Project => [expr_8:bigint]
expr_8 := 0
- TableScan[dual:di, original constraint=true] => [dummy:varchar]
dummy := dual:dummy
- Project => [expr_9:bigint]
expr_9 := 0
- Aggregate => []
- TableScan[dual:di, original constraint=true] => [dummy_1:varchar]
dummy_1 := dual:dummy
from presto.
This will be easier to fix once support for VALUES is in (#1050)
from presto.
Related Issues (20)
- flaky TestHiveClientFileMetastore.testBucketSortedTables HOT 1
- Unexpected HTTP status code '500' when retrieving versions from 'https://static.azul.com/zulu/bin/'.
- Deprecated Hadoop properties seen in tests
- TaskManagerTest.aggregationSpill flaked with a velox runtime error HOT 4
- Decimal multiplication fails with DECIMAL scale must be in range [0, precision] HOT 10
- [Prestissimo] Very slow HashProbe for an expanding JOIN HOT 1
- Join Query results in large bytecode exceeding the limits imposed by JVM Error in logs
- Autoformat automatically and only automatically HOT 1
- Greatest/Least Function Check NaN on REAL data types? HOT 5
- TestBitmap.testRoundTrip flakes HOT 1
- Label and Notify job failed
- [Native] - Intermittent failure in a query containing empty windows frames
- Flaky Test: TestQueryTaskLimit.testQueuingWhenTaskLimitExceeds
- Flaky Tests in TestQuickStatsProvider
- CI Failing with docker-compose: command not found HOT 3
- Flaky Test Suite: spark-integration HOT 1
- Heuristic cte materialization strategy materializes semantically unwanted ctes
- Flakes caused by Exception when reading log file at org.apache.hudi.common.table.log.AbstractHoodieLogRecordReader
- TestMongoDistributedQueries.testSamplingJoinChain flakes HOT 2
- TestIcebergParquetMetadataCaching.testParquetMetadataCaching looks flaky 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 presto.