Skip to content

Commit

Permalink
[improvement](statistics)Set enableQueryCache to false for statistics…
Browse files Browse the repository at this point in the history
… queries. (apache#45474)

### What problem does this PR solve?

Set enableQueryCache to false for statistics queries.

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

### Release note

None
  • Loading branch information
Jibing-Li authored Dec 16, 2024
1 parent 088d2fe commit 86c3c76
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ public static AutoCloseConnectContext buildConnectContext(boolean useFileCacheFo
sessionVariable.enablePushDownStringMinMax = true;
sessionVariable.enableUniqueKeyPartialUpdate = false;
sessionVariable.enableMaterializedViewRewrite = false;
sessionVariable.enableQueryCache = false;
sessionVariable.enableSqlCache = false;
connectContext.setEnv(Env.getCurrentEnv());
connectContext.setDatabase(FeConstants.INTERNAL_DB_NAME);
connectContext.setQualifiedUser(UserIdentity.ADMIN.getQualifiedUser());
Expand Down

0 comments on commit 86c3c76

Please sign in to comment.