v.21.7Improvement
Use Global Settings for VIEW Queries to Avoid Errors
Use global settings for query toVIEW. Fixed the behavior when queries toVIEWuse local settings, that leads to errors if setting onCREATE VIEWandSELECTwere different. As for now,VIEWwon't use these modified settings, but you can still pass additional settings inSETTINGSsection ofCREATE VIEWquery. Close #20551. #24095 (Vladimir).
Why it matters
This feature fixes issues caused by local settings applied duringSELECT queries on VIEW objects, which previously led to errors if settings differed between CREATE VIEW and SELECT executions. It ensures stability and predictable behavior by always using global settings for queries to VIEW.How to use it
Users do not need to change their queries, asVIEW now automatically uses global settings during execution. Additional settings can still be specified explicitly within the SETTINGS clause of the CREATE VIEW statement if needed.