Articles in this section

Export data from Databricks

You can create an export from Databricks in either of these ways:

  • as part of a flow while designing or building your flow (Flow builder > Add source app)

– or –

  • as a standalone resource that you can later attach to a flow (Resources > Exports)

Tip: The navigation paths differ, but the exporting task is the same.

Creating an export into Databricks consists of two logical parts: providing general details and configuring the export.

Provide general details

You can start creating an export from Databricks and provide essential/general details in either of these ways:

Option A: Add/create a source in a flow

  1. From the main menu, select Tools > Flow builder.
  2. In the Flow builder, click the plus sign (Define options) next to Source.
    databricks-source.png
  3. In Create source, for Application, select Databricks.
  4. For What would you like to do?, the default is Export records from source application.
  5. For Connection, select a previously created Databricks connection from the drop-down menu. It saves time if you've already created your connection and only have to select it. However, you can click Create connection and create one if you haven't done so already.
  6. Click Next.

– or –

Option B: Create an export resource

  1. From the main menu, select Resources > Exports.
  2. Click + New export.
    databricks-create-export-resource.png
  3. In Create export, for Application, select Databricks.
  4. For Connection, select a previously created Databricks connection from the drop-down menu. It saves time if you're already created your connection and only have to select it. However, you can create a connection if you haven't done so already.
  5. For Name, enter a meaningful name based on the purpose, function, or any other aspect.
  6. For Description, optionally provide details that will help in understanding your export.
  7. Click Next.
    You've completed providing the general export details. Next, you must configure the export.

Configure your export

You can use standard SQL queries to export and modify data. If your flow requires multiple SQL queries, you must create one export for each query. You can't use multiple SQL queries on a single export.

For Databricks, you must configure the required settings in General, What would you like to export? and Configure export type sections for data to be exported successfully. (You can configure the optional settings as required for any customization.)

Configure required settings

  1. In Name your export, enter a meaningful name for your export based on the purpose, function, or any other aspect.
    If you've used the Resources > Exports path to create an export, then this value is automatically filled in.
  2. For SQL query, click the Edit icon (Open handlebars editor button) and enter your SQL statement based on what you want to export from Databricks.
  3. For Export type, select an option based on how you want to export records. See Four different export types to retrieve data.
  4. Click Preview to check the export to see sample JSON-formatted data. If the SQL query is not executed successfully, revise the Query or Export type values.
  5. Click Save.

When an export is saved,

  • if you've created it in a flow, the export is added to your flow in Flow builder.
  • if you've created it as a resource, then it is added under Resources > Exports.
Optional sections/settings Instructions
Would you like to group records?
Group records by fields See Sort and group records
Mock output
Mock output  See Provide mock response data
Advanced
Page size See Choosing the right page size
Data URI template See Open the Build URI Template editor
Do not store retry data Check this box if you do NOT want integrator.io to store retry data for records that fail in your flow. Storing retry data can slow down your flow's overall performance if you are processing very large numbers of records that are failing.
Override trace key template See Override the default trace key.
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.