Uh oh!
There was an error while loading. Please reload this page.
branch4.0: [feature](variable) enables views, materialized views, generated columns, and alias functions to persist session variables #58031 - #58821
Conversation
feiniaofeiafei
commented
Dec 8, 2025
run buildall |
1 similar comment
feiniaofeiafei
commented
Dec 8, 2025
run buildall |
doris-robot
commented
Dec 8, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Dec 8, 2025
FE UT Coverage ReportIncrement line coverage |
feiniaofeiafei
commented
Dec 9, 2025
run nonConcurrent |
1 similar comment
feiniaofeiafei
commented
Dec 9, 2025
run nonConcurrent |
fb329dc to
0aea3c2Comparefeiniaofeiafei
commented
Dec 11, 2025
run buildall |
hello-stephen
commented
Dec 11, 2025
FE UT Coverage ReportIncrement line coverage |
hello-stephen
commented
Dec 11, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
feiniaofeiafei
commented
Dec 11, 2025
run external |
feiniaofeiafei
commented
Dec 11, 2025
run cloud_p0 |
…mns, and alias functions to persist session variables (apache#58031) Problem Summary: When creating views, generated columns, materialized views, or alias functions, session variables that affect query results (e.g., `enable_decimal256`) are not persisted. This causes inconsistent query results when session variables differ between creation and query time. This PR persists session variables marked with `affectQueryResult()` annotation for: - Views - Generated Columns - Materialized Views - Alias Functions When querying these objects, the system automatically uses the persisted session variables from creation time, ensuring consistent results. - Added `sessionVariables` field to `View`, `Column`, `MTMV`, and `AliasFunction` classes - Created `AutoCloseSessionVariable` utility to temporarily apply persisted variables during query processing - Modified view/column/MV/function parsing logic to use persisted session variables - Added `SessionVarGuardExpr` to protect expressions that depend on session variables --------- Co-authored-by: jacktengg <tengjianping@selectdb.com>
0aea3c2 to
5d22bc1Comparefeiniaofeiafei
commented
Dec 11, 2025
run buildall |
hello-stephen
commented
Dec 11, 2025
FE UT Coverage ReportIncrement line coverage |
hello-stephen
commented
Dec 11, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
feiniaofeiafei
commented
Dec 12, 2025
run cloud_p0 |
feiniaofeiafei
commented
Dec 12, 2025
run external |
Uh oh!
There was an error while loading. Please reload this page.
picked from #58031