Repository navigation
Accept the plain abfs scheme on the DataLake catalog read path - #131389
Conversation
OneLake reports the locations of Fabric-written tables with the plain `abfs://` scheme, and reading them failed with `Unsupported storage type: abfs://`. `tryParseStorageTypeFromString` mapped only `abfss` to `Azure`, and `fillBlobsFromURLCommon` parsed only `abfss` URLs, so fixing the first alone moved the failure one layer down. Both now accept `abfs` and `abfss`, which name the same ADLS Gen2 storage. The scheme selects the storage engine, not the wire protocol: the OneLake endpoint is always built as `https://`. Closes: #131292 Related: ClickHouse/clickhouse-private#87864
|
Workflow [PR], commit [06b9f83] AI ReviewSummaryThe PR accepts Findings❌ Blockers
Tests
Missing context / blind spots
Final Verdict❌ Block — preserve single-segment table paths and add regression coverage. The earlier resolved thread needs no further action. |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Slowest function optimization changes (ThinLTO)Median per-function time ratio to the master baseline:
Compile time of recompiled translation units8 translation units recompiled, 18 s compile time in total, 8 of them have a recent master baseline. |
`TableMetadata::getMetadataLocation` removed only the exact scheme of the table location, so a catalog that reports the table location with `abfs://` and the metadata location with `abfss://` (or the reverse) got the whole URI back, and `resolvePathInsideTable` appended it to the table path. Both spellings name the same ADLS Gen2 storage, so either is now removed when the table is on ABFS. #131389 (comment)
| // Sample abfss url : abfss://[email protected]/subdirectory/file.txt | ||
| if (connection_url.starts_with("abfss")) | ||
| /// `abfs` and `abfss` name the same ADLS Gen2 storage; both carry `://` so a near-prefix scheme like `abfsx://` is not matched. | ||
| if (connection_url.starts_with("abfss://") || connection_url.starts_with("abfs://")) |
There was a problem hiding this comment.
[Blocker] Preserve single-segment table paths on the newly accepted Azure route
A valid Unity/REST catalog location such as abfs://[email protected]/table now reaches this branch, but fillBlobsFromURLCommon returns an empty blob_path.path instead of table. The preceding split at lines 199–207 only saves the path when the part after the host contains another /; here that part is just table, so it is discarded. The account and container still parse successfully.
StorageAzureConfiguration::initializeFromParsedArguments copies that empty path unchanged. Consequently, the Azure Delta reader opens the container-root _delta_log instead of table/_delta_log; the REST Iceberg route likewise resolves a relative catalog metadata pointer against the container root. These newly accepted table locations remain unreadable. A standalone reproduction using the verbatim parser confirms that table becomes empty while table/ and dir/table are preserved.
The split predates this PR, but the new scheme support routes these inputs through it. Please retain the complete path after the authority for both ABFS spellings and add a regression assertion for blob_path.path == "table". The added parser tests currently check only the account and container, so they miss this loss.
|
@fm4v we'd need the |
|
|
Backport #131389 to 26.10: Accept the plain `abfs` scheme on the DataLake catalog read path
Backport #131389 to 26.9: Accept the plain `abfs` scheme on the DataLake catalog read path
The job is in `CORE_BLOCKING_JOB_NAMES` of the PR workflow, so stage 2 (about 145 jobs) waits for it. Its sequential tests take about 48 minutes in total, so it ended about 25 minutes after the rest of the gate on most PR runs. With two hash batches each one takes about 24 minutes of tests, in line with the other gate jobs. Example: https://github.com/ClickHouse/ClickHouse/actions/runs/43497656163 (PR ClickHouse#131389)
Microsoft Fabric's OneLake Iceberg REST catalog reports the locations of Fabric-written tables (for example tables created by a Fabric notebook or virtualized from Delta) with the plain
abfs://scheme, and its/v1/configcarries nodefault-base-location.DatabaseDataLakethen derives the storage type from the table location, and reading such a table fails withCode: 48. DB::Exception: Unsupported storage type: abfs://. (NOT_IMPLEMENTED).Two places accepted only the secure spelling:
DataLake::tryParseStorageTypeFromStringmapped onlyabfsstoAzure.AzureStorageParsedArguments::fillBlobsFromURLCommonparsed the Hadoop-style URL only when it started withabfss, leavingstorage_account_urlempty forabfs://. Fixing only (1) moves the failure one layer down.Both now accept
abfsandabfss, which name the same ADLS Gen2 storage. The check in (2) includes the://separator, so a near-prefix scheme such asabfsx://is still not treated as ADLS Gen2.StorageURL.cppalready treats the two spellings identically. There is no TLS downgrade: the OneLake endpoint is always built ashttps://fromonelake_use_blob_endpoint, never from the location scheme.Tests: new arms in
gtest_azure_abfss_parsing.cppand a newgtest_azure_abfs_url_parsing.cpp, which fail before the change with the production error and an emptystorage_account_urlrespectively. The end-to-end OneLake read path is covered by private E2E tests against live Fabric.Closes: #131292
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixed
Unsupported storage type: abfs://when reading a table from aDataLakeCatalogdatabase (for example OneLake) whose catalog reports table locations with the plainabfs://scheme. Previously onlyabfss://was accepted, although both name the same ADLS Gen2 storage.Workflow [PR]
Sync PR [sync-upstream/pr/131389]
Version info
26.11.1.2253-master(included in26.11and later)26.10.5.2,26.9.28.165