Fix historic SQL ingest setup and progress

This commit is contained in:
Andrey Avtomonov 2026-05-11 22:35:07 +02:00
parent f3f6b36551
commit 1bd29c7eb1
14 changed files with 877 additions and 34 deletions

View file

@ -61,10 +61,10 @@ def _column_name(column: exp.Column) -> str:
return str(column.name)
def _columns_from_nodes(nodes: list[exp.Expression | None]) -> list[str]:
def _columns_from_nodes(nodes: list[object]) -> list[str]:
names: list[str] = []
for node in nodes:
if node is None:
if not isinstance(node, exp.Expression):
continue
names.extend(_column_name(column) for column in node.find_all(exp.Column))
return _ordered_unique(names)