Skip to main content

Connect to Google BigQuery (Legacy UI)

Nexla's bi-directional connectors can both send data to and receive data from any data system. This means that once a user has created or gained access to a credential for any data system, building any data flow to ingest data from or send data to a location within that data system requires only a few simple steps.

1. Credentials

This section provides information about and step-by-step instructions for creating a new Google BigQuery credential in Nexla.

Important: During data movement to/from BigQuery, Nexla will write temporary data in a location within your GCS. Therefore, the user associated with the credential provided in Step 2 below will need the following roles in the Google Cloud Project:

  • Storage Object Creator
  • Storage Object Viewer

1.1 Add a New Google BigQuery Credential

  1. After selecting the data source/destination type, in the Authenticate.png screen, click AddANewCredential.png. This will open the Add New Credential window.

      AddNewCredential.png

  2. Enter a name for the credential in the Credential Name field.

      CredName.png

  3. Optional: Enter a description for the credential in the Credential Description field.

      CredDescription.png

  4. Select the method that Nexla should use to authenticate to the BigQuery account from the Authentication Type pulldown menu.

    The System User Authentication method is recommended, as it is best-suited for accessing your own data. It is also tied to the service account instead of individual user accounts.

      AuthenticationType.png

1.2 End User Authentication

  1. Click Authorize.png.

  2. In the pop-up window that appears, select the Google account associated with the BigQuery account.

  3. Click Allow.png to allow Nexla to access the account.

  4. Enter the project ID to the BigQuery database from which files should be read in the Project ID field.

      ProjectID.png

  5. Section 1.4 provides information about advanced settings available for Google BigQuery credentials along with step-by-step instructions for configuring each setting.

    • To configure any desired additional advanced settings for this credential, continue to Section 1.4, and complete the relevant steps.

    • To create this credential without configuring any advanced settings, continue to Section 1.5.

1.3 System User Authentication

  1. Click Choose_Credentials_File.png.

  2. Select and upload the service account credentials JSON file generated by Google Cloud IAM.

  3. Section 1.4 provides information about advanced settings available for Google BigQuery credentials along with step-by-step instructions for configuring each setting.

    • To configure any desired additional advanced settings for this credential, continue to Section 1.4, and complete the relevant steps.

    • To create this credential without configuring any advanced settings, continue to Section 1.5.

1.4 Advanced Settings

This section covers optional advanced credential settings. To create the Google BigQuery credential without configuring advanced settings, skip to Section 1.5.

  1. Click AdvSettings.png to access additional available settings for the BigQuery credential.

      AdvSettings2.png

  • GCS Location for Staging Data

    Before moving data to/from BigQuery, Nexla sometimes stages the data in a temporary GCS location, which is automatically created by the platform if the user account associated with the credential has bucket/path creation permissions.

    1. To override bucket creation and specify a GCS location where Nexla will create temporary staging files, enter the location in the GCS Location for Staging Data field.

        GCS_Location.png

  • Data Staging

    Before moving data to/from BigQuery, Nexla sometimes stages the data in a temporary dataset, which is automatically created by the platform if the user account associated with the credential has dataset creation permissions.

    1. To override dataset creation and specify an existing dataset for use, enter that dataset in the Temporary Dataset field.

        TempDataset.png

1.5 Save and Create the Google BigQuery Credential

  1. Once all of the relevant steps in the above sections have been completed, click Save.png at the bottom of the Add New Credential screen to save the credential and all entered information.

      Save2.png

  2. The newly added credential will now appear in a tile on the Authenticate.png screen and can be selected for use with a new data source or destination.

      CredentialsList.png

2. Add a Dropbox Data Source

  1. Log into Nexla with your provided credentials to view the Nexla Dashboard.

    If you need credentials, contact support@nexla.com.

  2. Select Sources.png from the menu on the left.

  3. Click Create_New_Source.png in the upper right corner to begin adding a new data source.

  4. Select Dropbox.png, and click Next.png in the upper right corner of the screen to begin adding Google Drive data source.

2.1 Configure the Database Source

In Nexla, the Google BigQuery database source can be selected using either Table Mode or Query Mode.

Table Mode allows users to specify the database source through a simple selection method. This mode is equivalent to running a simple, optimized SELECT operation on any database table. To use this mode for configuration, see Section 2.2.

Query Mode allows users to perform a complex query to specify the database source. This mode provides a free-form query editor that can be used to perform any complex query written using the syntax and convention supported by the underlying database and/or warehouse. To use this mode for configuration, see Section 2.3.

2.2 Table Mode

  1. To configure the BigQuery source using Table Mode, ensure that the Table_Mode2.png tab is selected.

    Table_Mode2.png
  2. Find the BigQuery location from which Nexla should read data. Expand files as necessary by clicking the Expand.png icon next to each.

  3. To select a file, hover over it, and click the Select.png button that appears.

    Once a file is selected, the button will display Selected.png, and the path of the selected location will be shown at the top of the list.

    Selected_Location.png
  4. Optional: Click the Test.png button to the right of the mode-selection tabs to generate preview samples of data from the selected source at the bottom of the screen.

    Sample_Data.png

2.3 Query Mode

  1. To configure the BigQuery source using Query Mode, select the Query_Mode.png tab.

    Query_Mode2.png
  2. Enter the query specifying the database location from which Nexla should read data in the Custom Query to Fetch Data field, adhering to the Google BigQuery SQL syntax and convention.

    In this mode, Nexla supports any query that can be written following the BigQuery syntax and convention, regardless of complexity.

    For more information about Google BigQuery SQL syntax, see this BigQuery document.

    Enter_Query.png
  3. Optional: Click the Test.png button to the right of the mode-selection tabs to generate preview samples of the data selected according to the entered query at the bottom of the screen.

    Query_Samples.png

2.4 Schedule Data Source Scanning

  1. In the Advanced Settings menu on the right, use the Fetch Data pulldown menu to specify how often Nexla should fetch data from the source.

    The default setting configures Nexla to fetch any new data from the source once every day.

      Scheduling.png

    • For options such as "Every N Hours" and "Every N Days", use the additional pulldown menu that appears when these options are selected to specify the value of N defining the fetching frequency.

      N_Frequency.png

  2. Optional: To set a specific time at which Nexla should fetch any new data from the source, check the Set_Time.png box, and type or use the pulldown menus to enter the desired time.

      Specify_Time.png

2.5 Save and Create the BigQuery Data Source

  1. Once all of the above steps have been completed, click Create.png in the upper right corner of the screen to save and create the new BigQuery data source.

  2. The confirmation page indicates that the Google BigQuery database has been successfully created as a data source.

      Confirmation.png

  3. Optional: Edit the name of the newly added data source by clicking on the name field and entering the desired text.

      Edit_Name.png

  4. Optional: Add a description of the data source by clicking on the Description.png field below the data source name and entering the desired text.

      Edit_Description.png

    • To return to My Data Sources, click Done.png in the upper right corner of the screen.
  • To view the newly created data source, click View_Source.png.

  • To view Nexsets detected in the newly added source, click View_Detected_Nexsets.png.