mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
CATEGORY_LABEL_EXPR wraps the classifying CASE, so it only works where the classification happens in the same SELECT. A report that classifies in a subquery and labels in the wrapper has a plain key column to label instead. CATEGORY_LABEL_OF takes that key expression; CATEGORY_LABEL_EXPR is now defined through it, so its three existing callers are unchanged. Mirrors CATEGORY_LABEL_OF in operations-classification.ts. Claude-Session: https://claude.ai/code/session_01LoY3hNWqcaAC1pYmGPN7jr