Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Resource Queries (CREATE TABLE AS in datastore) #3816
Add the option to build a resource from an SQL query instead of an uploaded or linked file, internally implemented as PostgreSQL materialized views
Queries are the same SQL that users can send to
This will solve several problems:
This feature can be thought of as a performance/usability improvement over what users can do today with
This way we're not introducing any new ways for less privileged users to expose data that they shouldn't have access to.
Setting up triggers to automatically refresh the underlying views and/or adding jobs for this purpose are sensible next steps but not included in this initial PR.