Hive
  1. Hive
  2. HIVE-763

getSchema returns invalid column names, getThriftSchema does not return old style string schemas

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.6.0
    • Component/s: Query Processor
    • Labels:
      None
    • Environment:

      Cent OS 5.3

    • Hadoop Flags:
      Incompatible change, Reviewed

      Description

      SELECT AVG(total) as avg,STDDEV(total) as stddevr FROM (SELECT COUNT(phrase) as total FROM TABLE GROUP BY phrase) t2

      getSchema and getThriftSchema both return

      col0: double
      col1 : double

      expected results

      avg : double
      stddevr : double

      col0 & col1 are useless column names.

        Activity

        Hide
        Namit Jain added a comment -

        committed. Thanks John

        Show
        Namit Jain added a comment - committed. Thanks John
        Hide
        Namit Jain added a comment -

        +1

        looks good - will commit if the tests pass

        Show
        Namit Jain added a comment - +1 looks good - will commit if the tests pass
        Hide
        John Sichi added a comment -

        This patch should fix the bug.

        Show
        John Sichi added a comment - This patch should fix the bug.

          People

          • Assignee:
            John Sichi
            Reporter:
            Scott
          • Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development