You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/09/22 17:45:45 UTC

[GitHub] [iceberg] swapna267 opened a new issue, #5832: Iceberg Table properties not replaced when DataFrameWriterV2 replace() is used

swapna267 opened a new issue, #5832:
URL: https://github.com/apache/iceberg/issues/5832

   Based on Replace() documentation , Table properties should be replaced with the one's associated with the data frame. 
   
   "The existing table's schema, partition layout, properties, and other configuration will be replaced with the contents of the data frame and the configuration set on this writer."
   https://spark.apache.org/docs/3.2.0/api/java/org/apache/spark/sql/DataFrameWriterV2.html#replace--
   
   For iceberg tables, the current behavior is that table properties are getting updated , but not replaced. Is this the expected behavior ?


-- 
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-unsubscribe@iceberg.apache.org.apache.org

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


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


[GitHub] [iceberg] github-actions[bot] commented on issue #5832: Iceberg Table properties not replaced when DataFrameWriterV2 replace() is used

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5832:
URL: https://github.com/apache/iceberg/issues/5832#issuecomment-1478749362

   This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.


-- 
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-unsubscribe@iceberg.apache.org

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


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


[GitHub] [iceberg] github-actions[bot] commented on issue #5832: Iceberg Table properties not replaced when DataFrameWriterV2 replace() is used

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5832:
URL: https://github.com/apache/iceberg/issues/5832#issuecomment-1496752746

   This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'


-- 
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-unsubscribe@iceberg.apache.org

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


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


[GitHub] [iceberg] flyrain commented on issue #5832: Iceberg Table properties not replaced when DataFrameWriterV2 replace() is used

Posted by GitBox <gi...@apache.org>.
flyrain commented on issue #5832:
URL: https://github.com/apache/iceberg/issues/5832#issuecomment-1255370730

   Not aware of the reason of the original decision, but replacing makes more sense to me.


-- 
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-unsubscribe@iceberg.apache.org

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


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


[GitHub] [iceberg] karuppayya commented on issue #5832: Iceberg Table properties not replaced when DataFrameWriterV2 replace() is used

Posted by GitBox <gi...@apache.org>.
karuppayya commented on issue #5832:
URL: https://github.com/apache/iceberg/issues/5832#issuecomment-1255356834

   https://github.com/apache/iceberg/blob/master/core/src/main/java/org/apache/iceberg/TableMetadata.java#L655
   Is there any specific reason for updating it than replacing it?
   @rdblue @aokolnychyi @RussellSpitzer @flyrain @szehon-ho 


-- 
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-unsubscribe@iceberg.apache.org

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


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


[GitHub] [iceberg] rdblue commented on issue #5832: Iceberg Table properties not replaced when DataFrameWriterV2 replace() is used

Posted by GitBox <gi...@apache.org>.
rdblue commented on issue #5832:
URL: https://github.com/apache/iceberg/issues/5832#issuecomment-1255419072

   The new properties should be merged, not replaced. There are many properties that should live with the table across versions. For instance, the compression codec is based on the data in the table and should not be dropped because the operation replacing the table's data doesn't specify one. Instead, properties should be respected by always merged with the existing ones.


-- 
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-unsubscribe@iceberg.apache.org

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


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


[GitHub] [iceberg] github-actions[bot] closed issue #5832: Iceberg Table properties not replaced when DataFrameWriterV2 replace() is used

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #5832: Iceberg Table properties not replaced when DataFrameWriterV2 replace() is used
URL: https://github.com/apache/iceberg/issues/5832


-- 
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-unsubscribe@iceberg.apache.org

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


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