You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Dong Li (JIRA)" <ji...@apache.org> on 2015/11/04 09:11:27 UTC

[jira] [Commented] (KYLIN-1078) UI - Cannot have comments in the end of New Query textbox

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

Dong Li commented on KYLIN-1078:
--------------------------------

In QueryUtil.massageSql(SQLRequest sqlRequest), Limit and Offset clause are appened to last line of input SQL, so if we have comment in last line, then they'll become comments too.

To solve this, we can append limit and offset to another line. I'll attach patch to fix it.

> UI - Cannot have comments in the end of New Query textbox
> ---------------------------------------------------------
>
>                 Key: KYLIN-1078
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1078
>             Project: Kylin
>          Issue Type: Bug
>          Components: Web 
>            Reporter: Dong Li
>            Assignee: Zhong,Jason
>            Priority: Minor
>
> 1. Navigate to http://sandbox:7070/kylin/query
> 2. Input following sql into textbox:
> select * from test_kylin_fact
> ---comment
> 3. Click Submit button
> Found Errors:
> Lexical error at line 2, column 23. Encountered: <EOF> after : ""



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