Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 12F9C6C57 for ; Tue, 12 Jul 2011 06:18:39 +0000 (UTC) Received: (qmail 79732 invoked by uid 500); 12 Jul 2011 06:18:38 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 79399 invoked by uid 500); 12 Jul 2011 06:18:30 -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 79391 invoked by uid 500); 12 Jul 2011 06:18:28 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 79388 invoked by uid 99); 12 Jul 2011 06:18:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 06:18:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 06:18:23 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2C9EA4B7E8 for ; Tue, 12 Jul 2011 06:18:02 +0000 (UTC) Date: Tue, 12 Jul 2011 06:18:02 +0000 (UTC) From: "jiraposter@reviews.apache.org (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <591874793.5126.1310451482179.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1036664193.2123.1309905856762.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HIVE-2260) ExecDriver::addInputPaths should pass the table properties to the record writer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-2260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063740#comment-13063740 ] jiraposter@reviews.apache.org commented on HIVE-2260: ----------------------------------------------------- ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/1014/#review1036 ----------------------------------------------------------- Changes look good. Is it possible to add a testcase? If not, can you update the jira how it is tested? - Amareshwari On 2011-07-06 00:45:12, Jakob Homan wrote: bq. bq. ----------------------------------------------------------- bq. This is an automatically generated e-mail. To reply, visit: bq. https://reviews.apache.org/r/1014/ bq. ----------------------------------------------------------- bq. bq. (Updated 2011-07-06 00:45:12) bq. bq. bq. Review request for hive. bq. bq. bq. Summary bq. ------- bq. bq. Currently when ExecDriver encounters a non-existent partition, it creates an empty file so that the query will be valid (and return 0 results). However, when it does this and calls getHiveRecordWriter(), it creates a new instance of Properties, rather than providing the Properties associated with the table. bq. bq. This causes RecordWriters that pull information from the table through the Properties to fail (such as Haivvreo). The RecordWriter should be provided the table's Properties, as it is in all other cases where it's called. bq. bq. bq. This addresses bug HIVE-2260. bq. https://issues.apache.org/jira/browse/HIVE-2260 bq. bq. bq. Diffs bq. ----- bq. bq. ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java 4fba845 bq. bq. Diff: https://reviews.apache.org/r/1014/diff bq. bq. bq. Testing bq. ------- bq. bq. bq. Thanks, bq. bq. Jakob bq. bq. > ExecDriver::addInputPaths should pass the table properties to the record writer > ------------------------------------------------------------------------------- > > Key: HIVE-2260 > URL: https://issues.apache.org/jira/browse/HIVE-2260 > Project: Hive > Issue Type: Bug > Affects Versions: 0.7.0 > Reporter: Jakob Homan > Assignee: Jakob Homan > Attachments: HIVE-2260.patch > > > Currently when ExecDriver encounters a non-existent partition, it creates an empty file so that the query will be valid (and return 0 results). However, when it does this and calls {{getHiveRecordWriter()}}, it creates a new instance of Properties, rather than providing the Properties associated with the table. > This causes RecordWriters that pull information from the table through the Properties to fail (such as [Haivvreo|http://bit.ly/iwEQzJ]). The RecordWriter should be provided the table's Properties, as it is in all other cases where it's called. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira