Skip to content

zcl_enums has non-deterministic ordering when different enums have the same name #1596

@bzbarsky-apple

Description

@bzbarsky-apple

This is the case at least when used outside cluster scope: this calls selectAllEnums, which does ORDER BY DATA_TYPE.NAME, which is not going to be consistent when multiple data types have the same name.

Note that ordering by id (after ordering by name) is no good either, because the ids are themselves non-deterministic.

Ordering by ENUM_CLUSTER_COUNT would help some cases (e.g. the case I hit this in initially), but not necessarily others....

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

To Do

Relationships

None yet

Development

No branches or pull requests

Issue actions