Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Exists function in DeltaTableStep should not log error (#70)
… run black <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> The `exists` function of the `DeltaTableStep` should notify the user about the non existence of the table with a different log level depending on the value of the `create_if_not_exists` boolean flag (whereas now it is logging always with level error). If the flag is True than the log level is set to info. If the flag is False than the log level is set to error. A possible alternative is to set the log level always to info or warning but this solution proposed already by the reporter looks more informative. ## Related Issue <!--- This project only accepts pull requests related to open issues --> <!--- If suggesting a new feature or change, please discuss it in an issue first --> <!--- If fixing a bug, there should be an issue describing it with steps to reproduce --> <!--- Please link to the issue here: --> #34 ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> Improving logging by making more informative and adeguate to the use case. ## How Has This Been Tested? <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> By adding unit tests that verify the log message contains a certain string. ## Screenshots (if appropriate): ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Checklist: <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [x] My code follows the code style of this project. - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [x] I have read the **CONTRIBUTING** document. - [x] I have added tests to cover my changes. - [ ] All new and existing tests passed. --------- Co-authored-by: Danny Meijer <[email protected]>
- Loading branch information