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

Fixed ParseException caused by unpaired quotation marks in a line of comments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.3
    • None
    • CLI, Parser

    Description

      Unpaired quotation marks in a line of comments causes ParseException : 

      task.sql

      select 1 -- comment I'm col1"xxx
      ;
      select 2 -- comment I'm col2"xxx
      ;

      The following error occurs when I run a similar task using the "hive -f task.sql" command :

      FAILED: ParseException line 2:0 cannot recognize input near '1' ';' 'select' in constant

      Attachments

        Issue Links

          Activity

            People

              renjianting001 renjianting
              renjianting001 renjianting
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h