Ready to get started?

Learn more about CData Cloud Hub or sign up for a free trial:

Learn More

Create Reports from OData Services in Google Data Studio

Use the CData Cloud Hub to create a virtual MySQL Database for OData services and create custom reports in Google Data Studio.

Google Data Studio allows you to create branded reports with data visualizations to share with your clients. When paired with the CData Cloud Hub, you get instant, cloud-to-cloud access to OData services for visualizations, dashboards, and more. This article shows how to use a MySQL client to create a virtual database for OData and build reports from OData services in Google Data Studio.

The CData Cloud Hub provides a pure MySQL, cloud-to-cloud interface for OData, allowing you to easily build reports from live OData services in Google Data Studio — without replicating the data to a natively supported database. As you build visualizations, Google Data Studio generates SQL queries to gather data. Using optimized data processing out of the box, the CData Cloud Hub pushes all supported SQL operations (filters, JOINs, etc) directly to OData, leveraging server-side processing to quickly return OData services.

Create a Virtual MySQL Database for OData Services

You can use any MySQL client to connect to the CData Cloud Hub and create virtual databases.

  1. Connect to the CData Cloud Hub:
    mysql --host myinstance.cdatacloud.net --user admin --password
    
  2. Once authenticated, create the virtual database for OData:
    mysql> CREATE DATABASE odatadb
        -> DRIVER = "OData",
        -> DBURL = "URL=http://services.odata.org/V4/Northwind/Northwind.svc;UseIdUrl=True;OData Version=4.0;Data Format=ATOM;";
    

With the virtual database created, you are ready to connect to OData services from any MySQL client.

Visualize Live OData Services in Google Data Studio

The steps below outline connecting to the CData Cloud Hub from Google Data Studio to create a new OData data source and build a simple visualization from the data.

  1. Log into Google Data Studio, click data sources, create a new data source and choose MySQL.
  2. Choose the basic configuration and set the connection properties:
    • Host name or IP: myinstance.cdatacloud.net
    • Port: 3306
    • Database: odatadb
    • Username: your Cloud Hub username
    • Password: your Cloud Hub password
    • Click Enable SSL, then upload the certificates
  3. Click Authenticate
  4. Select the table to visualize or enter a custom query and click Connect.
    NOTE: JOINs are not supported in the user interface, but they are supported as custom queries.
  5. If needed, modify columns, click Create Report and add the data source to the report.
  6. Select a visualization style and add it to the report.
  7. Select Dimensions and Measures to customize your visualization.

SQL Access to OData Services from Cloud Applications

Now you have a direct, cloud-to-cloud connection to live OData services from your Google Data Studio workbook. You can create more data sources and new visualizations, build reports, and more — all without replicating OData services.

To get SQL data access to 100+ SaaS, Big Data, and NoSQL sources directly from your cloud applications, see the CData Cloud Hub.