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

select expression with optional "as"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.4.0
    • Query Processor
    • None
    • Reviewed

    Description

      "as" should be optional in select expression. Query like the following should work:

      SELECT a, b FROM (
        SELECT key a, value b
        FROM src
      ) src1
      ORDER BY a LIMIT 1;
      

      Attachments

        1. HIVE-729.1.patch
          4 kB
          Zheng Shao
        2. HIVE-729.2.patch
          4 kB
          Ashish Thusoo

        Issue Links

          Activity

            People

              zshao Zheng Shao
              zshao Zheng Shao
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: