Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: respect builtin semantic types (#16679)

h3n4le07c29b2520f
diff --git a/backend/api/v1/sql_service.go b/backend/api/v1/sql_service.go
index 3ede70716a..97eaa306f4 100644
--- a/backend/api/v1/sql_service.go
+++ b/backend/api/v1/sql_service.go
@@ -614,6 +614,10 @@ func buildSemanticTypeToMaskerMap(ctx context.Context, stores *store.Store) (map
return nil, errors.Wrap(err, "failed to get semantic types setting")
}
for _, semanticType := range semanticTypesSetting.GetTypes() {
+ if semanticType.GetId() == "bb.default" || semanticType.GetId() == "bb.default-partial" {
+ // Skip the built-in default semantic types.
+ continue
+ }
masker, err := getMaskerByMaskingAlgorithmAndLevel(semanticType.GetAlgorithm())
if err != nil {
return nil, err