drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkhatua <...@git.apache.org>
Subject [GitHub] drill pull request #1077: DRILL-5068: Create sys.profiles and sys.profiles_j...
Date Thu, 04 Jan 2018 01:41:04 GMT
Github user kkhatua commented on a diff in the pull request:

    https://github.com/apache/drill/pull/1077#discussion_r159567509
  
    --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/store/sys/ProfileJsonIterator.java
---
    @@ -0,0 +1,188 @@
    +/**
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + * http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package org.apache.drill.exec.store.sys;
    +
    +import com.google.common.base.Function;
    +import com.google.common.collect.Iterators;
    +
    +import org.apache.drill.exec.ExecConstants;
    +import org.apache.drill.exec.ops.FragmentContext;
    +import org.apache.drill.exec.ops.QueryContext;
    +import org.apache.drill.exec.proto.UserBitShared;
    +import org.apache.drill.exec.proto.UserBitShared.QueryProfile;
    +import org.apache.drill.exec.serialization.InstanceSerializer;
    +import org.apache.drill.exec.server.QueryProfileStoreContext;
    +import org.apache.drill.exec.server.options.QueryOptionManager;
    +import org.apache.drill.exec.util.ImpersonationUtil;
    +
    +import javax.annotation.Nullable;
    +import java.io.IOException;
    +import java.util.Iterator;
    +import java.util.LinkedList;
    +import java.util.List;
    +import java.util.Map;
    +import java.util.Map.Entry;
    +
    +/**
    + * DRILL-5068: Add a new system table for completed profiles (JSON)
    + */
    +public class ProfileJsonIterator implements Iterator<Object> {
    --- End diff --
    
    Reworked the code and tested. +1


---

Mime
View raw message