style: trim comments and take the namespace builders to house signatures

The kind constants and the boundary tests said the same thing in several
places; one explanation each now. The builder methods take `Vec<String>`
like every other `namespace` builder in the crate.
This commit is contained in:
Wyatt Alt
2026-08-31 19:04:22 +00:00
parent a9de0ea817
commit 0be0765329
3 changed files with 20 additions and 37 deletions
+1 -3
View File
@@ -80,9 +80,7 @@ export function definitionFromMetadata(
}
// biome-ignore lint/suspicious/noExplicitAny: raw JSON
const value: any = JSON.parse(raw);
// "select" is the root-namespace form; "namespaced_select" carries a
// source namespace, a separate kind so older readers refuse it rather
// than silently resolving the source at the root.
// "namespaced_select" keeps older readers from resolving the source at root.
if (value.kind !== "select" && value.kind !== "namespaced_select") {
throw new Error(
`materialized view '${name}' is defined by '${value.kind}', which this ` +