Bladeren bron

fix: Double quote table name in Athena query to handle cases were table name does not begin with an alphabet (#2305)

Signed-off-by: Vivian Ta <ta.vivian@gmail.com>
Co-authored-by: Vivian Ta <vivianta@rivian.com>
visokoo 2 jaren geleden
bovenliggende
commit
836fbfeb41
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      pkg/cloud/aws/athenaintegration.go

+ 1 - 1
pkg/cloud/aws/athenaintegration.go

@@ -147,7 +147,7 @@ func (ai *AthenaIntegration) GetCloudCost(start, end time.Time) (*kubecost.Cloud
 	groupByStr := strings.Join(groupByColumns, ", ")
 	queryStr := `
 		SELECT %s
-		FROM %s
+		FROM "%s"
 		WHERE %s
 		GROUP BY %s
 	`