kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "peng.jianhua (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KYLIN-3072) Fix the regular expression in function 'removeCommentInSql'
Date Fri, 01 Dec 2017 01:11:01 GMT

     [ https://issues.apache.org/jira/browse/KYLIN-3072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

peng.jianhua updated KYLIN-3072:
--------------------------------
    Description: 
select * from kylin_sales /\*comments--comments*/

we should remove comments like '/*comments*/' first,then remove comments like '--comments'
, or the sql above will have an exception.
please refer to 01.png.

if we exchange the sequence of this two comment patterns,we will get 02.png.

  was:
select * from kylin_sales /*comments--comments*/

we should remove comments like '/*comments*/' first,then remove comments like '--comments'
, or the sql above will have an exception.
please refer to 01.png.

if we exchange the sequence of this two comment patterns,we will get 02.png.


> Fix the regular expression in function 'removeCommentInSql'
> -----------------------------------------------------------
>
>                 Key: KYLIN-3072
>                 URL: https://issues.apache.org/jira/browse/KYLIN-3072
>             Project: Kylin
>          Issue Type: Bug
>          Components: Query Engine
>            Reporter: peng.jianhua
>            Assignee: peng.jianhua
>         Attachments: 0001-KYLIN-3072-Fix-the-regular-expression-in-function-re.patch,
01.png, 02.PNG
>
>
> select * from kylin_sales /\*comments--comments*/
> we should remove comments like '/*comments*/' first,then remove comments like '--comments'
, or the sql above will have an exception.
> please refer to 01.png.
> if we exchange the sequence of this two comment patterns,we will get 02.png.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message