scaladevspark commented on issue #4628:
URL: https://github.com/apache/iceberg/issues/4628#issuecomment-1108782055
ok, switching to writeTo helped, this now runs:
allocDfToWrite
.orderBy(TIME_KEY_COL)
.coalesce(1)
.writeTo(s"iceberg_catalog.$db.$table")
.partitionedBy(col(TIME_KEY_COL))
.createOrReplace()
However, the api changed a lot. It does not seem possible anymore to
directly write to a partitioned table with an external location and create it
if not exists. So basically:
df
.write
.mode(SaveMode.Append)
.format(writeFormat)
.partitionBy(TIME_KEY_COL)
.option("path", path)
.saveAsTable(s"$db.$table")
is not possible with the new API anymore, as you need to create the table
first and then write to it? Or is there a way?
Thanks a lot again for all your help.
--
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]