doris
doris copied to clipboard
[fix](restore) Analyze idx meta in Olap Table after restore commit
reproduce: backup and restore Table or restart fe, then insert
before:
desc tbl all
*************************** 26. row ***************************
IndexName: idx
IndexKeysType: AGG_KEYS
Field: mv_date_format(hours_add(happen_time, 1), '%Y-%m-%d %H:00:00')
Type: varchar(65533)
InternalType: varchar(65533)
Null: Yes
Key: true
Default: NULL
Extra:
Visible: true
DefineExpr:
WhereClause:
insert into wrong
[ANALYSIS_ERROR]TStatus: errCode = 2, detailMessage = column has no source field, column=mva_SUM__CASE WHEN 1 IS NULL THEN 0 ELSE 1 END
now
desc tbl all
*************************** 26. row ***************************
IndexName: idx
IndexKeysType: AGG_KEYS
Field: mv_date_format(hours_add(happen_time, 1), '%Y-%m-%d %H:00:00')
Type: varchar(65533)
InternalType: varchar(65533)
Null: Yes
Key: true
Default: NULL
Extra:
Visible: true
DefineExpr: date_format(hours_add(`happen_time`, 1), '%Y-%m-%d %H:00:00')
WhereClause: (`k1` > '2025-06-12 00:00:00')
insert into ok
Thank you for your contribution to Apache Doris. Don't know what should be done next? See How to process your PR.
Please clearly describe your PR:
- What problem was fixed (it's best to include specific error reporting information). How it was fixed.
- Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
- What features were added. Why was this function added?
- Which code was refactored and why was this part of the code refactored?
- Which functions were optimized and what is the difference before and after the optimization?
run buildall
PR approved by at least one committer and no changes requested.
PR approved by anyone and no changes requested.