Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KYLIN-2971 Fix the wrong "Realization Names" and missing "Cuboid Ids" in logQuery when hit cache #1215

Merged
merged 1 commit into from
May 22, 2020

Commits on May 21, 2020

  1. 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;
    zzcclp committed May 21, 2020
    Configuration menu
    Copy the full SHA
    2ef96ec View commit details
    Browse the repository at this point in the history