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
@@ -55,9 +55,7 @@ def _definition_from_schema(
raise ValueError(f"Table '{name}' is not a materialized view")
value = json.loads(raw)
kind = value.get("kind")
# "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 kind not in ("select", "namespaced_select"):
raise NotImplementedError(
f"materialized view '{name}' is defined by '{kind}', which this "