Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-5299

Comment at end of query causes query to be ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.9.0
    • 0.9.1, 0.10.0
    • None
    • None
    • Bug found in Zeppelin 0.9.0-preview1, which is included in the AWS EMR 6.2.0 release.

    Description

      A trailing comment at the end of a query causes the query to be ignored.  Running a cell with such a query will cause Zeppelin to return immediately, without an error.

      Example:

      %sql
      select
        'one'
        , 'two' -- comment

      Workaround: Adding a final ';' at the end of the query fixes the problem, like so:

      %sql
      select
        'one'
        , 'two' -- comment
      ;

      Attachments

        Activity

          People

            zjffdu Jeff Zhang
            jon.courtney Jon Courtney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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