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)
| 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) |
no test coverage detected