Skip to content

feat(query): extend tag support to view, udf, and procedure objects#19447

Open
TCeason wants to merge 1 commit intodatabendlabs:mainfrom
TCeason:tag_object-2
Open

feat(query): extend tag support to view, udf, and procedure objects#19447
TCeason wants to merge 1 commit intodatabendlabs:mainfrom
TCeason:tag_object-2

Conversation

@TCeason
Copy link
Collaborator

@TCeason TCeason commented Feb 11, 2026

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

Add ALTER VIEW/FUNCTION/PROCEDURE SET/UNSET TAG syntax and wire it
through all layers: AST parser, binder (with proper type resolution
via generate_procedure_name_ident), plan, interpreter, privilege
check, access log, and tag_references table function.

  • View reuses TaggableObject::Table (views share table ID space)
  • UDF/Procedure add new TaggableObject variants with name-based keys
  • Add parse_procedure_ref() to common_ast for consistent procedure reference parsing with type normalization
  • Add tag cleanup on UDF/Procedure drop
  • Add sqllogic tests for end-to-end validation

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

This change is Reviewable

@github-actions github-actions bot added the pr-feature this PR introduces a new feature to the codebase label Feb 11, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6fe72c991a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@TCeason TCeason marked this pull request as draft February 11, 2026 05:25
@TCeason TCeason marked this pull request as ready for review February 11, 2026 06:02
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 618097fd04

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@TCeason TCeason force-pushed the tag_object-2 branch 2 times, most recently from 1f70d70 to 04b3613 Compare February 11, 2026 11:02
@TCeason
Copy link
Collaborator Author

TCeason commented Feb 11, 2026

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 04b3613e0f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@TCeason
Copy link
Collaborator Author

TCeason commented Feb 12, 2026

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9571d846af

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Add ALTER VIEW/FUNCTION/PROCEDURE SET/UNSET TAG syntax and wire it
  through all layers: AST parser, binder (with proper type resolution
  via generate_procedure_name_ident), plan, interpreter, privilege
  check, access log, and tag_references table function.

  - View reuses TaggableObject::Table (views share table ID space)
  - UDF/Procedure add new TaggableObject variants with name-based keys
  - Add parse_procedure_ref() to common_ast for consistent procedure
    reference parsing with type normalization
  - Add tag cleanup on UDF/Procedure drop
  - Add sqllogic tests for end-to-end validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-feature this PR introduces a new feature to the codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants