Azure: Improved column handling in logs query builder (#114667)

* Add parameter type field

* Use parameterType to filter columns for aggregation funcs

* Add tests for aggregate components
This commit is contained in:
Andreas Christou
2025-12-04 12:48:55 +00:00
committed by GitHub
parent d92898888c
commit ff4228bd58
9 changed files with 556 additions and 13 deletions
@@ -223,6 +223,8 @@ func NewBuilderQueryEditorPropertyExpression() *BuilderQueryEditorPropertyExpres
type BuilderQueryEditorProperty struct {
Type BuilderQueryEditorPropertyType `json:"type"`
Name string `json:"name"`
// Optional parameter type for function properties
ParameterType *BuilderQueryEditorReduceParameterTypes `json:"parameterType,omitempty"`
}
// NewBuilderQueryEditorProperty creates a new BuilderQueryEditorProperty object.
@@ -242,6 +244,13 @@ const (
BuilderQueryEditorPropertyTypeInterval BuilderQueryEditorPropertyType = "interval"
)
type BuilderQueryEditorReduceParameterTypes string
const (
BuilderQueryEditorReduceParameterTypesGeneric BuilderQueryEditorReduceParameterTypes = "generic"
BuilderQueryEditorReduceParameterTypesNumeric BuilderQueryEditorReduceParameterTypes = "numeric"
)
type BuilderQueryEditorExpressionType string
const (