Code Monkey home page Code Monkey logo

Comments (9)

nealsid avatar nealsid commented on July 17, 2024

Just curious, why do we need to convert the predicate to a Spark filter rather than just not ignoring the parquet predicate in the BAM/SAM/VCF code path?

from adam.

nealsid avatar nealsid commented on July 17, 2024

Ah, please disregard. I thought the predicate was being ignored for BAM/SAM data inside ADAM files (the name adamLoad is confusing in this respect)

from adam.

arahuja avatar arahuja commented on July 17, 2024

I took an attempt at this here: https://github.com/hammerlab/adam/compare/predicate-bam?expand=1 Would love some feedback or alternative approaches - right now this only supports boolean equality filters.

from adam.

nealsid avatar nealsid commented on July 17, 2024

This looks good! Are you intentionally only starting with booleans for the
value to sketch out the broader approach, or am I missing something and
that will encompass all possible filters?

On Wed, Apr 16, 2014 at 2:54 PM, Arun Ahuja [email protected]:

I took an attempt at this here:
https://github.com/hammerlab/adam/compare/predicate-bam?expand=1 Would
love some feedback or alternative approaches - right now this only supports
boolean equality filters.


Reply to this email directly or view it on GitHubhttps://github.com//issues/62#issuecomment-40637624
.

from adam.

arahuja avatar arahuja commented on July 17, 2024

Yea it was for simplicity, pushed an update now for more general equality support. I hadn't realized that Parquet only supported equality filters. @fnothaft I saw you were the last contributor to Parquet on that - is there support elsewhere for other types of ColumnFilters?

Also, I see what I did only supports AND's of conditions as well.

from adam.

nealsid avatar nealsid commented on July 17, 2024

Good stuff. I wonder if it would be worth it to generalize and let people
pass in arbitrary boolean functions rather than specific values to match
against. The function could take as input the Parquet value. Would that
work? Then you could express arbitrary computation as a condition for the
record to pass.
Neal

On Wed, Apr 16, 2014 at 7:32 PM, Arun Ahuja [email protected]:

Yea it was for simplicity, pushed an update now for more general equality
support. I hadn't realized that Parquet only supported equality filters.
@fnothaft https://github.com/fnothaft I saw you were the last
contributor to Parquet on that - is there support elsewhere for other types
of ColumnFilters?

Also, I see what I did only supports AND's of conditions as well.


Reply to this email directly or view it on GitHubhttps://github.com//issues/62#issuecomment-40665152
.

from adam.

fnothaft avatar fnothaft commented on July 17, 2024

Nice! Indeed, this does look cool, and like a nice approach.

@arahuja I've actually added code to Parquet that supports arbitrary predicate functions. These are the "applyFunctionTo*" predicates. If you've got any questions about the predicate functions, or would like any changes made to them, let me know. I'd be glad to help on this, or to work on anything that'd make the predicates easier to use.

from adam.

tdanford avatar tdanford commented on July 17, 2024

@arahuja @fnothaft Is this issue still live, or can it be closed?

from adam.

fnothaft avatar fnothaft commented on July 17, 2024

Closed by #234.

from adam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.