[jira] [Created] (KYLIN-3251) Add a hook that can customer made test_case_data
jiatao.tao created KYLIN-3251: - Summary: Add a hook that can customer made test_case_data Key: KYLIN-3251 URL: https://issues.apache.org/jira/browse/KYLIN-3251 Project: Kylin Issue Type: Improvement Reporter: jiatao.tao Assignee: jiatao.tao -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (KYLIN-3135) Fix regular expression bug in SQL comments
[ https://issues.apache.org/jira/browse/KYLIN-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] peng.jianhua updated KYLIN-3135: Attachment: (was: 0001-kylin-3135-revert-first-regex-too.patch) > Fix regular expression bug in SQL comments > -- > > Key: KYLIN-3135 > URL: https://issues.apache.org/jira/browse/KYLIN-3135 > Project: Kylin > Issue Type: Bug >Reporter: hahayuan >Assignee: hahayuan >Priority: Major > Fix For: v2.3.0 > > Attachments: 0001-KYLIN-3135.patch, > 0001-kylin-3135-revert-first-regex-too.patch, > 0002-KYLIN-3135-fix-regEx.patch, multi_line_comments.PNG, > one_line_comments.PNG > > > Hi,all. > Recently,I was testing query function of kylin, > sometimes I just comment with /**/ instead of delete the sql,cause I need to > query and compare again. > And I was confused that the results says it was "No Support Sql",but it can > query success without comments. > For example, > {code:java} > /* > select count(*) from kylin_sales; > */ > select * from kylin_sales; > {code} > So I view the code and find the commentPatterns of /\**/ was > {code:java} > /\\*[^\\*/]* > {code} > ,clearly it was wrong. > The regular expression of [abc] means any character in abc,such as a or b. > So the [^\\*/] means that * or / can't appear, > But under this circumstances the */ need to be as a string not separated > character. > the */ can't appear not * or / can't appear. > I rewrite the regular expression, > {code:java} > /\\*[\\s\\S]*?\\*/ > {code} > if you think it's necessary to change the old code,please review and replace > it. > Thank for you time. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (KYLIN-3135) Fix regular expression bug in SQL comments
[ https://issues.apache.org/jira/browse/KYLIN-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] hahayuan updated KYLIN-3135: Attachment: 0001-kylin-3135-revert-first-regex-too.patch > Fix regular expression bug in SQL comments > -- > > Key: KYLIN-3135 > URL: https://issues.apache.org/jira/browse/KYLIN-3135 > Project: Kylin > Issue Type: Bug >Reporter: hahayuan >Assignee: hahayuan >Priority: Major > Fix For: v2.3.0 > > Attachments: 0001-KYLIN-3135.patch, > 0001-kylin-3135-revert-first-regex-too.patch, > 0002-KYLIN-3135-fix-regEx.patch, multi_line_comments.PNG, > one_line_comments.PNG > > > Hi,all. > Recently,I was testing query function of kylin, > sometimes I just comment with /**/ instead of delete the sql,cause I need to > query and compare again. > And I was confused that the results says it was "No Support Sql",but it can > query success without comments. > For example, > {code:java} > /* > select count(*) from kylin_sales; > */ > select * from kylin_sales; > {code} > So I view the code and find the commentPatterns of /\**/ was > {code:java} > /\\*[^\\*/]* > {code} > ,clearly it was wrong. > The regular expression of [abc] means any character in abc,such as a or b. > So the [^\\*/] means that * or / can't appear, > But under this circumstances the */ need to be as a string not separated > character. > the */ can't appear not * or / can't appear. > I rewrite the regular expression, > {code:java} > /\\*[\\s\\S]*?\\*/ > {code} > if you think it's necessary to change the old code,please review and replace > it. > Thank for you time. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (KYLIN-3135) Fix regular expression bug in SQL comments
[ https://issues.apache.org/jira/browse/KYLIN-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16359777#comment-16359777 ] hahayuan commented on KYLIN-3135: - Please revert the first {code:java} --.*?[\r\n] {code} too. if the comments like '--comments' at the end of sql,and don't have '\n', the {code:java} --.*?[\r\n] {code} will be wrong. please refer to the last test case in 0001-kylin-3135-revert-first-regex-too.patch > Fix regular expression bug in SQL comments > -- > > Key: KYLIN-3135 > URL: https://issues.apache.org/jira/browse/KYLIN-3135 > Project: Kylin > Issue Type: Bug >Reporter: hahayuan >Assignee: hahayuan >Priority: Major > Fix For: v2.3.0 > > Attachments: 0001-KYLIN-3135.patch, > 0001-kylin-3135-revert-first-regex-too.patch, > 0002-KYLIN-3135-fix-regEx.patch, multi_line_comments.PNG, > one_line_comments.PNG > > > Hi,all. > Recently,I was testing query function of kylin, > sometimes I just comment with /**/ instead of delete the sql,cause I need to > query and compare again. > And I was confused that the results says it was "No Support Sql",but it can > query success without comments. > For example, > {code:java} > /* > select count(*) from kylin_sales; > */ > select * from kylin_sales; > {code} > So I view the code and find the commentPatterns of /\**/ was > {code:java} > /\\*[^\\*/]* > {code} > ,clearly it was wrong. > The regular expression of [abc] means any character in abc,such as a or b. > So the [^\\*/] means that * or / can't appear, > But under this circumstances the */ need to be as a string not separated > character. > the */ can't appear not * or / can't appear. > I rewrite the regular expression, > {code:java} > /\\*[\\s\\S]*?\\*/ > {code} > if you think it's necessary to change the old code,please review and replace > it. > Thank for you time. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Issue Comment Deleted] (KYLIN-3135) Fix regular expression bug in SQL comments
[ https://issues.apache.org/jira/browse/KYLIN-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] peng.jianhua updated KYLIN-3135: Comment: was deleted (was: Please revert the first {code:java} --.*?[\r\n] {code} too. if the comments like '--comments' at the end of sql,and don't have '\n', the {code:java} --.*?[\r\n] {code} will be wrong. please refer to the last test case in 0001-kylin-3135-revert-first-regex-too.patch) > Fix regular expression bug in SQL comments > -- > > Key: KYLIN-3135 > URL: https://issues.apache.org/jira/browse/KYLIN-3135 > Project: Kylin > Issue Type: Bug >Reporter: hahayuan >Assignee: hahayuan >Priority: Major > Fix For: v2.3.0 > > Attachments: 0001-KYLIN-3135.patch, > 0001-kylin-3135-revert-first-regex-too.patch, > 0002-KYLIN-3135-fix-regEx.patch, multi_line_comments.PNG, > one_line_comments.PNG > > > Hi,all. > Recently,I was testing query function of kylin, > sometimes I just comment with /**/ instead of delete the sql,cause I need to > query and compare again. > And I was confused that the results says it was "No Support Sql",but it can > query success without comments. > For example, > {code:java} > /* > select count(*) from kylin_sales; > */ > select * from kylin_sales; > {code} > So I view the code and find the commentPatterns of /\**/ was > {code:java} > /\\*[^\\*/]* > {code} > ,clearly it was wrong. > The regular expression of [abc] means any character in abc,such as a or b. > So the [^\\*/] means that * or / can't appear, > But under this circumstances the */ need to be as a string not separated > character. > the */ can't appear not * or / can't appear. > I rewrite the regular expression, > {code:java} > /\\*[\\s\\S]*?\\*/ > {code} > if you think it's necessary to change the old code,please review and replace > it. > Thank for you time. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Comment Edited] (KYLIN-3135) Fix regular expression bug in SQL comments
[ https://issues.apache.org/jira/browse/KYLIN-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16359776#comment-16359776 ] peng.jianhua edited comment on KYLIN-3135 at 2/11/18 4:43 AM: -- Please revert the first {code:java} --.*?[\r\n] {code} too. if the comments like '--comments' at the end of sql,and don't have '\n', the {code:java} --.*?[\r\n] {code} will be wrong. please refer to the last test case in 0001-kylin-3135-revert-first-regex-too.patch was (Author: peng.jianhua): Please revert the first {code:java} --.*?[\r\n] {code} too. if the comments like '--comments' at the end of sql,and don't have '\n', the {code:java} --.*?[\r\n] {code} will be wrong. > Fix regular expression bug in SQL comments > -- > > Key: KYLIN-3135 > URL: https://issues.apache.org/jira/browse/KYLIN-3135 > Project: Kylin > Issue Type: Bug >Reporter: hahayuan >Assignee: hahayuan >Priority: Major > Fix For: v2.3.0 > > Attachments: 0001-KYLIN-3135.patch, > 0001-kylin-3135-revert-first-regex-too.patch, > 0002-KYLIN-3135-fix-regEx.patch, multi_line_comments.PNG, > one_line_comments.PNG > > > Hi,all. > Recently,I was testing query function of kylin, > sometimes I just comment with /**/ instead of delete the sql,cause I need to > query and compare again. > And I was confused that the results says it was "No Support Sql",but it can > query success without comments. > For example, > {code:java} > /* > select count(*) from kylin_sales; > */ > select * from kylin_sales; > {code} > So I view the code and find the commentPatterns of /\**/ was > {code:java} > /\\*[^\\*/]* > {code} > ,clearly it was wrong. > The regular expression of [abc] means any character in abc,such as a or b. > So the [^\\*/] means that * or / can't appear, > But under this circumstances the */ need to be as a string not separated > character. > the */ can't appear not * or / can't appear. > I rewrite the regular expression, > {code:java} > /\\*[\\s\\S]*?\\*/ > {code} > if you think it's necessary to change the old code,please review and replace > it. > Thank for you time. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (KYLIN-3135) Fix regular expression bug in SQL comments
[ https://issues.apache.org/jira/browse/KYLIN-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16359776#comment-16359776 ] peng.jianhua commented on KYLIN-3135: - Please revert the first {code:java} --.*?[\r\n] {code} too. if the comments like '--comments' at the end of sql,and don't have '\n', the {code:java} --.*?[\r\n] {code} will be wrong. > Fix regular expression bug in SQL comments > -- > > Key: KYLIN-3135 > URL: https://issues.apache.org/jira/browse/KYLIN-3135 > Project: Kylin > Issue Type: Bug >Reporter: hahayuan >Assignee: hahayuan >Priority: Major > Fix For: v2.3.0 > > Attachments: 0001-KYLIN-3135.patch, > 0001-kylin-3135-revert-first-regex-too.patch, > 0002-KYLIN-3135-fix-regEx.patch, multi_line_comments.PNG, > one_line_comments.PNG > > > Hi,all. > Recently,I was testing query function of kylin, > sometimes I just comment with /**/ instead of delete the sql,cause I need to > query and compare again. > And I was confused that the results says it was "No Support Sql",but it can > query success without comments. > For example, > {code:java} > /* > select count(*) from kylin_sales; > */ > select * from kylin_sales; > {code} > So I view the code and find the commentPatterns of /\**/ was > {code:java} > /\\*[^\\*/]* > {code} > ,clearly it was wrong. > The regular expression of [abc] means any character in abc,such as a or b. > So the [^\\*/] means that * or / can't appear, > But under this circumstances the */ need to be as a string not separated > character. > the */ can't appear not * or / can't appear. > I rewrite the regular expression, > {code:java} > /\\*[\\s\\S]*?\\*/ > {code} > if you think it's necessary to change the old code,please review and replace > it. > Thank for you time. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (KYLIN-3135) Fix regular expression bug in SQL comments
[ https://issues.apache.org/jira/browse/KYLIN-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] peng.jianhua updated KYLIN-3135: Attachment: 0001-kylin-3135-revert-first-regex-too.patch > Fix regular expression bug in SQL comments > -- > > Key: KYLIN-3135 > URL: https://issues.apache.org/jira/browse/KYLIN-3135 > Project: Kylin > Issue Type: Bug >Reporter: hahayuan >Assignee: hahayuan >Priority: Major > Fix For: v2.3.0 > > Attachments: 0001-KYLIN-3135.patch, > 0001-kylin-3135-revert-first-regex-too.patch, > 0002-KYLIN-3135-fix-regEx.patch, multi_line_comments.PNG, > one_line_comments.PNG > > > Hi,all. > Recently,I was testing query function of kylin, > sometimes I just comment with /**/ instead of delete the sql,cause I need to > query and compare again. > And I was confused that the results says it was "No Support Sql",but it can > query success without comments. > For example, > {code:java} > /* > select count(*) from kylin_sales; > */ > select * from kylin_sales; > {code} > So I view the code and find the commentPatterns of /\**/ was > {code:java} > /\\*[^\\*/]* > {code} > ,clearly it was wrong. > The regular expression of [abc] means any character in abc,such as a or b. > So the [^\\*/] means that * or / can't appear, > But under this circumstances the */ need to be as a string not separated > character. > the */ can't appear not * or / can't appear. > I rewrite the regular expression, > {code:java} > /\\*[\\s\\S]*?\\*/ > {code} > if you think it's necessary to change the old code,please review and replace > it. > Thank for you time. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (KYLIN-3135) Fix regular expression bug in SQL comments
[ https://issues.apache.org/jira/browse/KYLIN-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16359768#comment-16359768 ] Kaige Liu commented on KYLIN-3135: --- As commented above, I will revert the change in [https://github.com/apache/kylin/commit/7d5fb855064e2b81cd3b154cdeeafec4e64f63c9] Please review the patch [~roger.shi] [~lidong_sjtu], Thanks. > Fix regular expression bug in SQL comments > -- > > Key: KYLIN-3135 > URL: https://issues.apache.org/jira/browse/KYLIN-3135 > Project: Kylin > Issue Type: Bug >Reporter: hahayuan >Assignee: hahayuan >Priority: Major > Fix For: v2.3.0 > > Attachments: 0001-KYLIN-3135.patch, 0002-KYLIN-3135-fix-regEx.patch, > multi_line_comments.PNG, one_line_comments.PNG > > > Hi,all. > Recently,I was testing query function of kylin, > sometimes I just comment with /**/ instead of delete the sql,cause I need to > query and compare again. > And I was confused that the results says it was "No Support Sql",but it can > query success without comments. > For example, > {code:java} > /* > select count(*) from kylin_sales; > */ > select * from kylin_sales; > {code} > So I view the code and find the commentPatterns of /\**/ was > {code:java} > /\\*[^\\*/]* > {code} > ,clearly it was wrong. > The regular expression of [abc] means any character in abc,such as a or b. > So the [^\\*/] means that * or / can't appear, > But under this circumstances the */ need to be as a string not separated > character. > the */ can't appear not * or / can't appear. > I rewrite the regular expression, > {code:java} > /\\*[\\s\\S]*?\\*/ > {code} > if you think it's necessary to change the old code,please review and replace > it. > Thank for you time. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (KYLIN-3135) Fix regular expression bug in SQL comments
[ https://issues.apache.org/jira/browse/KYLIN-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kaige Liu updated KYLIN-3135: - Attachment: 0002-KYLIN-3135-fix-regEx.patch > Fix regular expression bug in SQL comments > -- > > Key: KYLIN-3135 > URL: https://issues.apache.org/jira/browse/KYLIN-3135 > Project: Kylin > Issue Type: Bug >Reporter: hahayuan >Assignee: hahayuan >Priority: Major > Fix For: v2.3.0 > > Attachments: 0001-KYLIN-3135.patch, 0002-KYLIN-3135-fix-regEx.patch, > multi_line_comments.PNG, one_line_comments.PNG > > > Hi,all. > Recently,I was testing query function of kylin, > sometimes I just comment with /**/ instead of delete the sql,cause I need to > query and compare again. > And I was confused that the results says it was "No Support Sql",but it can > query success without comments. > For example, > {code:java} > /* > select count(*) from kylin_sales; > */ > select * from kylin_sales; > {code} > So I view the code and find the commentPatterns of /\**/ was > {code:java} > /\\*[^\\*/]* > {code} > ,clearly it was wrong. > The regular expression of [abc] means any character in abc,such as a or b. > So the [^\\*/] means that * or / can't appear, > But under this circumstances the */ need to be as a string not separated > character. > the */ can't appear not * or / can't appear. > I rewrite the regular expression, > {code:java} > /\\*[\\s\\S]*?\\*/ > {code} > if you think it's necessary to change the old code,please review and replace > it. > Thank for you time. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (KYLIN-3220) Add manager for project ACL.
[ https://issues.apache.org/jira/browse/KYLIN-3220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] jiatao.tao updated KYLIN-3220: -- Description: AclRecord need to be cached. > Add manager for project ACL. > > > Key: KYLIN-3220 > URL: https://issues.apache.org/jira/browse/KYLIN-3220 > Project: Kylin > Issue Type: Improvement >Reporter: jiatao.tao >Assignee: jiatao.tao >Priority: Major > > AclRecord need to be cached. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (KYLIN-3224) data can't show when use kylin pushdown model
[ https://issues.apache.org/jira/browse/KYLIN-3224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16359725#comment-16359725 ] peng.jianhua commented on KYLIN-3224: - ok,i'm working on this right now. > data can't show when use kylin pushdown model > -- > > Key: KYLIN-3224 > URL: https://issues.apache.org/jira/browse/KYLIN-3224 > Project: Kylin > Issue Type: Bug > Components: Query Engine, Web >Affects Versions: v2.2.0, v2.3.0 >Reporter: peng.jianhua >Assignee: peng.jianhua >Priority: Major > Fix For: v2.3.0 > > Attachments: 0001-KYLIN-3224.patch, 01.PNG, 02.PNG, 03.PNG > > > select * from kylin_sales > use pushdown model,and the result shows like 01.png -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (KYLIN-3224) data can't show when use kylin pushdown model
[ https://issues.apache.org/jira/browse/KYLIN-3224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16359717#comment-16359717 ] Billy Liu commented on KYLIN-3224: -- Agree with [~Zhixiong Chen], we should figure out why the return format is different between cube and pushdown. ui-grid.js is the third party library. We'd better keep it no change. > data can't show when use kylin pushdown model > -- > > Key: KYLIN-3224 > URL: https://issues.apache.org/jira/browse/KYLIN-3224 > Project: Kylin > Issue Type: Bug > Components: Query Engine, Web >Affects Versions: v2.2.0, v2.3.0 >Reporter: peng.jianhua >Assignee: peng.jianhua >Priority: Major > Fix For: v2.3.0 > > Attachments: 0001-KYLIN-3224.patch, 01.PNG, 02.PNG, 03.PNG > > > select * from kylin_sales > use pushdown model,and the result shows like 01.png -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Resolved] (KYLIN-3223) Query for the list of hybrid cubes results in NPE
[ https://issues.apache.org/jira/browse/KYLIN-3223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Billy Liu resolved KYLIN-3223. -- Resolution: Fixed Thanks [~seva_ostapenko] for updating the patch. LGTM. Merged at http://git-wip-us.apache.org/repos/asf/kylin/commit/3fa11b2c > Query for the list of hybrid cubes results in NPE > - > > Key: KYLIN-3223 > URL: https://issues.apache.org/jira/browse/KYLIN-3223 > Project: Kylin > Issue Type: Bug > Components: REST Service >Affects Versions: v2.2.0 > Environment: HDP 2.5.6, Kylin 2.2 >Reporter: Vsevolod Ostapenko >Assignee: Vsevolod Ostapenko >Priority: Major > Fix For: v2.3.0 > > Attachments: > 0001-KYLIN-3223-Query-for-the-list-of-hybrid-cubes-result.patch, > KYLIN-3223.master.001.patch > > > Calling REST API to get the list of hybrid cubes returns stack trace with NPE > exception. > {quote}curl -u ADMIN:KYLIN -X GET -H 'Content-Type: application/json' -d {} > [http://localhost:7070/kylin/api/hybrids] > {quote} > > If a parameter project without a value is specified, call succeeds. E.g. > {quote}curl -u ADMIN:KYLIN -X GET -H 'Content-Type: application/json' -d {} > [http://localhost:7070/kylin/api/hybrids?project] > {quote} > Quick look at the HybridService.java suggests that there is a bug in the > code, where the very first line tries to check ACLs on the project using the > project name, which is NULL, when project parameter is not specified as part > of the URL. > If parameter is specified without a value, ACL check is not performed, so > it's another bug, as the list of projects is retrieved without read > permission checking. -- This message was sent by Atlassian JIRA (v7.6.3#76005)