Code Monkey home page Code Monkey logo

Comments (4)

paulomarquesc avatar paulomarquesc commented on July 19, 2024 1

Hi @MCrank, thanks for the detailed informatio and you got it right in the last comment, the idea behind of custom filters is to allow usage of the other data types not covered by the -ColumnName parameter set. I will include your filtering example int the documentation together with another feedback I had so other people can benefit from it.

from azurermstoragetable.

MCrank avatar MCrank commented on July 19, 2024

@paulomarquesc

I have been running through some tests and think a couple of things have thrown me off. Using the Azure Storage Explorer when I look at my LSN values that I am saving as double they show up as string instead of double. Once I figured out that bug I was able to leverage a custom filter using GenerateFilterConditionForDouble which seems to be working. To test the theory I saved some as string and those were not returned. I am re-working my script now to make use of the new Az module so I can use the filter so that will take a little bit of time.

I'm going to leave this open so you can take a look. I think it would be a nice option to provide a way to filter on other datatypes without using the below. It works for sure. Just wanted to get your take. Hoping to get through this today/tomorrow. I'll post a follow up with more findings if needed.

[string]$Filter = [Microsoft.Azure.Cosmos.Table.TableQuery]::GenerateFilterConditionForDouble("LastLSNDbl",[Microsoft.Azure.Cosmos.Table.QueryComparisons]::"GreaterThan",109000002162400000)

from azurermstoragetable.

Sorensiim avatar Sorensiim commented on July 19, 2024

THANK YOU!
This has been absolutely driving me up the walls for the past couple of days! Any news on that detailed documentation, @paulomarquesc ?

from azurermstoragetable.

paulomarquesc avatar paulomarquesc commented on July 19, 2024

Hi @Sorensiim, at this link, you can find all supported filtering conditions, and you just use them the same way @MCrank posted. After you test it, please reply here with your code snippet so everyone can be helped as well since I'm going to reference this thread in the documentation.

from azurermstoragetable.

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.