RussellSpitzer commented on issue #4628:
URL: https://github.com/apache/iceberg/issues/4628#issuecomment-1108790296

   You could use the format version as well but you need to add the catalog to 
`.saveAsTable(s"iceberg_catalog.$db.$table")`
   
   In the new api I believe you would need to be explicit if you want to create 
IF not exists
   
   ```scala
    val df = dfToWrite
       .orderBy(TIME_KEY_COL)
       .coalesce(1)
        .writeTo(s"iceberg_catalog.$db.$table")
       .partitionedBy(col(TIME_KEY_COL))
       .tableProperty("location", "somewhere")
   try {
     df.create()
   } catchTableExists {
     df.append()
   }
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to