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

ClojureFilter receiving no fields in filterCall arguments in Cascalog 2.0 #214

Open
dkincaid opened this issue Nov 26, 2013 · 1 comment
Labels

Comments

@dkincaid
Copy link
Contributor

A JCascalog CascalogFilter that we are using isn't getting any fields passed in as part of the filterCall argument.

Here is the filter:

private static class FilterNullContentTypes extends CascalogFilter {
        @Override public boolean isKeep(FlowProcess process, FilterCall filterCall) {
            int i = filterCall.getArguments().getFields().getPos("!content-type");
            String value = filterCall.getArguments().getTuple().getString(i);
            return !StringUtils.hasText(value);
        }
    }

filterCall.getArguments() is returning: "fields: [NONE] tuple: []"

The SubQuery where it is being used looks like this:

        Subquery filterQuery = new Subquery("?practice-id", "!create-date", "!content-type", "?patientid",
                "?source", "?create_timestamp")
                .predicate(outerJoinQuery, "?practice-id", "!create-date", "!content-type", "?patientid", "?source",
                        "?create_timestamp")
                .predicate(new FilterNullContentTypes());
@sritchie
Copy link
Collaborator

Hey @dkincaid, is this still an issue? Would love a pull req if you guys have come across a workaround. Thanks!

@sritchie sritchie added the Bug label Apr 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants