In this article
...
The metadata output in the second output preview is not displayed in table format when your target database is AWS Athena.
The suggestions list is not populated for Table name field when your target database is AWS Athena.
When the SQL statement property is an expression, the Pipeline parameters are shown in the suggest, but not the input schema.
When the Generic JDBC—Execute Snap connects to the Sybase database to retrieve
BigTime
-type data, the Snap displays both date and time for the data type.
Snap Views
Type | Format | Number of Views | Examples of Upstream and Downstream Snaps | Description |
---|---|---|---|---|
Input | Document |
|
| The input data typically includes the SQL query that you want to execute on your database. The specific format of the input data can vary depending on the design of your pipeline and the data source you are using, but typically it can be the SQL query. In addition to the SQL query, you may also need to provide additional parameters that need to be substituted in the query. |
Output | Document
|
|
| If an output view is available and an update/insert/merge/delete statement was executed, then the original document that was used to create the statement will be output with the status of the executed statement. |
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:
Learn more about Error handling in Pipelines. |
Snap Settings
Info |
---|
|
Field Name | Field Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Label* Default Value: Generic JDBC - Execute | String | Specify 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. | |||||||||||||||
SQL statement* Default Value: N/A | String/Expression | Specify the SQL statement to execute on the server. We recommend you to add a single query in the SQL Statement field. There are two possible scenarios that you encounter when working with SQL statements in SnapLogic.
Table name and column names must not be provided as bind parameters. Only values can be provided as bind parameters. We recommend you use the Oracle - Stored Procedure Snap for invoking procedures when using Oracle database with this Snap due to the following limitation while invoking procedures:
Values can be substituted into the query/statement by using a JSON path using a $ to start the path.
During design time if you specify query such as, then the run-time query is: To invoke procedures when using Oracle database with this Snap, we recommend you use the Oracle Stored Procedure Snap. | |||||||||||||||
Query type Default Value: Auto | Dropdown list/Expression | Select the type of query for your SQL statement (Read or Write). When Auto is selected, the Snap tries to determine the query type automatically. | |||||||||||||||
Pass through Default Value: Selected | Checkbox | Select this checkbox to pass the input data to the output view under the key ' | |||||||||||||||
Ignore empty result Default Value: Deselected | Checkbox | Select this checkbox to ignore empty result; no document is written to the output view when a SELECT operation does not produce any result. If you deselect this checkbox and select the Pass through option, the input document is passed through to the output view. | |||||||||||||||
Number of retries Default Value: 0 | Integer/Expression | Specify the maximum number of attempts to be made to receive a response. The request is terminated if the attempts do not result in a response. If you provide a string value, the Snap displays the following error: You can use a string value only when the field is expression-enabled. | |||||||||||||||
Retry interval (seconds) Default Value: 1 | Integer/Expression | Specifies the time interval between two successive retry requests. A retry happens only when the previous attempt resulted in an exception. | |||||||||||||||
Auto commit Default value: Use account setting | Dropdown list | Select one of the options for this property to override the state of the Auto commit property on the account. The Auto commit at the Snap-level has three values: True, False, and Use account setting. The expected functionality for these modes are:
| |||||||||||||||
Default Value: Execute only | Dropdown list |
|
...