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

Ability to comment desired for hive query files

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • None
    • None
    • Clients, Query Processor
    • None

    Description

      It is, in many cases, quite useful to write a query, save it in a file, and "run" the file with hive -f filename. However, as time passes and many such files are written, it becomes unclear why I did things the way I did--the solution for most code is to comment the code, and I would love to be able to comment hive code in .sql/.hql files or queries.

      Standard SQL comment structure is anything following a non-escaped non-quoted "-- " or "#" on a single line should cause the rest of the line to be ignored. I would love to have this in hive...both in the CLI (for when I paste a query in) and in the hive -f file reader option. C-style // and /* */ commenting would be great too, but only because I'm lazy.

      Attachments

        Activity

          People

            Unassigned Unassigned
            akramer Adam Kramer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: