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

Allow a DeferredDatasetHandle to be passed to a Functor #445

Merged
merged 3 commits into from Jan 4, 2021

Conversation

timothydmorton
Copy link
Contributor

For gen3 compatibility, this allows for a DeferredDatasetHandle to be be passed to a functor's call method, rather than the gen2 parquet interface ParquetTable object. All currently tested Functor functionality is also tested here for the gen3 model. Backward compatibility with gen2 is maintained. N.B.: the gen3 functor performance will likely be slower than the gen2 performance; remains to be seen if this matters at all.

Further note, this commit had previously broken ci_hsc because of one line where I had accidentally left a raise instead of continuing on to use a .fail() method (had been in there for debugging purposes and removal should pass ci_hsc).

For gen3 compatibility, this allows for a DeferredDatasetHandle
to be be passed to a functor's __call__ method, rather than the
gen2 parquet interface ParquetTable object.  All currently tested
Functor functionality is also tested here for the gen3 model.  Backward
compatibility with gen2 is maintained.  N.B.: the gen3 functor performance
will likely be slower than the gen2 performance; remains to be seen if this
matters at all.
In practical CompositeFunctor use cases (e.g. in ci_hsc), sometimes there are
non-existent columns that are requested.  This tests to make sure they execute
without breaking.
The cases where the ParquetTable object has a _pf attribute
already correctly drops non-existent columns and then requests
only the cleaned column list; this corrects that for the case
where _pf is none and _df is set.
@timothydmorton timothydmorton merged commit c7b2eda into master Jan 4, 2021
@timothydmorton timothydmorton deleted the tickets/DM-27008 branch January 4, 2021 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant