[ https://issues.apache.org/jira/browse/DRILL-6331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16452707#comment-16452707 ]
ASF GitHub Bot commented on DRILL-6331: --------------------------------------- Github user parthchandra commented on a diff in the pull request: https://github.com/apache/drill/pull/1214#discussion_r183909850 --- Diff: common/src/main/java/org/apache/drill/common/Stopwatch.java --- @@ -0,0 +1,186 @@ +/* + * 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.common; + +import com.google.common.base.Ticker; + +import java.util.concurrent.TimeUnit; + +/** + * Helper that creates stopwatch based if debug level is enabled. --- End diff -- Do we really need this? In general we have (or should have) used Stopwatch to track metrics and or performance bottlenecks in production. In neither case do we want to enable debug. Also, for debugging performance issues (I see that the places you've changed to use this Stopwatch are places where we encountered performance issues), would it be better to use ``` Stopwatch timer; if(logger.isDebugEnabled()){ timer = Stopwatch.createStarted(); } ``` More verbose, but guaranteed to be optimized away by the JVM. Not insisting that we change this, BTW. > Parquet filter pushdown does not support the native hive reader > --------------------------------------------------------------- > > Key: DRILL-6331 > URL: https://issues.apache.org/jira/browse/DRILL-6331 > Project: Apache Drill > Issue Type: Improvement > Components: Storage - Hive > Affects Versions: 1.13.0 > Reporter: Arina Ielchiieva > Assignee: Arina Ielchiieva > Priority: Major > Fix For: 1.14.0 > > > Initially HiveDrillNativeParquetGroupScan was based mainly on HiveScan, the > core difference between them was > that HiveDrillNativeParquetScanBatchCreator was creating ParquetRecordReader > instead of HiveReader. > This allowed to read Hive parquet files using Drill native parquet reader but > did not expose Hive data to Drill optimizations. > For example, filter push down, limit push down, count to direct scan > optimizations. > Hive code had to be refactored to use the same interfaces as > ParquestGroupScan in order to be exposed to such optimizations. -- This message was sent by Atlassian JIRA (v7.6.3#76005)