MCPcopy Create free account
hub / github.com/PostHog/duckgres / isDeltaCatalogEmptyError

Function isDeltaCatalogEmptyError

server/server.go:1790–1795  ·  view source on GitHub ↗

isDeltaCatalogEmptyError reports whether err indicates the Delta location exists but contains no Delta transaction log yet (the common case for a fresh DuckLake tenant under the always-on Delta default). The DuckDB Delta extension surfaces this as "No files in log segment" via DeltaKernel.

(err error)

Source from the content-addressed store, hash-verified

1788 if migrate {
1789 targetVersion := dlCfg.SpecVersion
1790 if targetVersion == "" {
1791 targetVersion = DefaultDuckLakeSpecVersion
1792 }
1793 slog.Info("Attaching DuckLake catalog with automatic migration.",
1794 "from", ducklake.MigrationCheckedVersion(dlCfg.MetadataStore), "to", targetVersion,
1795 "metadata", redactConnectionString(dlCfg.MetadataStore))
1796 } else if dataPath != "" {
1797 slog.Info("Attaching DuckLake catalog with data path.",
1798 "metadata", redactConnectionString(dlCfg.MetadataStore), "data", dataPath)

Callers 1

AttachDeltaCatalogFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected