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

Fixed Issue querying ACK table when no tags set on cluster Closes #425 #426

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

ParthaI
Copy link
Contributor

@ParthaI ParthaI commented Jun 4, 2024

Integration test logs

Logs
Add passing integration test logs here

Example query results

Results
Add example SQL query results here (please include the input queries as well)

@ParthaI ParthaI requested a review from misraved June 4, 2024 07:43
@ParthaI ParthaI self-assigned this Jun 4, 2024
@ParthaI ParthaI linked an issue Jun 4, 2024 that may be closed by this pull request
@misraved
Copy link
Contributor

misraved commented Jun 4, 2024

@ParthaI is it possible to use an inbuilt Transform function to check if the value of tags is null or not?

@ParthaI
Copy link
Contributor Author

ParthaI commented Jun 4, 2024

@misraved, while we have the transform function transform.NullIfZeroValue(), it's unnecessary to employ it in this scenario. Regardless of whether the value is null or not, we need to invoke the transform function csKubernetesClusterAkaTagsToMap. The null check should reside within the csKubernetesClusterAkaTagsToMap function.

@@ -504,6 +504,10 @@ func getCsKubernetesClusterARN(ctx context.Context, d *plugin.QueryData, h *plug
//// TRANSFORM FUNCTIONS

func csKubernetesClusterAkaTagsToMap(_ context.Context, d *transform.TransformData) (interface{}, error) {
if d.Value == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ParthaI if we are already checking d.Value == nil then I don't think we need the check mentioned in lines https://github.com/turbot/steampipe-plugin-alicloud/pull/426/files#diff-01756e1a7a77698610d809a8875a0ab69232965568f82bf94296fa5560ad9ce1L508-L514.

@misraved misraved merged commit 6c3bfa7 into main Jun 12, 2024
1 check passed
@misraved misraved deleted the issue-425 branch June 12, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue querying ACK table when no tags set on cluster
2 participants