Cherry-picked from #46537 Co-authored-by: 924060929 <lanhuajian@selectdb.com>
This commit is contained in:
committed by
GitHub
parent
4a08d81acf
commit
6a68b09100
@ -321,7 +321,7 @@ public class NereidsSqlCacheManager {
|
||||
// check table type and version
|
||||
for (Entry<FullTableName, TableVersion> scanTable : sqlCacheContext.getUsedTables().entrySet()) {
|
||||
TableVersion tableVersion = scanTable.getValue();
|
||||
if (tableVersion.type != TableType.OLAP) {
|
||||
if (tableVersion.type != TableType.OLAP && tableVersion.type != TableType.MATERIALIZED_VIEW) {
|
||||
return true;
|
||||
}
|
||||
TableIf tableIf = findTableIf(env, scanTable.getKey());
|
||||
|
||||
Reference in New Issue
Block a user