- 
                Notifications
    
You must be signed in to change notification settings  - Fork 424
 
feat: table/column/flow COMMENT #7060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
| let partition_column_names: Vec<_> = | ||
| table_info.meta.partition_column_names().cloned().collect(); | ||
| 
               | 
          ||
| if let Some(latest) = self | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it necessary to retrieve the table info again here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason I haven't figured out, table info from table sometimes lacks some info like partition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better create an issue to track this
| new_flow_info.comment = comment.unwrap_or_default(); | ||
| new_flow_info.updated_time = Utc::now(); | ||
| 
               | 
          ||
| self.update_flow_metadata(flow_id, new_flow_info).await?; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe here need to invalidity by flow id since flow info is updated?(And flow id being key to flow info)
| flow_id: FlowId, | ||
| new_flow_info: FlowInfoValue, | ||
| ) -> Result<()> { | ||
| let raw_value = serde_json::to_vec(&new_flow_info) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new_flow_info.try_as_raw_value() maybe?
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Co-authored-by: dennis zhuang <killme2008@gmail.com> Co-authored-by: LFC <990479+MichaelScofield@users.noreply.github.com> Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
| let partition_column_names: Vec<_> = | ||
| table_info.meta.partition_column_names().cloned().collect(); | ||
| 
               | 
          ||
| if let Some(latest) = self | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better create an issue to track this
Signed-off-by: Ruihang Xia waynestxia@gmail.comI hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
COMMENT ON [TABLE/COLUMN/FLOW]to set/remove commentSHOWclausesPR Checklist
Please convert it to a draft if some of the following conditions are not met.