You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Xiaoxiang Yu (Jira)" <ji...@apache.org> on 2023/03/29 07:17:00 UTC
[jira] [Assigned] (KYLIN-5336) Using the SQL modeling API, the model can be online without a segment
[ https://issues.apache.org/jira/browse/KYLIN-5336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiaoxiang Yu reassigned KYLIN-5336:
-----------------------------------
Assignee: sibing.zhang
> Using the SQL modeling API, the model can be online without a segment
> ---------------------------------------------------------------------
>
> Key: KYLIN-5336
> URL: https://issues.apache.org/jira/browse/KYLIN-5336
> Project: Kylin
> Issue Type: Bug
> Affects Versions: 5.0-alpha
> Reporter: sibing.zhang
> Assignee: sibing.zhang
> Priority: Major
> Fix For: 5.0-alpha
>
>
> *复现方式*
> # 创建项目,加载数据
> # 调用sql建模api:/kylin/api/models/model_suggestion,传入以下参数:
> {
> "project":"***",
> "sqls":["***"],
> "with_segment":false,
> "with_model_online":true}
> # 此时,创建了一个没有segment,但上线了的模型
> # 前端页面上线模型,必须有segment(空segment也可以)
> *期望结果*
> 调用sql建模api行为须和前端保持一致
> *root cause*
> 对上线的模型,未判断segment是否存在。
> *fix design*
> 从接口参数处加以校验。当传入的参数"with_model_online"为true时,传入的”with_segment“参数必须为true,为false或者非boolean类型时则返回对应的错误信息。
--
This message was sent by Atlassian Jira
(v8.20.10#820010)