Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C036C200BF8 for ; Fri, 13 Jan 2017 15:22:16 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BEC18160B3F; Fri, 13 Jan 2017 14:22:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1539D160B32 for ; Fri, 13 Jan 2017 15:22:15 +0100 (CET) Received: (qmail 63047 invoked by uid 500); 13 Jan 2017 14:22:15 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 63033 invoked by uid 99); 13 Jan 2017 14:22:14 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2017 14:22:14 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 663372F97E6; Fri, 13 Jan 2017 14:22:14 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3128423707156044069==" MIME-Version: 1.0 Subject: Re: Review Request 55498: HIVE-15538: Test HIVE-13884 with more complex query predicates From: Barna Zsombor Klara To: Chaoyu Tang Cc: Barna Zsombor Klara , hive , Marta Kuczora Date: Fri, 13 Jan 2017 14:22:14 -0000 Message-ID: <20170113142214.1677.48481@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Barna Zsombor Klara X-ReviewGroup: hive X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/55498/ X-Sender: Barna Zsombor Klara References: <20170113115849.25657.50589@reviews.apache.org> In-Reply-To: <20170113115849.25657.50589@reviews.apache.org> X-ReviewBoard-Diff-For: data/files/max_partition_test_input.txt X-ReviewBoard-Diff-For: itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/TestMetaStoreLimitPartitionRequest.java Reply-To: Barna Zsombor Klara X-ReviewRequest-Repository: hive-git archived-at: Fri, 13 Jan 2017 14:22:16 -0000 --===============3128423707156044069== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/55498/#review161524 ----------------------------------------------------------- Thanks for the patch Marta, +1. And thank you for taking the time to write a unit test for this instead of a qtest. If you can, please take a look at my comments below, but in the current state it is already fine. itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/TestMetaStoreLimitPartitionRequest.java (line 267) Not sure if it can be done easily but could we somehow check the returned values as well? Right now we only know that the query returned the correct nr of records, whether those are the expected values is unclear. itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/TestMetaStoreLimitPartitionRequest.java (line 288) Can we make the original exception message in HiveMetaStore into a public string pattern and use it here to construct the error message? This way if someone edits the message the test should keep working. - Barna Zsombor Klara On Jan. 13, 2017, 11:58 a.m., Marta Kuczora wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/55498/ > ----------------------------------------------------------- > > (Updated Jan. 13, 2017, 11:58 a.m.) > > > Review request for hive and Chaoyu Tang. > > > Bugs: HIVE-15538 > https://issues.apache.org/jira/browse/HIVE-15538 > > > Repository: hive-git > > > Description > ------- > > Added unit test for testing HIVE-13884 with more complex queries and hive.metastore.limit.partition.request enabled. > It covers cases when the query predicates can be pushed down and the number of partitions can be retrieved via directSQL. > It also covers cases when the number of partitions cannot be retrieved via directSQL, so it falls back to ORM. > > > Diffs > ----- > > data/files/max_partition_test_input.txt PRE-CREATION > itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/TestMetaStoreLimitPartitionRequest.java PRE-CREATION > > Diff: https://reviews.apache.org/r/55498/diff/ > > > Testing > ------- > > The patch contains only a new unit test. Ran the test multiple times successfully. > > > Thanks, > > Marta Kuczora > > --===============3128423707156044069==--