You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "Jon Courtney (Jira)" <ji...@apache.org> on 2021/03/25 15:26:00 UTC

[jira] [Created] (ZEPPELIN-5299) Comment at end of query causes query to be ignored

Jon Courtney created ZEPPELIN-5299:
--------------------------------------

             Summary: Comment at end of query causes query to be ignored
                 Key: ZEPPELIN-5299
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-5299
             Project: Zeppelin
          Issue Type: Bug
    Affects Versions: 0.9.0
         Environment: Bug found in Zeppelin 0.9.0-preview1, which is included in the AWS EMR 6.2.0 release.
            Reporter: Jon Courtney


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:
{code:java}
%sql
select
  'one'
  , 'two' -- comment{code}

Workaround: Adding a final ';' at the end of the query fixes the problem, like so:
{code:java}
%sql
select
  'one'
  , 'two' -- comment
;{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)