Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional key columns are not working in the List hydrate call in Steampipe SDK v5. #469

Closed
bigdatasourav opened this issue Dec 22, 2022 · 0 comments · Fixed by #471
Closed
Labels
bug Something isn't working

Comments

@bigdatasourav
Copy link

bigdatasourav commented Dec 22, 2022

Optional key columns are not working in the List hydrate call when passed in the query.

In SDK v5, we are using plugin.QueryData.EqualsQuals instead of plugin.QueryData.KeyColumnQuals to fetch optional column value. But EqualsQuals is unable to fetch value in the List hydrate call. However, in Get hydrate call it is working fine.

Facing the issue in the Kubernetes plugin, already updated in SDK v5.

To Reproduce -

  1. Need to put a logger in the list function like below -
    plugin.Logger(ctx).Error("Optional key value:", d.EqualsQuals["phase"].GetStringValue())
  2. make
  3. select * from kubernetes_pod where phase = 'Running' (phase is an optional column in List hydrate)
  4. check in the plugin log file if it logs the value.
@bigdatasourav bigdatasourav added the bug Something isn't working label Dec 22, 2022
@kaidaguerre kaidaguerre linked a pull request Jan 3, 2023 that will close this issue
kaidaguerre added a commit that referenced this issue Jan 4, 2023
…hich were sometimes not working for dynamic plugins. Closes #469
kaidaguerre added a commit that referenced this issue Jan 4, 2023
…hich were sometimes not working for dynamic plugins. Closes #469
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant