mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
fix: address review feedback on Databricks/Snowflake docs (PR #808)
- README: get_table_lineage() takes table_name first, then catalog/schema keyword args — the example had them in the wrong order, which would have queried lineage for the wrong fully-qualified table when copy-pasted. - modules.md: the ingest example used DatabricksIngestor without importing it, causing a NameError if copy-pasted as-is. - guides/ingest.md: corrected the claim that Databricks/Snowflake ingestors return "the same shape as DBIngestor" — DBIngestor.execute_query() returns a raw List[Dict] with no wrapper, unlike DatabricksData/SnowflakeData.
This commit is contained in:
@@ -376,7 +376,7 @@ databricks = DatabricksIngestor(
|
||||
)
|
||||
customers = databricks.ingest_table("customers", limit=10_000)
|
||||
sales = databricks.ingest_query("SELECT * FROM sales WHERE region = 'EMEA'")
|
||||
table_lineage = databricks.get_table_lineage("main", "sales", "customers") # Unity Catalog lineage
|
||||
table_lineage = databricks.get_table_lineage("customers", catalog="main", schema="default") # Unity Catalog lineage
|
||||
|
||||
# pip install semantica[db-snowflake]
|
||||
snowflake = SnowflakeIngestor(
|
||||
|
||||
Reference in New Issue
Block a user