[
https://issues.apache.org/jira/browse/KYLIN-6070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17930261#comment-17930261
]
Guoliang Sun commented on KYLIN-6070:
-------------------------------------
h3. Dev Design
1. During `replaceDbNameAndAddCatalog` for internal tables, add the used
internal table information to `QueryContext.current()` for subsequent
processing.
2. Modify the original snapshot count logic to differentiate based on
`indexType` in the `realization_metrics` list:
- For `indexType = Internal Table`, increment counts for internal tables in
the `snapshots` list.
- For `indexType = Table Snapshot`, increment counts for snapshots in the
`snapshots` list.
3. Add a method in `QueryHistoryMetaUpdateScheduler` to update internal table
usage counts alongside the existing usage count updates.
> Internal Table Usage Count Not Properly Tracked After Query on Management Page
> ------------------------------------------------------------------------------
>
> Key: KYLIN-6070
> URL: https://issues.apache.org/jira/browse/KYLIN-6070
> Project: Kylin
> Issue Type: Bug
> Affects Versions: 5.0.0
> Reporter: Guoliang Sun
> Assignee: Guoliang Sun
> Priority: Major
> Fix For: 5.0.2
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)