Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-4590

HCatalog documentation example is wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.10.0
    • None
    • Documentation, HCatalog
    • None

    Description

      http://hive.apache.org/docs/hcat_r0.5.0/inputoutput.html#Read+Example
      reads

      The following very simple MapReduce program reads data from one table which it assumes to have an integer in the second column, and counts how many different values it sees. That is, it does the equivalent of "select col1, count from $table group by col1;".

      The description of the query is wrong. It actually counts how many instances of each distinct value it find. For example, if values of col1 are {1,1,1,3,3,3,5) it will produce
      1, 3
      3, 2,
      5, 1

      Attachments

        Activity

          People

            leftyl Lefty Leverenz
            ekoifman Eugene Koifman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: