Skip to content

Conversation

waynexia
Copy link
Member

@waynexia waynexia commented Oct 9, 2025

Signed-off-by: Ruihang Xia [email protected]I 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?

  • New clause COMMENT ON [TABLE/COLUMN/FLOW] to set/remove comment
  • Display comment on corresponding SHOW clauses

PR Checklist

Please convert it to a draft if some of the following conditions are not met.

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.
  • This PR requires documentation updates.
  • API changes are backward compatible.
  • Schema or data changes are backward compatible.

Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
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?;
Copy link
Contributor

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)
Copy link
Contributor

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?

waynexia and others added 5 commits October 11, 2025 17:36
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Co-authored-by: dennis zhuang <[email protected]>
Co-authored-by: LFC <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-required This change requires docs update. size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants