Files
Alan WuandGitHub a3a96c8e5e Support CHASM Count Group By Filtering (#8754)
Support CHASM Count "Group By" Filtering.

## What changed?
* Adds implementation of CHASM Count Executions `Group By` Filter
support.
* Unifies `visibility_store.go` implementation to get count execution
info.
* Adds functional tests for validation.

## Why?
Needed to unblock standalone activities, and fully support CHASM Count
Execution requirements.

## How did you test it?
- [X] built
- [X] run locally and tested manually
- [X] covered by existing tests
- [X] added new unit test(s)
- [X] added new functional test(s)
2025-12-05 20:10:29 -05:00

17 lines
528 B
Go

package store
import (
"maps"
enumspb "go.temporal.io/api/enums/v1"
"go.temporal.io/server/chasm"
"go.temporal.io/server/common/searchattribute"
)
func CombineTypeMaps(customTypeMap searchattribute.NameTypeMap, chasmTypeMap *chasm.VisibilitySearchAttributesMapper) searchattribute.NameTypeMap {
combinedTypeMap := make(map[string]enumspb.IndexedValueType)
maps.Copy(combinedTypeMap, customTypeMap.Custom())
maps.Copy(combinedTypeMap, chasmTypeMap.SATypeMap())
return searchattribute.NewNameTypeMap(combinedTypeMap)
}