You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/03/01 02:00:09 UTC

[GitHub] [spark] Ngone51 edited a comment on pull request #31684: [SPARK-34571][SQL][CORE] Provide a more convenient way to deprecate/remove/alternate configs

Ngone51 edited a comment on pull request #31684:
URL: https://github.com/apache/spark/pull/31684#issuecomment-787581992


   > I think if you propose new approach, you should restore all removed configs and make them as .removed() then. Don't think it is good idea to maintain two approach at the same time.
   
   Yeah, I was thinking that too. But I'd like to see people's feedback before going further.
   
   > IMHO, gathering all removed/deprecated configs in one place is convenient. 
   
   I think it's convenient (fast) for people to know what are deprecated or removed configs now. I think u But it's not convenient for developers to maintain. For example, to deprecate a config with the current way, a developer needs to manually add `DepracatedConfig` to the deprecated list. And if the config is going to be removed in the future, the developer has to remove the `DepracatedConfig` from the deprecated list and add `RemovedConfig` to the removed list. And this process could be problematic because these two config types are separated in two places. e.g., developers may forget to remove the `DepracatedConfig` one. While with the proposed way in this PR, the developer only needs to add `deprecated()` and change from `deprecated()` to `removed()` later.
   
   > Currently, removed configs are actually removed but you propose to keep them forever (just mark them as removed), am I right?
   
   Yes. But those removed configs don't disappear from Spark totally as they are still maintained in the way of `RemovedConfig`.


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

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



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org