Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(data-warehouse): say when an azure files url points at a missing blob (#124553)

Tom Owers6974bb39c08a
diff --git a/products/warehouse_sources/backend/models/table.py b/products/warehouse_sources/backend/models/table.py
index bed2ecc563d5..73758015baab 100644
--- a/products/warehouse_sources/backend/models/table.py
+++ b/products/warehouse_sources/backend/models/table.py
@@ -104,6 +104,7 @@ ExtractErrors = {
"Could not list objects in bucket": "Access was denied to the provided bucket. Check that the provided credentials can list this bucket (s3:ListBucket), then try again.",
"file is empty": "The provided file contains no data",
"The specified key does not exist": "The provided file doesn't exist in the bucket",
+ "The specified blob does not exist": "The file in your files URL doesn't exist in the container. Check the container name and file path, then try again.",
# ClickHouse names the format in this message (CSV, CSVWithNames, Parquet, ...), so match the shared tail.
"there are no files with provided path in S3 or all files are empty": "No files match your Files URL pattern, or all the matching files are empty. Check the folder path and wildcards, then try again.",
"Bucket or key name are invalid in S3 URI": "The provided file or bucket doesn't exist",
diff --git a/products/warehouse_sources/backend/tests/test_table.py b/products/warehouse_sources/backend/tests/test_table.py
index 9dafae3b2e4c..ccd357b0bd17 100644
--- a/products/warehouse_sources/backend/tests/test_table.py
+++ b/products/warehouse_sources/backend/tests/test_table.py
@@ -266,6 +266,15 @@ class TestWarehouseReadErrorClassification:
),
"isn't in your files any more",
),
+ (
+ ServerException(
+ "DB::Exception: The table structure cannot be extracted from a Parquet format file: "
+ "std::exception. Code: 1001, type: Azure::Storage::StorageException, e.what() = 404 "
+ "The specified blob does not exist.",
+ code=636,
+ ),
+ "doesn't exist in the container",
+ ),
(
ServerException("DB::Exception: A failure shape nobody has classified yet.", code=999),
None,