[
https://issues.apache.org/jira/browse/KYLIN-5735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17793487#comment-17793487
]
zhong.zhu commented on KYLIN-5735:
----------------------------------
h1. Background
The customer's model name has the same prefix and is similar in form, so the
customer wants to get the task list by matching the object columns exactly
through the API.
h1. Dev Degisn
Add a parameter to the api to control whether the match is exact or not,
default is false (same as before).
* +exact+ (java field :{+}exactMatch{+})
* Optional, type {+}boolean{+}, whether it matches the object column name
exactly. Default is false
Filter after the task gets the object (because targetSubject displays
differently depending on jobType's object column)
Case ignored for exact matching, consistent with fuzzy matching (because KE
model names ignore case)
h1. Relevant Api
* Get job list:{{ GET [http://host:port/kylin/api/jobs]}}
h1. {{Change}}
After obtaining the object {+}targetSubject{+}, the exact match is determined
and filtered
> Job API to get job list supports model exact match
> --------------------------------------------------
>
> Key: KYLIN-5735
> URL: https://issues.apache.org/jira/browse/KYLIN-5735
> Project: Kylin
> Issue Type: Bug
> Affects Versions: 5.0-beta
> Reporter: zhong.zhu
> Assignee: zhong.zhu
> Priority: Critical
> Fix For: 5.0.0
>
> Attachments: image-2023-12-06-10-41-48-414.png,
> image-2023-12-06-10-56-20-139.png, screenshot-1.png, screenshot-2.png
>
>
> !image-2023-12-06-10-41-48-414.png!
> All the time, the zifeng model task list under the zifeng project, returned
> 10, should have returned empty because only zifeng0616, but returned
> zifeng0616
> !screenshot-1.png!
> !screenshot-2.png!
> Consistent with the page API, if you can optimize here can make the API to
> get the list of tasks can be accurately matched to the model ~ Thank you 🙏!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)