steampipe-plugin-sdk icon indicating copy to clipboard operation
steampipe-plugin-sdk copied to clipboard

fix: always include filtered matrix item in cache key

Open pdecat opened this issue 2 months ago • 0 comments

Without this PR, when using matrix items (that I'm adding to the OVH plugin in https://github.com/francois2metz/steampipe-plugin-ovh/pull/74), queries such as the following are missing items when removing the filtered matrix item column, and clearing the cache resolves the issue:

> select name, region from ovh_perso.ovh_cloud_storage_s3 where project_id = '2cf14530bc1e4ba5a3ae44fbd4cbe866' and region = 'GRA'
+---------------+--------+
| name          | region |
+---------------+--------+
| test-pdecat-1 | GRA    |
+---------------+--------+
1 row

> select name, region from ovh_perso.ovh_cloud_storage_s3 where project_id = '2cf14530bc1e4ba5a3ae44fbd4cbe866'
+---------------+--------+
| name          | region |
+---------------+--------+
| test-pdecat-1 | GRA    |
+---------------+--------+
1 row

> .cache clear
> select name, region from ovh_perso.ovh_cloud_storage_s3 where project_id = '2cf14530bc1e4ba5a3ae44fbd4cbe866'
+---------------+-------------+
| name          | region      |
+---------------+-------------+
| test-pdecat-1 | GRA         |
| test-pdecat-3 | EU-WEST-PAR |
+---------------+-------------+
2 rows

pdecat avatar Oct 31 '25 09:10 pdecat