kevinjqliu commented on issue #306:
URL: https://github.com/apache/iceberg-python/issues/306#issuecomment-1913303260

   In order to write to a branch, the branch needs to be created first. 
   
   From 
https://iceberg.apache.org/docs/latest/spark-writes/#writing-to-branches:
   
   > the branch must exist before performing the write. The operation does not 
create the branch if it does not exist. 
   
   The API should look something like 
   ```
   def append(self, df: pa.Table, branch: str = MAIN_BRANCH)
   ...
   def overwrite(self, df: pa.Table, overwrite_filter: BooleanExpression = 
ALWAYS_TRUE, branch: str = MAIN_BRANCH)
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to