Skip to content

is there anyway to rewrite onto a specific branch? #8762

Closed as not planned
Closed as not planned
@zinking

Description

@zinking

Query engine

Spark

Question

I thought this might do

      val table = s"iceberg_catalog.${tableIdentifier}.branch_${branch}"
      val t = Spark3Util.loadIcebergTable(spark, table)
      val start = System.currentTimeMillis()
      try {
        SparkActions.get()
          .rewriteDataFiles(t)
          .skipPlanDeletes(skipPlanDeletes)
          .filter(Expressions.equal("ds", 20230923))
          .execute()

I was assuming the data is read from the branch, and the rewrite the result is written onto the branch

but it is not, seems the change is still visible on main.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions