Skip to content

DuckDB queries into structures aren't escaped correctlyΒ #170

@rsignell

Description

@rsignell

I'm trying to find all the items that contain a specific variable name, like "hurs".

The item with the "hurs" variable looks like this:

Image

and I know that WHERE "cube:variables".hurs IS NOT NULL works.

But what should the filter argument for rustac look like?

cql_json_filter = {
    "op": "is_not_null",
    "args": [
        {"property": "cube:variables.hurs"}
    ]
}
items = await rustac.search('stac_items.parquet', filter=cql_json_filter)

doesn't error, but doesn't return my item either.

I pretty sure this is some simple user syntax error, here, right?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions