Git Product home page Git Product logo

Comments (4)

sphuber avatar sphuber commented on July 17, 2024 1

This is due to the fact that not all querybuilder syntax is supported by the sqlite implementation. In this case particularly, the has_key filter does not work properly. The test that fails relies on the following query not returning anything (aiida.orm.utils.remote:get_calcjob_remote_paths):

    if only_not_cleaned is True:
        filters_remote['or'] = [
            {f'extras.{RemoteData.KEY_EXTRA_CLEANED}': {'!==': True}},
            {'extras': {'!has_key': RemoteData.KEY_EXTRA_CLEANED}},
        ]

not returning anything. But for the sqlite implementation it ignores that statement.

I am not sure if the implementation could in principle support this filtering key. Haven't looked into it in too much detail either, so might still be worth a shot.

from aiida-core.

sphuber avatar sphuber commented on July 17, 2024

Closing as duplicate of #6256

from aiida-core.

danielhollas avatar danielhollas commented on July 17, 2024

One thing that makes me worried here: This seems to be a silent error? Should we raise explicitly if user tries to use code that uses this unsupported feature?

from aiida-core.

sphuber avatar sphuber commented on July 17, 2024

That would perhaps be a necessary stop-gap solution until it can be implemented for sqlite, if ever. Let's discuss that in #6256

from aiida-core.

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.