v.23.2Improvement

Throw Error for No S3 Wildcard Files Found

Throw an error on no files satisfying the S3 wildcard. Closes #45587. #45957 (chen).
ClickHouse now throws an error if no files match the specified S3 wildcard pattern in queries.

Why it matters

This feature addresses the issue where queries using S3 wildcards would silently succeed even if no files were found. By throwing an error when no files satisfy the wildcard, it helps users quickly detect misconfigurations or unexpected empty results in their data sources, improving reliability and debugging.

How to use it

When using external tables or data sources specified with S3 wildcards, ClickHouse will automatically throw an error if the wildcard does not match any files. No additional configuration is required to enable this behavior.