Open navigation

How to create a custom schema

If you have custom needs for your data transfers’ schemas, you can create custom schemas to use across your data warehouse transfers. You can also use custom schemas to save and repurpose query setups in the Query Manager when transferring data with the Supermetrics API.


Custom schemas are data source-specific. A schema created for one data source will not be displayed when creating transfers for other data sources.


Instructions

  1. Log in to the Supermetrics Team Site.
  2. Navigate to IntegrationsQuery Manager.
  3. In the sidebar on the left, select the data source you want to create the schema for. Go to the Schemas tab.
  4. Click + New schema.
  5. Select a name for your new custom schema and click Ok.
  6. Go to the Query tab and create a queryfor the schema.
    • You can use queries from pre-built schemas as a template. In the Schemas tab, click on a query under any default schema — this will take you back to the Query tab and fill the selected query into the configuration, where you can continue to modify it.
    • Set Select dates as a 1-day range, preferably yesterday.
    • Include the Date dimension in your query to split your data day by day.
  7. Click Run to validate the query.
  8. Click Save as to save the query. Select a name for the query and set it to your newly created custom schema.
    • You can add multiple queries to one schema by repeating steps 6-9. Each query corresponds to one table in your data destination.


When you’re ready with your custom schema, you can use it in your data transfers to BigQuery and other data warehouse and cloud storage destinations. To repurpose the saved query setup in the Query Manager, access it in the Schemas tab.


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.