Versions Compared

Key

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

...

Table of Contents
minLevel1
maxLevel2
absoluteUrltrue

Overview

You can use the Adobe Experience Platform Execute use this Snap to execute queries , this includes such as selecting and joining data across datasets. You can query the Data Lake via SQL-like statements using the query service.

...

Snap Type

The Adobe Experience Platform Execute Snap is a Read-type Snap that reads the data from the input stream.

Prerequisites

  • Valid client ID.

  • The SQL Statement you want to execute.

Support for Ultra Pipelines

Works in Ultra Pipelines

Limitations

...

None.

and Known Issues

None.

Snap

...

Input/Output

...

Views

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Input 

Document

  • Min: 0

  • Max: 1

  • Mapper

Snap

Ensure to provide input, which is the SQL statement to execute the query.

Output

Document

  • Min: 0

  • Max: 1

  • Mapper

Snap

The output document contains the SQL query execution result.

Error

Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab:

  • Stop Pipeline Execution: Stops the current Pipeline execution if the Snap encounters an error.

  • Discard Error Data and Continue: Ignores the error, discards that record, and continues with the remaining records.

  • Route Error Data to Error View: Routes the error data to an error view without stopping the Snap

...

Parameter Name

Data Type

Description

Default Value

Example 

Label

String

Required.
  • execution.

Learn more about Error handling in Pipelines.

Snap Settings

Info
  • Asterisk ( * ): Indicates a mandatory field.

  • Suggestion icon ((blue star)): Indicates a list that is dynamically populated based on the configuration.

  • Expression icon ((blue star) ): Indicates the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic.

  • Add icon ( (blue star) ): Indicates that you can add fields in the fieldset.

  • Remove icon ( (blue star)): Indicates that you can remove fields from the fieldset.

  • Upload icon ((blue star) ): Indicates that you can upload files.

Adobe Experience Platform Execute_23

Field Name

Field Type

Description

Label*

 

Default ValueAdobe Experience Platform Execute
ExampleAdobe Experience Platform Execute_23

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.

Adobe Experience Platform Execute

 

SQL Statement*

String

Enter the SQL queries to execute in the Adobe Experience Platform. See SQL overviewformore information on writing the queries for Adobe Experience Platform

N/A

 

Default ValueNA
ExampleSELECT employeedataset._snaplogicinc.employeeid AS EmployeeID,
employeedataset._snaplogicinc.ename AS EmployeeName,
employeedataset._snaplogicinc.esalary AS EmployeeSalary,
employeedataset._snaplogicinc.deptid AS DepartmenttID,
departmentdataset._snaplogicinc.Dname AS DepartmentName,
departmentdataset._snaplogicinc.Dlocation AS DepartmentLocation
FROM employeedataset INNER JOIN departmentdataset ON
employeedataset._snaplogicinc.deptid = departmentdataset._snaplogicinc.deptid
ORDER BY 1

String

Enter the SQL queries to execute in the Adobe Experience Platform. Refer to SQL overview for more information on writing the queries for Adobe Experience Platform.

Snap Execution

Drop-down

Default ValueExecute only
Example: Validate & Execute

Dropdown list

Select one of the following three

following

modes in which the Snap executes:

  • Validate & Execute

. Performs
  • : Performs limited execution of the Snap, and generates a data preview during Pipeline validation. Subsequently,

then
  • performs full execution of the Snap (unlimited records) during Pipeline runtime.

  • Execute only

. Performs
  • : Performs full execution of the Snap during Pipeline

execution without
  • execution without generating preview data.

  • Disabled

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

Execute only

Validate and Execu

Troubleshooting

Error

Reason

Resolution

Please check query

The SQL query entered in the Query field is not valid.

Ensure that the query in the SQL Statement field is valid” or something like thisvalid.