Skip to main content
Announcements
Qlik and Talend Support Cases are now opened in the same place.

How to: Getting started with the Amazon Redshift connector in Qlik Application Automation

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
MarkGeurtsen
Support
Support

How to: Getting started with the Amazon Redshift connector in Qlik Application Automation

Last Update:

Dec 3, 2021 9:35:21 AM

Updated By:

MarkGeurtsen

Created date:

Dec 3, 2021 9:35:21 AM

This article is intended to get started with the Amazon Redshift connector in Qlik Application Automation.

Authentication and Authorization

To authenticate with Amazon Redshift, you will have to gather the following information:

Host: You can find this in the AWS Redshift console when you click on your cluster. Here one of the fields shows endpoint. Only keep the hostname part of the URL.
Database Name: The name of the database you have provided.
Username: Username that you use to connect to Amazon Redshift
Password: Password that you use to connect to Amazon Redshift

Available blocks:

Do Query: This block takes a string as parameter. Provide a SQL query to be executed against Redshift.

MarkGeurtsen_1-1638541971843.png

List tables: This block returns a list of all tables in your database.
Insert Record: Requires a table name to be given and a JSON object. The inputs will be transformed into an insert statement and executed.


Upsert Record: Requires a table name to be given as well as a key value pair to be compared against. The key value pair consists of a column and tests if the value matches. If a match is found, the fields provided in record will be updated. Otherwise it will perform an insert.

MarkGeurtsen_2-1638541999008.png

 

Update Record by One Field: Takes a table name as parameter and a key value pair to be compared against. All matches will be updated with the values provided in the Data object.

This example will update all records in table my_test where column1 equals value. Every value in column2 will be given the value newvalue.

MarkGeurtsen_3-1638542021631.png

 

List Records: Provide a table name, the columns you want to be returned. It is possible to filter the data through the where clause by providing a column name and value. Furthermore it is possible to implement paging inside a loop when offset and limit parameters are provided.

The example below will return a list of records from my_test table with all columns where column1 equals value1.

MarkGeurtsen_4-1638542028647.png

 

Insert Record: This block will insert a single row into the table provided by tableName. It takes a JSON object that will be inserted as the row.

Example:

MarkGeurtsen_5-1638542043490.png

 

Delete Record: Deletes records from a table. Provide the table name and a where condition to indicate which records have to be deleted:

MarkGeurtsen_6-1638542050575.png

 

Import S3 File: This block takes a file stored on S3 storage and imports it into Redshift. Further information will be added later to this article.

Insert Bulk: This block inserts multiple rows into a table. You have to specify the table name and provide a list of JSON objects.

Example:

MarkGeurtsen_7-1638542057556.png

 

Upsert Bulk: This block does an upsert of rows, identical to the Insert bulk block. A key has to be provided. If the value of the key of a record matches an already existing record then it will be updated, otherwise an insert will happen.

MarkGeurtsen_0-1638541951021.png

 

The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.

 

Tags (1)
Labels (1)
Contributors
Version history
Last update:
‎2021-12-03 09:35 AM
Updated by: