sibing.zhang created KYLIN-5336: ----------------------------------- Summary: 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 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)