Comments (2)
Disable of pushdown help as well:
SELECT *
FROM
(
SELECT *
FROM
(
SELECT
'number1' AS id,
count(number) AS cnt
FROM numbers(5)
UNION ALL
SELECT
'number2',
count(number)
FROM numbers(4)
UNION ALL
SELECT
'number3',
count(number)
FROM numbers(3)
)
LIMIT 100000000
)
WHERE id = 'number1'
Query id: aded10d4-b2fa-49db-8d1e-905263ae4ad9
┌─id──────┬─cnt─┐
│ number1 │ 5 │
└─────────┴─────┘
from clickhouse.
I guess, it happens for source query in that way because this subquery return similar result.
Probably, it's better to compare that behavior with other DBMS
SELECT
'number2' AS id,
count(number)
FROM numbers(4)
WHERE id = 'number1'
Query id: 9afe695e-1a48-4efc-acd2-f07e035ef4ad
┌─id──────┬─count(number)─┐
│ number2 │ 0 │
└─────────┴───────────────┘
from clickhouse.
Related Issues (20)
- Wrong downcast from 'const DB::ColumnVector<UInt64>' to 'DB::ColumnLowCardinality' HOT 2
- Unexpected S3 reconciliation after a minor upgrade is causing high outgoing bandwidth usage, resource exhaustion HOT 2
- Optimize injective functions with several arguments inside of Uniq functions
- Apply LIMIT in GROUP BY
- S3Queue Log Status Ignores Failed Downstream Materialized Views
- min_bytes_to_use_direct_io > 0 can lead to "Cannot read all array values" or even segfault HOT 5
- A new function `sparseGrams`
- `clickhouse-local` should have `max_memory_usage` by default
- If the configuration file is not `.xml`, `.yml` or `.yaml`, autodetect its format.
- allow configuring ssh_key in declarative users and roles settings HOT 1
- ANN Indices are generated without error but not used. (Experimental Feature) HOT 2
- `primary_key_bytes_in_memory` value for `LowCardinality` columns are counted wrong HOT 2
- `02265_column_ttl` is flaky
- Support `format` argument to `input()` table function
- Missing way of dealing with out of capacity in Arrow and ArrowStream formats
- extractURLParameterNames does not correctly parse the final parameter name when there is no value
- Bad metadata file name for Iceberg Table in GCS Bucket
- clickhouse-client: parsing of parameters is slow
- Proposal: ${RELEASE}-head Docker tags for stable branches
- The settings `preferred_block_size_bytes` and `preferred_max_column_in_block_size_bytes` should have effect for `IRowInputFormat`
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 clickhouse.