Comments (1)
Everything is expected here.
You are passing value
instead of -state
You can use arrayReduce( 'sumMapState',...
to form a State
ALTER TABLE people__daily_records
UPDATE
time_spent = joinGet(temp_join__time_spent_per_person, 'total_minutes', person_id, date),
time_spent_per_service = arrayReduce( 'sumMapState', [(joinGet(temp_join__time_spent_per_person, 'map_services_minutes', person_id, date) as xxx).1], [xxx.2])
WHERE TRUE
https://clickhouse.com/docs/en/sql-reference/functions/other-functions#initializeaggregation
from clickhouse.
Related Issues (20)
- Virtual column `_granule` for MergeTree HOT 1
- How can a single-node user configured with user.xml be upgraded to a cluster user
- S3Queue & schema evolution problems
- Help: ODBC not able to connect
- There is no log rotation for stderr.log HOT 1
- MySQL Decimal Data Type Correctly Converted to String in ClickHouse MySQL Engine
- Tables getting starved a lot in replication_queue HOT 1
- rows_processed is 0 for all files in s3queue_log although many rows were processed
- Kafka table engine with protobuf serialization cannot handle DateTime(9)
- Order by and limit on grouping sets HOT 2
- Why results are empty when data is present ? HOT 1
- Any other access control settings can't be specified with `grants`: while parsing user 'admin' in users configuration file
- Server crashed after `Logical error: 'Arguments of 'minus' have incorrect data types`
- Server crashed after `Logical error: 'Arguments of 'bitXor' have incorrect data types`
- Server crashed after `Logical error: 'Unexpected return type from if. Expected Int64. Got Int128. `
- 24.7 broke some queries using `tuple()` and NULLs HOT 2
- Incorrect query results after TTL data rollup
- `00938_fix_rwlock_segfault_long` test is flaky
- Data corruption on column after failed ALTER MODIFY statement
- KQL cannot query maps
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.