Skip to content

Weirdness with filter.  #15

@RobertPHeller

Description

@RobertPHeller

I am getting weird results with the filter parameter:

sauron% curl -L "https://script.google.com/macros/s/AKfycbwz3mAVQlt4OGxorkKPiyx0PCaQSY0T0RJ1YItca60RGBlt5yHw45XeLn8sHu9DpCymRQ/exec?url=/api/officials&limit=0&apiKey=d08Low0RV7yL&filter=lower(office)+contains+'selectboard'"
[]sauron% curl -L "https://script.google.com/macros/s/AKfycbwz3mAVQlt4OGxorkKPiyPCaQSY0T0RJ1YItca60RGBlt5yHw45XeLn8sHu9DpCymRQ/exec?url=/api/officials&limit=0&apiKey=d08Low0RV7yL&filter=lower(office)+contains+'selec'"
[{"office":"Selectboard","name":"Laurie DiDonato","term":"2024","electedp":true,"index":29},{"office":"Selectboard","name":"Gillian Budine","term":"2022","electedp":true,"index":30},{"office":"Selectboard","name":"Dan Keller","term":"2023","electedp":true,"index":31},{"office":"Selectboard Clerk","name":"Joy Gorzocoski","term":"2020","electedp":false,"index":168},{"office":"Selectboard Clerk","name":"Liam DiDonato","term":"2020","electedp":false,"index":169}]
sauron% curl -L "https://script.google.com/macros/s/AKfycbwz3mAVQlt4OGxorkKPiyPCaQSY0T0RJ1YItca60RGBlt5yHw45XeLn8sHu9DpCymRQ/exec?url=/api/officials&limit=0&apiKey=d08Low0RV7yL&filter=lower(office)+contains+'selec'"
[{"office":"Selectboard","name":"Laurie DiDonato","term":"2024","electedp":true,"index":29},{"office":"Selectboard","name":"Gillian Budine","term":"2022","electedp":true,"index":30},{"office":"Selectboard","name":"Dan Keller","term":"2023","electedp":true,"index":31},{"office":"Selectboard Clerk","name":"Joy Gorzocoski","term":"2020","electedp":false,"index":168},{"office":"Selectboard Clerk","name":"Liam DiDonato","term":"2020","electedp":false,"index":169}]

sauron% curl -L "PCaQSY0T0RJ1YItca60RGBlt5yHw45XeLn8sHu9DpCymRQ/exec?url=/api/officials&limit=0&apiKey=d08Low0RV7yL&filter=lower(office)+contains+'select'"
[]

I want to select all Selectboard members, but it looks like lower('Selectboard') contains 'selec', but that lower('Selectboard') does NOT contain 'select'. Huh? What is going on here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions