[ 
https://issues.apache.org/jira/browse/PHOENIX-2564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15277143#comment-15277143
 ] 

Vsevolod Ostapenko commented on PHOENIX-2564:
---------------------------------------------

This is actually a regression. 4.2 and earlier versions have no issues with SQL 
comments at the beginning, in the middle or at the end of the file. Starting 
with 4.4 all the scripts that have comments in them fail miserably.



> sqlline.py does not support sql files that start with '--'
> ----------------------------------------------------------
>
>                 Key: PHOENIX-2564
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2564
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Nick Dimiduk
>            Priority: Minor
>
> The [language 
> reference:http://phoenix.apache.org/language/index.html#comments] implies 
> that line comments starting with {{--}} are accepted. {{sqlline.py}} doesn't 
> support this syntax.
> {noformat}
> $ sqlline.py foo:2181 bar.sql
> ...
> 1/25         --
> Aborting command set because "force" is false and command failed: "--"
> Closing: org.apache.phoenix.jdbc.PhoenixConnection
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to