You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: {_partition_id} not resolving in S3-engine Materialized Views
Test Case:
CREATE MATERIALIZED VIEW test.s3_partition_issue
(
`account_id` String,
`source_id` String,
`col1` UInt32
)
ENGINE = S3(
'https://s3.region.amazonaws.com/bucket/test/{_partition_id}/data.json',
'AWS_ACCESS_KEY_ID',
'AWS_SECRET_ACCESS_KEY',
'JSONEachRow'
)
PARTITION BY concat(account_id, '/', source_id)
ASSELECT'test_account'AS account_id,
'test_source'AS source_id,
1AS col1 from events
works when using regular insert
### Which ClickHouse versions are affected?
all versions tested on24.11and25.5### How to reproduce
create an s3 engine table with partition and attempt insertion via a trigger. Also tested using the Materialized View TO syntax version
### Expected behavior
resolve {_partition_id} as expected in s3
### Error message and/or stacktrace
_No response_
### Additional context
_No response_