I recently encountered the following error while working with external tables The query specified one or more federated data sources but not all of them were scanned. The error affects a few models, where as other models with similar syntax run without an issue. The set up is as follows,
- I am using hive partitioning specifying that there is a path component arrivaldat:e gs://bucket/mydata/{arrivaldate:DATE}
- I am specifying partition pruning arrivaldate between DATE_SUB(CURRENT_DATE(), INTERVAL X DAY) AND CURRENT_DATE()