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 B53BA200B64 for ; Tue, 19 Jul 2016 02:44:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B3E0D160A65; Tue, 19 Jul 2016 00:44:27 +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 06FD9160A5D for ; Tue, 19 Jul 2016 02:44:26 +0200 (CEST) Received: (qmail 13339 invoked by uid 500); 19 Jul 2016 00:44:21 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 13115 invoked by uid 99); 19 Jul 2016 00:44:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2016 00:44:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E20842C0377 for ; Tue, 19 Jul 2016 00:44:20 +0000 (UTC) Date: Tue, 19 Jul 2016 00:44:20 +0000 (UTC) From: "Tao Li (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HIVE-14169) Honor --incremental flag only if TableOutputFormat is used MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 19 Jul 2016 00:44:27 -0000 [ https://issues.apache.org/jira/browse/HIVE-14169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15383363#comment-15383363 ] Tao Li edited comment on HIVE-14169 at 7/19/16 12:44 AM: --------------------------------------------------------- Hi Sahil, 2 quick questions: 1. I think the default setting for \-\-incremental is still false with your change, right? If that's true, we still go into the code path of buffered rows if the {{--incremental}} is not specified, which I think is a typical use case. 2. Looks like we always do the incremental rows regardless of the setting for {{--incremental}} for non-table formats. What if the user specifies a non-table format and also {{--incremental=false}}? Do we want to do buffered rows in this case? Thanks. was (Author: taoli-hwx): Hi Sahil, 2 quick questions: 1. I think the default setting for \--incremental is still false with your change, right? If that's true, we still go into the code path of buffered rows if the {{--incremental}} is not specified, which I think is a typical use case. 2. Looks like we always do the incremental rows regardless of the setting for {{--incremental}} for non-table formats. What if the user specifies a non-table format and also {{--incremental=false}}? Do we want to do buffered rows in this case? Thanks. > Honor --incremental flag only if TableOutputFormat is used > ---------------------------------------------------------- > > Key: HIVE-14169 > URL: https://issues.apache.org/jira/browse/HIVE-14169 > Project: Hive > Issue Type: Sub-task > Components: Beeline > Reporter: Sahil Takiar > Assignee: Sahil Takiar > Attachments: HIVE-14169.1.patch > > > * When Beeline prints out a {{ResultSet}} to stdout it uses the {{BeeLine.print}} method > * This method takes the {{ResultSet}} from the completed query and uses a specified {{OutputFormat}} to print the rows (by default it uses {{TableOutputFormat}}) > * The {{print}} method also wraps the {{ResultSet}} into a {{Rows}} class (either a {{IncrementalRows}} or a {{BufferedRows}} class) > The advantage of {{BufferedRows}} is that it can do a global calculation of the column width, however, this is only useful for {{TableOutputFormat}}. So there is no need to buffer all the rows if a different {{OutputFormat}} is used. This JIRA will change the behavior of the {{--incremental}} flag so that it is only honored if {{TableOutputFormat}} is used. -- This message was sent by Atlassian JIRA (v6.3.4#6332)