go-graphite / carbonapi

Implementation of graphite API (graphite-web) in golang
Other
309 stars 140 forks source link

Fix toUpperCase and toLowerCase to process queries that use correct function names #770

Closed carrieedwards closed 1 year ago

carrieedwards commented 1 year ago

The functions toUpperCase and toLowerCase, as described in the graphite-web documentation, are using the incorrect function names. The correct function name for toUpperCase is upper and the correct function name for toLowerCase is lower. This is shown here in the Graphite web code. Using a query with toUpperCase or toLowerCase also fails in Graphite web.

Because the documentation shows the functions names as toUpperCase and toLowerCase, this PR leaves those as acceptable function names to use in queries.