Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better messaging when making incompatible changes to function signatu…
…res. (facebookincubator#7573) Summary: Fixes facebookincubator#7501 This is how the messaging will look when making incompatible changes: 1. Remove a signature (`"reverse": ["(array(T)) -> array(T)"]` -> `{"reverse": []}`) ``` Incompatible changes in function signatures have been detected. reverse has its function signature '(array(T)) -> array(T)' removed. Changing or removing function signatures breaks backwards compatibility as some users may rely on function signatures that no longer exist. ``` 2. Mutate a signature(`"reverse": ["(array(T)) -> array(T)"]}"` -> `"reverse": ["(array(T)) -> array(varchar)"]` ) ``` Incompatible changes in function signatures have been detected. 'reverse(array(T)) -> array(T)' is changed to 'reverse(array(T)) -> array(varchar)' Changing or removing function signatures breaks backwards compatibility as some users may rely on function signatures that no longer exist. ``` 3. Repeat a signature(`"reverse": ["(array(T)) -> array(T)"]` -> `"reverse": ["(array(T)) -> array(T)", "(array(T)) -> array(T)"]`) ``` Incompatible changes in function signatures have been detected. 'reverse(array(T)) -> array(T)' is repeated 2 times. Changing or removing function signatures breaks backwards compatibility as some users may rely on function signatures that no longer exist. ``` 4. Remove a udf (`"reverse": ["(array(T)) -> array(T)"]` -> ``) ``` Incompatible changes in function signatures have been detected. Function 'reverse' has been removed. Changing or removing function signatures breaks backwards compatibility as some users may rely on function signatures that no longer exist. ``` Pull Request resolved: facebookincubator#7573 Reviewed By: mbasmanova Differential Revision: D51357044 Pulled By: kgpai fbshipit-source-id: 54ece37c9b814bf71b521a2ad5baa31601987095
- Loading branch information