Skip to content

Commit

Permalink
chore: scrape normalized_query_hash as string value instead of uint64…
Browse files Browse the repository at this point in the history
… from system.query_log table (#320)
  • Loading branch information
raj-k-singh authored May 16, 2024
1 parent 275a1e6 commit 453a1a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions receiver/clickhousesystemtablesreceiver/query_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type QueryLog struct {
FormattedQuery string `ch:"formatted_query"`
QueryKind string `ch:"query_kind"`
// Identical hash value without the values of literals for similar queries.
NormalizedQueryHash uint64 `ch:"normalized_query_hash"`
NormalizedQueryHash string `ch:"normalized_query_hash"`

// Names of the databases present in the query.
Databases []string `ch:"databases"`
Expand Down Expand Up @@ -224,7 +224,7 @@ func scrapeQueryLogTable(
query,
formatted_query,
query_kind,
normalized_query_hash,
toString(normalized_query_hash) as normalized_query_hash,
databases,
tables,
columns,
Expand Down

0 comments on commit 453a1a9

Please sign in to comment.