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

Beeline fails to read a query with comments correctly.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Comment in the beginning of line works:
      0: jdbc:hive2://localhost:10000> select
      . . . . . . . . . . . . . . . .> – comment
      . . . . . . . . . . . . . . . .> * from store
      . . . . . . . . . . . . . . . .> limit 1;

      but, having comments not in the beginning ignores rest of the query. So, limit 1 is ignored here.
      0: jdbc:hive2://localhost:10000> select
      . . . . . . . . . . . . . . . .> * from store – comment
      . . . . . . . . . . . . . . . .> limit 1;

      However, this is fine with Hive CLI.

      Attachments

        1. HIVE-7340.patch
          3 kB
          Ashish Singh

        Issue Links

          Activity

            People

              singhashish Ashish Singh
              singhashish Ashish Singh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: