alamb commented on code in PR #15505:
URL: https://github.com/apache/datafusion/pull/15505#discussion_r2023100004


##########
docs/source/user-guide/cli/datasources.md:
##########
@@ -126,6 +125,32 @@ select count(*) from hits;
 1 row in set. Query took 0.344 seconds.
 ```
 
+**Why Wildcards Are Not Supported**
+
+Although wildcards (e.g., _.parquet or \*\*/_.parquet) may work for local 
filesystems in some cases, they are not officially supported by DataFusion. 
This is because wildcards are not universally applicable across all storage 
backends (e.g., S3, GCS). Instead, DataFusion expects the user to specify the 
directory path, and it will automatically read all compatible files within that 
directory.
+
+For example, the following usage is not supported:
+
+```sql
+CREATE EXTERNAL TABLE test (
+    message TEXT,
+    day DATE
+)
+STORED AS PARQUET
+LOCATION 'gs://bucket/*.parquet';
+```
+
+Instead, you should use:
+
+```sql
+CREATE EXTERNAL TABLE test (
+    message TEXT,
+    day DATE
+)
+STORED AS PARQUET
+LOCATION 'gs://bucket/';

Review Comment:
   ```suggestion
   LOCATION 'gs://bucket/my_table';
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to