You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "ndrluis (via GitHub)" <gi...@apache.org> on 2024/11/23 23:45:23 UTC

[PR] Add new standards for deprecating APIs [iceberg-python]

ndrluis opened a new pull request, #1365:
URL: https://github.com/apache/iceberg-python/pull/1365

   Solves #1330.
   
   @Fokko, could you check if I got the License and file headers right?


-- 
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


Re: [PR] Add new standards for deprecating APIs [iceberg-python]

Posted by "ndrluis (via GitHub)" <gi...@apache.org>.
ndrluis commented on PR #1365:
URL: https://github.com/apache/iceberg-python/pull/1365#issuecomment-2536298542

   Some Deprecation Examples
   
   Future Deprecation
   <img width="1196" alt="image" src="https://github.com/user-attachments/assets/cfa68721-3a60-427b-94f2-36eb346b6825" />
   
   Deprecated
   <img width="1053" alt="image" src="https://github.com/user-attachments/assets/ab8f8d1b-2d69-41fb-b191-d8218a4252f4" />
   
   Missing to remove
   <img width="1112" alt="image" src="https://github.com/user-attachments/assets/af9ce3a0-e432-4f8c-8c77-cb2340d0a1b9" />
   


-- 
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


Re: [PR] Add new standards for deprecating APIs [iceberg-python]

Posted by "ndrluis (via GitHub)" <gi...@apache.org>.
ndrluis commented on PR #1365:
URL: https://github.com/apache/iceberg-python/pull/1365#issuecomment-2496258494

   I copied the tests from Conda, but I think they aren't clear enough, so I plan to rewrite all of them.


-- 
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


Re: [PR] Add new standards for deprecating APIs [iceberg-python]

Posted by "ndrluis (via GitHub)" <gi...@apache.org>.
ndrluis closed pull request #1365: Add new standards for deprecating APIs
URL: https://github.com/apache/iceberg-python/pull/1365


-- 
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


Re: [PR] Add new standards for deprecating APIs [iceberg-python]

Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko commented on code in PR #1365:
URL: https://github.com/apache/iceberg-python/pull/1365#discussion_r1880418065


##########
pyiceberg/catalog/__init__.py:
##########
@@ -631,9 +631,9 @@ def drop_view(self, identifier: Union[str, Identifier]) -> None:
         """
 
     @deprecated(
-        deprecated_in="0.8.0",
-        removed_in="0.9.0",
-        help_message="Support for parsing catalog level identifier in Catalog identifiers is deprecated. Please refer to the table using only its namespace and its table name.",
+        deprecate_in="0.8.0",
+        remove_in="0.9.0",
+        topic="Please refer to the table using only its namespace and its table name.",

Review Comment:
   @ndrluis Sorry for not getting to this earlier. My main concern is that we might make things more complex than necessary. Why would we not use the `addendum` here? I find the `prefix` and `topic` not very intuitive, as in, it is not directly obvious to me how the deprecation warning will look like. That raises the question, should we reduce the number of options?



-- 
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


Re: [PR] Add new standards for deprecating APIs [iceberg-python]

Posted by "ndrluis (via GitHub)" <gi...@apache.org>.
ndrluis commented on code in PR #1365:
URL: https://github.com/apache/iceberg-python/pull/1365#discussion_r1880601202


##########
pyiceberg/catalog/__init__.py:
##########
@@ -631,9 +631,9 @@ def drop_view(self, identifier: Union[str, Identifier]) -> None:
         """
 
     @deprecated(
-        deprecated_in="0.8.0",
-        removed_in="0.9.0",
-        help_message="Support for parsing catalog level identifier in Catalog identifiers is deprecated. Please refer to the table using only its namespace and its table name.",
+        deprecate_in="0.8.0",
+        remove_in="0.9.0",
+        topic="Please refer to the table using only its namespace and its table name.",

Review Comment:
   I changed the topic attribute to 'addendum' and will improve the documentation to clarify the output message for each case.



-- 
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