You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
filter the task history by current effective roles
to query the task histories, we need ask cloudcontrol rpc service.
there're two possible ways:
maintain the ownership in the cloudcontrol rpc service while the ownership get changed
whenever GRANT OWNERSHIP to another role in databend, we can also tell the change about task ownership cloudcontrol rpc service by a seperated rpc call likes alter_task_ownership() or alter_task().
thus we can query the task history by passing the current effective roles on the rpc get_task_histories.
not maintain the ownership in the cloudcontrol service
on querying the task histories, databend-query can get ALL the task ids by its own metadata storage about ownerships, then it can pass a task_ids to get_task_histories to filter out the needed task histories.
The text was updated successfully, but these errors were encountered:
in my personal view, i'd prefer the 1st approach above.
it has redundant storage about the ownership info, but sometimes redundant metadata may help different services to get the whole picture about the state.
Summary
to query the task histories, we need ask cloudcontrol rpc service.
there're two possible ways:
maintain the ownership in the cloudcontrol rpc service while the ownership get changed
whenever
GRANT OWNERSHIP
to another role in databend, we can also tell the change about task ownership cloudcontrol rpc service by a seperated rpc call likesalter_task_ownership()
oralter_task()
.thus we can query the task history by passing the current effective roles on the rpc
get_task_histories
.not maintain the ownership in the cloudcontrol service
on querying the task histories, databend-query can get ALL the task ids by its own metadata storage about ownerships, then it can pass a
task_ids
toget_task_histories
to filter out the needed task histories.The text was updated successfully, but these errors were encountered: