-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KYLIN-2971 Fix the wrong "Realization Names" and missing "Cuboid Ids"…
… in logQuery when hit cache Problems: 1. The value of "Realization Names" in logQuery is wrong when query two different sqls within the same thread and second sql hits cache: Example: 1). query Q1 hit project P1 and cube C1; 2). query Q2 hit project P2 and cube C2 in the same thread with Q1; 3). Q1 comes again and hits cache, it will show project P1 and cube C2. However, it should be cube C1. 2. Missing "Cuboid Ids" in logQuery when hit cache in a new thread which does not have OLAPContext; Solutions: 1. Call 'OLAPContext.clearThreadLocalContexts()' before a query starts; 2. Get "Cuboid Ids" from SQLResponse when "OLAPContext.getThreadLocalContexts()" is null;
- Loading branch information
Showing
1 changed file
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters