grafana/pkg/expr
Sam Jewell 4bd5f29e05
SQL Expressions: Allow more functions (#102011)
I used Cursor and Claude 3.7 thinking to expand the list of functions
we allow. Specifically I needed `abs`.

TODO: Check each of these in the official MySQL docs to ensure they
are all safe:
eg. this doc: https://dev.mysql.com/doc/refman/8.4/en/flow-control-functions.html#operator_case
2025-03-12 11:39:48 +00:00
..
classic Hackaton: Add more unit tests, take 3 (#101525) 2025-03-05 08:00:12 +01:00
mathexp SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
ml Alerting: Log expression command types during evaluation (#84614) 2024-03-19 10:00:03 -04:00
sql SQL Expressions: Allow more functions (#102011) 2025-03-12 11:39:48 +00:00
commands.go Alerting: Log expression command types during evaluation (#84614) 2024-03-19 10:00:03 -04:00
commands_test.go Expressions: Add model struct for the query types (not map[string]any) (#82745) 2024-02-17 02:59:11 +02:00
convert_to_long.go SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
convert_to_long_test.go SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
converter.go SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
converter_test.go SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
dataplane.go Expressions: sort numeric metrics behind feature toggle (#85911) 2024-04-16 10:52:47 -04:00
dataplane_test.go Expressions: sort numeric metrics behind feature toggle (#85911) 2024-04-16 10:52:47 -04:00
errors.go Chore: Move identity and errutil to apimachinery module (#89116) 2024-06-13 07:11:35 +03:00
errors_test.go Chore: Move identity and errutil to apimachinery module (#89116) 2024-06-13 07:11:35 +03:00
graph.go SQL Expressions: Add cell-limit for input dataframes (#101700) 2025-03-11 17:14:33 +00:00
graph_test.go SQL Expressions: Add cell-limit for input dataframes (#101700) 2025-03-11 17:14:33 +00:00
hysteresis.go Chore: Bump Go to 1.23.0 (#92105) 2024-08-21 11:40:42 -04:00
hysteresis_test.go SSE: Threshold expression to use simple functions (#86062) 2024-04-16 13:35:41 -04:00
metrics.go SSE: (Instrumentation/Chore) Add datasource_type label to grafana_sse (#72370) 2023-07-26 10:51:02 -04:00
ml.go SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
ml_test.go Chore: Remove plugincontext.ErrPluginNotFound (#74997) 2023-09-25 13:10:47 +03:00
nodes.go SQL Expressions: Add cell-limit for input dataframes (#101700) 2025-03-11 17:14:33 +00:00
nodes_test.go Dynatrace: Add to list of DS with custom label logic (#90258) 2024-07-15 10:18:54 +02:00
query.go expr: add explicit strict-mode const (#94838) 2024-10-18 10:46:27 +02:00
query.panel.example.json Expressions: Create json schema for query types (#84032) 2024-03-26 06:58:56 +02:00
query.panel.schema.json Alerting: Add multiple threshold operators (#99516) 2025-02-21 19:11:16 +02:00
query.request.example.json Expressions: Create json schema for query types (#84032) 2024-03-26 06:58:56 +02:00
query.request.schema.json Alerting: Add multiple threshold operators (#99516) 2025-02-21 19:11:16 +02:00
query.types.json Alerting: Add multiple threshold operators (#99516) 2025-02-21 19:11:16 +02:00
query_test.go Expressions: Create json schema for query types (#84032) 2024-03-26 06:58:56 +02:00
reader.go SQL Expressions: Add cell-limit for input dataframes (#101700) 2025-03-11 17:14:33 +00:00
reader_test.go expr: improved test (#94837) 2024-10-18 10:31:58 +02:00
service.go SQL Expressions: Re-implement feature using go-mysql-server (#99521) 2025-02-06 07:27:28 -05:00
service_sql_test.go SQL Expressions: Simplify test code (#101718) 2025-03-06 17:02:31 +00:00
service_test.go SQL Expressions: Add cell-limit for input dataframes (#101700) 2025-03-11 17:14:33 +00:00
sql_command.go SQL Expressions: Add cell-limit for input dataframes (#101700) 2025-03-11 17:14:33 +00:00
sql_command_test.go SQL Expressions: Add cell-limit for input dataframes (#101700) 2025-03-11 17:14:33 +00:00
testing.go Requester: Remove duplicated function (#97038) 2024-11-26 15:29:31 +01:00
threshold.go Alerting: Add multiple threshold operators (#99516) 2025-02-21 19:11:16 +02:00
threshold_bench_test.go SSE: Threshold expression to use simple functions (#86062) 2024-04-16 13:35:41 -04:00
threshold_test.go Alerting: Add multiple threshold operators (#99516) 2025-02-21 19:11:16 +02:00
transform.go Chore: Move identity and errutil to apimachinery module (#89116) 2024-06-13 07:11:35 +03:00