Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Field Name

Field Type

Description

Label*

Default ValueDatabricks - Select
ExampleDLP Select

String

The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your Pipeline.

Database name

Default Value: N/A
Example: SalesDB

String/Expression/Suggestion

Enter your DLP database name for the SELECT statement to read the data from.

Table name*

Default Value: N/A
Example: leads_to_sales_conversion

String/Expression/Suggestion

Enter your table name for the SELECT statement to read the data from.

Where clause

Default Value: N/A
Example: LEAD_CITY=Delware

String/Expression/Suggestion

Specify the WHERE clause (condition) for the SELECT statement to apply while retrieving the data from the DLP table.

Order by

You can use this fieldset to define the order in which the retrieved rows are populated in the output. Click the Add fieldset row icon ( (blue star) ) and specify one column name in each row to define your sort order.

Column names

Default Value: None.
ExampleLEAD_REGION

String/Expression/Suggestion

Click the Suggest icon ( (blue star) ) and select a column name from the suggested list of column names in the table specified above.

Info

If you do not specify a sort order in this fieldset, the Snap returns data in the same order as the DLP table.

Limit rows

Default Value: None.
Example100

String/Expression

Specify the number of rows of data you want the Snap to retrieve from the table.

Info

If you do not specify a limit in this fieldset, the Snap returns entire data in the the DLP table during execution. See Snap Execution field below for the limits during Pipeline validation.

Output fields

You can use this fieldset to define the list of columns to be retrieved in the output. Click the Add fieldset row icon ( (blue star) ) and specify one column name in each row.

Output field

Default Value: None.
ExampleLEAD_EXP_VALUE

String/Expression/Suggestion

Click the Suggest icon ( (blue star) ) and select a column name from the suggested list of column names in the table specified above.

Info

If you do not specify any output fields, the Snap returns data from all the columns in the DLP table.

Fetch Output Fields In Schema

Default ValueNot selected
ExampleSelected

Checkbox

Select this checkbox to retrieve schema information from the table for only the output fields specified above. If not selected, the Snap retrieves schema information from all fields available in the table.

Pass through

Default ValueSelected
ExampleNot selected

Checkbox

Select this checkbox to include the input document as-is under the original key of this Snap's output.

Ignore empty result

Default ValueNot selected
ExampleSelected

Checkbox

Select this checkbox to prevent the Snap from writing any document to its output view when no records are retrieved for the specified Snap configuration.

Info

When no records are retrieved and the Pass through checkbox is selected, the Snap output contains the input document in the original key.

Match data types

Default ValueNot selected
ExampleSelected

Checkbox

With at least one output field selected in the Output fields fieldset, select this checkbox to match the data types of the columns with those retrieved when no output field is specified (as in SELECT * FROM... ). The output preview will be in the same format as the one when the statement SELECT * FROM <specified_table> is run and all the contents of the table are displayed.

Number of Retries

Default value: 0

Example: 3

Minimum value: 0

Integer

Specifies the maximum number of retry attempts when the Snap fails to write.

If the value is larger than 0, the Snap first downloads the target file into a temporary local file. If any error occurs during the download, the Snap waits for the time specified in the Retry interval and attempts to download the file again from the beginning. When the download is successful, the Snap streams the data from the temporary file to the downstream Pipeline. All temporary local files are deleted when they are no longer needed.

Ensure that the local drive has sufficient free disk space to store the temporary local file.

Retry Interval (seconds)

Default value: 1

Example: 3

Minimum value: 1

Integer

Specifies the minimum number of seconds the Snap must wait before each retry attempt.

Staging Mode

Default value: In Memory

Example: On disk

Dropdown list

Select this property to specify the location where the in-flight records should be stored while using the Retry option. Options available are:

On disk: The records are stored on the disk.

In Memory: The records are stored in the internal memory.

Manage Queued Queries

Default valueContinue to execute queued queries when pipeline is stopped or if it fails.

Example: Cancel queued queries when pipeline is stopped or if it fails

Dropdown list

Select this property to determine whether the Snap should continue or cancel the execution of the queued Databricks SQL queries when you stop the Pipeline.

If you select Cancel queued queries when pipeline is stopped or if it fails, then the read queries under execution are cancelled, whereas the write type of queries under execution are not cancelled. Databricks internally determines which queries are safe to be cancelled and cancels those queries.

Due to an issue with DLP, aborting an ELT Pipeline validation (with preview data enabled) causes only those SQL statements that retrieve data using bind parameters to get aborted while all other static statements (that use values instead of bind parameters) persist.

  • For example, select * from a_table where id = 10 will not be aborted while select * from test where id = ? gets aborted.

To avoid this issue, ensure that you always configure your Snap settings to use bind parameters inside its SQL queries.

Snap Execution

Default ValueValidate & Execute
Example: Validate & Execute

Dropdown list

Select one of the three modes in which the Snap executes. Available options are:

  • Validate & Execute: Performs limited execution of the Snap, and generates a data preview during Pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during Pipeline runtime.

  • Execute only: Performs full execution of the Snap during Pipeline execution without generating preview data.

  • Disabled: Disables the Snap and all Snaps that are downstream from it.

...

Download this Pipeline

Downloads

Info
  1. Download and import the Pipeline into SnapLogic.

  2. Configure Snap accounts as applicable.

  3. Provide Pipeline parameters as applicable.

Attachments
previewtrue
patterns*.slp, *.zip
sortByname

...