Code Monkey home page Code Monkey logo

Comments (9)

Lordworms avatar Lordworms commented on August 25, 2024 1

take

from arrow-datafusion.

alamb avatar alamb commented on August 25, 2024 1

I am not sure @Lordworms -- maybe @waynexia or @Blizzara have more context / understanding

@richtia does this request come from a particular query you are runniing?

from arrow-datafusion.

richtia avatar richtia commented on August 25, 2024 1

My preference would actually be to add the function as well. The request came from trying to run a query with the contains function.

from arrow-datafusion.

Blizzara avatar Blizzara commented on August 25, 2024 1

+1 to adding the function into DataFusion (+ the relevant mapping into Substrait) if it doesn't exist yet.

Seems like Arrow has a contains function but I cannot find it in DataFusion so maybe it doesn't indeed exist yet, dunno if the Arrow version can somehow be easily used?

from arrow-datafusion.

Lordworms avatar Lordworms commented on August 25, 2024 1

+1 to adding the function into DataFusion (+ the relevant mapping into Substrait) if it doesn't exist yet.

Seems like Arrow has a contains function but I cannot find it in DataFusion so maybe it doesn't indeed exist yet, dunno if the Arrow version can somehow be easily used?

Sure, I'll file a PR later today

from arrow-datafusion.

richtia avatar richtia commented on August 25, 2024 1

Yeah, duckdb has a contains function as well as the substrait support. The same substrait plans that gave me the datafusion errors were able to execute against the DuckDB substrait consumer.

from arrow-datafusion.

Lordworms avatar Lordworms commented on August 25, 2024

Do we really need this conversion? what about adding a new ScalarFunction 'contains'? @alamb I would like to receive your advice here.

from arrow-datafusion.

richtia avatar richtia commented on August 25, 2024

+1 to adding the function into DataFusion (+ the relevant mapping into Substrait) if it doesn't exist yet.

Seems like Arrow has a contains function but I cannot find it in DataFusion so maybe it doesn't indeed exist yet, dunno if the Arrow version can somehow be easily used?

I didn't see the function in DataFusion either. I also couldn't find it in Arrow, at least not under any compute function.

from arrow-datafusion.

Lordworms avatar Lordworms commented on August 25, 2024

+1 to adding the function into DataFusion (+ the relevant mapping into Substrait) if it doesn't exist yet.
Seems like Arrow has a contains function but I cannot find it in DataFusion so maybe it doesn't indeed exist yet, dunno if the Arrow version can somehow be easily used?

I didn't see the function in DataFusion either. I also couldn't find it in Arrow, at least not under any compute function.

image I think DuckDB got a similar function, let me know if it is ok for me to implement similar behavior like this

from arrow-datafusion.

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.