Conflict error while merging table in two different branches

We performing the below steps via the pyspark,

  1. Created a test branch in Nessie and added a table to it.
  2. Deleted or Truncated the data from table in test branch.
  3. Tried to merge the main branch with test branch.

But it was throwing the below error,

Merge branch branch_test into branch main_branch failed due to commit conflict on source NessieCatalog.