Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-7224 Set incremental printing to true by default in Beeline
  3. HIVE-14169

Honor --incremental flag only if TableOutputFormat is used

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Beeline
    • None

    Description

      • 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.

      Attachments

        1. HIVE-14169.1.patch
          0.8 kB
          Sahil Takiar

        Activity

          People

            stakiar Sahil Takiar
            stakiar Sahil Takiar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: