GithubHelp home page GithubHelp logo

Comments (3)

bwhisler avatar bwhisler commented on June 4, 2024

We'd like to better understand these aerospike.null() bins. Are records being written by the Python client with a bin value of aerospike.null() and stored in the database? And then the client reads the record back and finds a bin with an aerospike.null() value in it? This seems odd, as we'd expect that writing a bin with a null value would delete the bin. How exactly are these records being written? Knowing this I think we could determine why a UDF would not see the bin and perhaps make an adjustment as needed.

Regarding GeoJSON, there are currently no plans to add support for Geo queries in UDFs.

from aerospike-mod-lua.

vVv-AA avatar vVv-AA commented on June 4, 2024

@bwhisler Sorry for the jumping the gun here. I rechecked the code. It is working as intended. aerospike.null() is not returned. When reading the bins, there was a default value being passed in some part of the code. Missed that part. Closing the issue. Thanks.

I also, misunderstood the as_bin_inuse then. Since the null bins are not stored, what do AS_PARTICLE_TYPE_NULL and AS_BIN_STATE_UNUSED correspond to?

from aerospike-mod-lua.

bwhisler avatar bwhisler commented on June 4, 2024

Both AS_PARTICLE_TYPE_NULL and AS_BIN_STATE_UNUSED are used internally to help manage a bin array as a record is being processed. We'll typically allocate an (oversized) array of bins when processing a record, and those NULL/UNUSED constants help indicate how much of the internal bin array is actually needed to handle the record in question.

from aerospike-mod-lua.

Related Issues (3)

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.