Git Product home page Git Product logo

Comments (7)

mbasmanova avatar mbasmanova commented on May 30, 2024

DuckDB has a custom LIKE implementation not using regular expressions: https://github.com/duckdb/duckdb/blob/master/src/function/scalar/string/like.cpp

DuckDB folks considered switching to RE2, but found that RE2 is 2-4x slower: duckdb/duckdb#157

Same for OmniSciDB: https://github.com/omnisci/omniscidb/blob/master/Utils/StringLike.cpp#L94

CC: @biswapesh @spershin @amitkdutta

from velox.

aditi-pandit avatar aditi-pandit commented on May 30, 2024

Masha and I discussed this last week. We concluded that the current re2 based implementation is sufficient for the purpose of tpch coverage. There will be subsequent work when optimizing tpch queries.

from velox.

aditi-pandit avatar aditi-pandit commented on May 30, 2024

More changes are needed in presto_cpp for the e2e TPC-H query.

from velox.

aditi-pandit avatar aditi-pandit commented on May 30, 2024

https://github.com/facebookexternal/presto_cpp/pull/537 for presto_cpp changes

from velox.

mbasmanova avatar mbasmanova commented on May 30, 2024

@aditi-pandit Aditi, have you had a chance to check performance of LIKE to see if we need to special case starts-with, ends-with and contains expressions. E.g. can we check whether RE2 is already optimized for foo%, %bar and %foo% patterns and if not provide non-regexp implementation for such patterns.

CC: @kgpai @spershin @tanjialiang

from velox.

yingsu00 avatar yingsu00 commented on May 30, 2024

Seems this is already done. Shall we close the issue? @aditi-pandit

from velox.

aditi-pandit avatar aditi-pandit commented on May 30, 2024

@yingsu00 : I have not spent much time benchmarking the like operator. But I will open a separate issue for it and close this one.

Opened issue #872

from velox.

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.