Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception handling for data issues #6

Closed
3 tasks
dcmoura opened this issue Apr 16, 2021 · 0 comments · Fixed by #9
Closed
3 tasks

Exception handling for data issues #6

dcmoura opened this issue Apr 16, 2021 · 0 comments · Fixed by #9
Assignees
Labels
core Core feature
Milestone

Comments

@dcmoura
Copy link
Owner

dcmoura commented Apr 16, 2021

Exception handling is of uttermost importance. There are several situations where exceptions are raised due to the data and not to programming errors. These should be dealt with so that execution is not halted. Instead, NULL/None values should result from the evaluation (e.g. NULL/None values, JSON field missing, casting empty strings to numeric). Optionally, warnings should be sent to stderr. This issue should cover, at least the following exceptions, always returning None:

  • Operations with None values (e.g. None + 1)
  • Accessing methods/properties of None objects (e.g. None.get(...))
  • Retrieving inexistent keys from dictionaries (e.g. json['missing key'])

Note: in the future, a coalesce function should be available that is able to handle these exceptions and replacing None by a value/expression. (look into #3)

@dcmoura dcmoura added the core Core feature label Apr 16, 2021
@dcmoura dcmoura added this to the 1st release milestone Apr 16, 2021
@dcmoura dcmoura mentioned this issue Apr 16, 2021
5 tasks
@dcmoura dcmoura self-assigned this Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant