apache / paimon

Apache Paimon is a lake format that enables building a Realtime Lakehouse Architecture with Flink and Spark for both streaming and batch operations.
https://paimon.apache.org/
Apache License 2.0
2.46k stars 966 forks source link

[core] Delete tag not failed if tag not exists #4292

Closed askwang closed 1 month ago

askwang commented 1 month ago

Purpose

when re-create a tag with the same name, we should delete it first and dont want to the job failed if tag not exists, like this:

CALL sys.delete_tag(table => 'default.T', tag => 'my_tag');
CALL sys.create_tag(table => 'default.T', tag => 'my_tag');

This is like drop table [if exists] tb usage.

Tests

API and Format

Documentation