Nike-Inc / koheesio

Python framework for building efficient data pipelines. It promotes modularity and collaboration, enabling the creation of complex pipelines from simple, reusable components.
https://engineering.nike.com/koheesio/
Apache License 2.0
599 stars 19 forks source link

[FEATURE] Exists function in DeltaTableStep should not log error #70

Closed femilian-6582 closed 2 weeks ago

femilian-6582 commented 3 weeks ago

… run black

Description

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

34

Motivation and Context

Improving logging by making more informative and adeguate to the use case.

How Has This Been Tested?

By adding unit tests that verify the log message contains a certain string.

Screenshots (if appropriate):

Types of changes

Checklist: