Forum Discussion
Connecting Big Query view with partitioning
Hi lg_analyst
See if these links help:
https://www.yuichiotsuka.com/bigquery-table-partition/
I'm not sure how the SQL query is generated when using a view. It seems the actual table has been set to require Partition Filters in received queries. However, the query currently sent to the actual table doesn't include the valid date filter clause correctly so it indicates this error message. See if you can uncheck the option Require partition filter for the actual table in BigQuery?
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
- lg_analyst4 years agoHelper I
Hi v-jingzhang thank you but I'm looking to query a view, not a table (querying a table works) and removing the partition filter kind of defeats the point
- v-jingzhang4 years agoCommunity Support
Hi lg_analyst
A view is a virtual table defined by a SQL query. When you create a view, you query it in the same way you query a table. When a user queries the view, the query results contain data only from the tables and fields specified in the query that defines the view. So I think disable the option Require partition filter for the actual table might be helpful.
In addition, have you performed the same operations in Power Query Desktop? If it works in Power Query Desktop, you can try copying the query from Desktop to Dataflow and check the result.
Jing