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

Empty tables argument raises MissingDateError even if data for the given dates is present #436

Closed
maxalbert opened this issue Feb 28, 2019 · 0 comments · Fixed by #4367
Closed
Labels
bug Something isn't working FlowMachine Issues related to FlowMachine

Comments

@maxalbert
Copy link
Contributor

Describe the bug
Passing an empty tables argument (e.g. to EventTablesUnion) raises a MissingDateError even if data for the given dates are present.

Product
Flowmachine

Version
Current master

To Reproduce

>>> from flowmachine.features import EventsTablesUnion
>>> EventsTablesUnion("2016-01-01", "2016-01-02", columns=["msisdn"], tables=[])

MissingDateError: No data for date: 2016-01-01 - 2016-01-02

Expected behavior
A more meaningful error should be raised to indicate that the tables argument must not be empty.

A fix will be included in an upcoming PR, I just wanted to have an issue for this to have it tracked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working FlowMachine Issues related to FlowMachine
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants