Skip to content

Commit

Permalink
Druid lower argument fix (#3723)
Browse files Browse the repository at this point in the history
Co-authored-by: Egor Ryashin <[email protected]>

(cherry picked from commit e19116c)
  • Loading branch information
esevastyanov committed Dec 20, 2023
1 parent 65556bb commit ccec0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/queries/metricsview.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func buildFilterClauseForCondition(mv *runtimev1.MetricsViewSpec, cond *runtimev
} else {
if dialect == drivers.DialectDruid {
// Druid does not support ILIKE
clause = fmt.Sprintf("LOWER(%s) %s LIKE LOWER(?)", name, notKeyword)
clause = fmt.Sprintf("LOWER(%s) %s LIKE LOWER(CAST(? AS VARCHAR))", name, notKeyword)
} else {
clause = fmt.Sprintf("%s %s ILIKE ?", name, notKeyword)
}
Expand Down

2 comments on commit ccec0d5

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉 Published on https://ui.rilldata.com as production
🚀 Deployed on https://6582de8be2582c091ce19cea--rill-ui.netlify.app

Please sign in to comment.