Skip to content

Commit

Permalink
remove create existed tag test
Browse files Browse the repository at this point in the history
  • Loading branch information
askwang committed Oct 21, 2024
1 parent f5faad6 commit 3d387f5
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,7 @@ abstract class PaimonTagDdlTestBase extends PaimonSparkTestBase {
"PT3H") :: Nil
)

// update the tag info if tag exists
spark.sql("alter table T create tag `tag-1` RETAIN 1 HOURS")
checkAnswer(
spark.sql("select tag_name,snapshot_id,time_retained from `T$tags` where tag_name='tag-1'"),
Row("tag-1", 3, "PT1H"))

// not update tag with 'if not exists' syntax, although tag already exists
// not update tag with 'if not exists' syntax
spark.sql("alter table T create tag if not exists `tag-1` RETAIN 10 HOURS")
checkAnswer(
spark.sql("select tag_name,snapshot_id,time_retained from `T$tags` where tag_name='tag-1'"),
Expand Down

0 comments on commit 3d387f5

Please sign in to comment.